/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
(function(){var g,aa=this;function t(a,b,c){a=a.split(".");c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]?c[d]:c[d]={}:c[d]=b};/*
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright 2012 Igor Vaynberg

 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
 General Public License version 2 (the "GPL License"). You may choose either license to govern your
 use of this software only upon the condition that you accept all of the terms of either the Apache
 License or the GPL License.

 You may obtain a copy of the Apache License and the GPL License at:

 http://www.apache.org/licenses/LICENSE-2.0
 http://www.gnu.org/licenses/gpl-2.0.html

 Unless required by applicable law or agreed to in writing, software distributed under the
 Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
 the specific language governing permissions and limitations under the Apache License and the GPL License.
 Copyright 2012 Igor Vaynberg

 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
 General Public License version 2 (the "GPL License"). You may choose either license to govern your
 use of this software only upon the condition that you accept all of the terms of either the Apache
 License or the GPL License.

 You may obtain a copy of the Apache License and the GPL License at:

 http://www.apache.org/licenses/LICENSE-2.0
 http://www.gnu.org/licenses/gpl-2.0.html

 Unless required by applicable law or agreed to in writing, software distributed under the
 Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
 the specific language governing permissions and limitations under the Apache License and the GPL License.
 Copyright 2012 Igor Vaynberg

 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
 General Public License version 2 (the "GPL License"). You may choose either license to govern your
 use of this software only upon the condition that you accept all of the terms of either the Apache
 License or the GPL License.

 You may obtain a copy of the Apache License and the GPL License at:

 http://www.apache.org/licenses/LICENSE-2.0
 http://www.gnu.org/licenses/gpl-2.0.html

 Unless required by applicable law or agreed to in writing, software distributed under the
 Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
 the specific language governing permissions and limitations under the Apache License and the GPL License.
 Copyright 2012 Igor Vaynberg

 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
 General Public License version 2 (the "GPL License"). You may choose either license to govern your
 use of this software only upon the condition that you accept all of the terms of either the Apache
 License or the GPL License.

 You may obtain a copy of the Apache License and the GPL License at:

 http://www.apache.org/licenses/LICENSE-2.0
 http://www.gnu.org/licenses/gpl-2.0.html

 Unless required by applicable law or agreed to in writing, software distributed under the
 Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
 the specific language governing permissions and limitations under the Apache License and the GPL License.
 Copyright 2012 Igor Vaynberg

 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
 General Public License version 2 (the "GPL License"). You may choose either license to govern your
 use of this software only upon the condition that you accept all of the terms of either the Apache
 License or the GPL License.

 You may obtain a copy of the Apache License and the GPL License at:

 http://www.apache.org/licenses/LICENSE-2.0
 http://www.gnu.org/licenses/gpl-2.0.html

 Unless required by applicable law or agreed to in writing, software distributed under the
 Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
 the specific language governing permissions and limitations under the Apache License and the GPL License.
 Copyright 2012 Igor Vaynberg

 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
 General Public License version 2 (the "GPL License"). You may choose either license to govern your
 use of this software only upon the condition that you accept all of the terms of either the Apache
 License or the GPL License.

 You may obtain a copy of the Apache License and the GPL License at:

 http://www.apache.org/licenses/LICENSE-2.0
 http://www.gnu.org/licenses/gpl-2.0.html

 Unless required by applicable law or agreed to in writing, software distributed under the
 Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
 the specific language governing permissions and limitations under the Apache License and the GPL License.
 Copyright 2012 Igor Vaynberg

 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
 General Public License version 2 (the "GPL License"). You may choose either license to govern your
 use of this software only upon the condition that you accept all of the terms of either the Apache
 License or the GPL License.

 You may obtain a copy of the Apache License and the GPL License at:

 http://www.apache.org/licenses/LICENSE-2.0
 http://www.gnu.org/licenses/gpl-2.0.html

 Unless required by applicable law or agreed to in writing, software distributed under the
 Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
 the specific language governing permissions and limitations under the Apache License and the GPL License.
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 jQuery UI Touch Punch 0.2.3

 Copyright 2011-2014, Dave Furfero
 Dual licensed under the MIT or GPL Version 2 licenses.
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
*/
var ba={};"undefined"!==typeof window?ba=window:"undefined"!==typeof self&&(ba=self);var ca=ba.oj,w=ba.oj={version:"2.3.0",build:"3",revision:"30989",noConflict:function(){ba.oj=ca}};w.l={};t("Logger",w.l,w);w.l.U2=0;t("Logger.LEVEL_NONE",w.l.U2,w);w.l.dF=1;t("Logger.LEVEL_ERROR",w.l.dF,w);w.l.dn=2;t("Logger.LEVEL_WARN",w.l.dn,w);w.l.hp=3;t("Logger.LEVEL_INFO",w.l.hp,w);w.l.mO=4;t("Logger.LEVEL_LOG",w.l.mO,w);w.l.p4="error";w.l.s4="warn";w.l.q4="info";w.l.r4="log";
w.l.qs={level:w.l.dF,writer:null};w.l.Za=w.l.qs;w.l.error=function(a){w.l.Ex(w.l.dF,w.l.p4,arguments)};t("Logger.error",w.l.error,w);w.l.info=function(a){w.l.Ex(w.l.hp,w.l.q4,arguments)};t("Logger.info",w.l.info,w);w.l.warn=function(a){w.l.Ex(w.l.dn,w.l.s4,arguments)};t("Logger.warn",w.l.warn,w);w.l.log=function(a){w.l.Ex(w.l.mO,w.l.r4,arguments)};t("Logger.log",w.l.log,w);
w.l.option=function(a,b){var c={},d;if(0==arguments.length){for(d in w.l.Za)w.l.Za.hasOwnProperty(d)&&(c[d]=w.l.Za[d]);return c}if("string"===typeof a&&void 0===b)return void 0===w.l.Za[a]?null:w.l.Za[a];if("string"===typeof a)w.l.Za[a]=b;else for(d in a)a.hasOwnProperty(d)&&w.l.option(d,a[d])};t("Logger.option",w.l.option,w);
w.l.Ex=function(a,b,c){if(!(w.l.option("level")<a)){var d=w.l.g$();null!=d&&(1==c.length&&c[0]instanceof Function&&(c=[c[0]()]),d[b]&&d[b].apply?d[b].apply(d,c):d[b]&&(d[b]=Function.prototype.bind.call(d[b],d),w.l.Ex(a,b,c)))}};w.l.g$=function(){var a=null;w.l.option("writer")?a=w.l.option("writer"):"undefined"!==typeof window&&void 0!==window.console&&(a=window.console);return a};w.l.qla=function(a){return void 0!==w.l.qs[a]};var da=ba.__ojCheckpointManager;w.Qh={};t("CHECKPOINT_MANAGER",w.Qh,w);
w.Qh.Jja=function(a,b){da&&da.startCheckpoint(a,b)};t("CHECKPOINT_MANAGER.startCheckpoint",w.Qh.Jja,w);w.Qh.rha=function(a){da&&da.endCheckpoint(a)};t("CHECKPOINT_MANAGER.endCheckpoint",w.Qh.rha,w);w.Qh.oM=function(a){return da?da.getRecord(a):void 0};t("CHECKPOINT_MANAGER.getRecord",w.Qh.oM,w);w.Qh.g1=function(a){return da?da.matchRecords(a):[]};t("CHECKPOINT_MANAGER.matchRecords",w.Qh.g1,w);
w.Qh.oha=function(a){w.l.info(function(){for(var b="Checkpoint Records:",c=w.Qh.g1(a),d=0;d<c.length;d++){var e=c[d],b=b+"\n"+e.name,f=e.description;null!=f&&(b=b+" ("+f+")");b+=":\n";b=b+"start: "+e.start+"\tduration: "+e.duration}return b})};t("CHECKPOINT_MANAGER.dump",w.Qh.oha,w);function x(){this.Init()}t("Object",x,w);var ea=/function\s+([\w\$][\w\$\d]*)\s*\(/;x.prototype={};x.prototype.constructor=x;
function A(a,b){var c=null,d=null,e;for(e in b)if(b.hasOwnProperty(e)){c=e;d=b[e];break}var f=a.split(".");e=w[f[0]];f=f[2];if(c!=f&&null!=c){var h=e.dK;h||(h={},e.dK=h);h[c]=f;e.prototype[f]=d}}function H(a,b,c){w.i.mo(a);w.i.Gt(b);w.i.xL(c);void 0===b&&(b=x);w.i.assert(a!==b,"Class can't extend itself");var d=ga;d.prototype=b.prototype;a.prototype=new d;a.prototype.constructor=a;a.o=a.superclass=b.prototype;c&&(a.SY=c)}t("Object.createSubclass",H,w);
t("Object.copyPropertiesForClass",function(a,b){var c;w.i.mo(a);w.i.assert(null!=b,"source object cannot be null");for(c in b)b.hasOwnProperty(c)&&(a.prototype[c]=b[c])},w);function ga(){}x.prototype.h_=function(a){if(void 0===a)a=this;else if(null===a)return null;return a.constructor};A("Object.prototype.getClass",{h_:x.prototype.h_});x.prototype.clone=function(){var a=new this.constructor;w.Nb.Fd(a,this);return a};A("Object.prototype.clone",{clone:x.prototype.clone});x.prototype.toString=function(){return this.KN()};
A("Object.prototype.toString",{toString:x.prototype.toString});x.prototype.KN=function(){return this.getTypeName()+" Object"};A("Object.prototype.toDebugString",{KN:x.prototype.KN});function ja(a){w.i.mo(a);var b=a.SY;null==b&&(b=a.toString(),b=(b=ea.exec(b))?b[1]:"anonymous",a.SY=b);return b}t("Object.getTypeName",ja,w);x.prototype.getTypeName=function(){return ja(this.constructor)};A("Object.prototype.getTypeName",{getTypeName:x.prototype.getTypeName});
x.prototype.Init=function(){w.i.BM()&&w.i.assert(this.getTypeName,"Not an oj.Object");var a=this.constructor;a.em||ka(a)};A("Object.prototype.Init",{Init:x.prototype.Init});t("Object.ensureClassInitialization",function(a){w.i.mo(a);a.em||ka(a)},w);x.prototype.ym=function(a){return this===a};A("Object.prototype.equals",{ym:x.prototype.ym});function la(a,b){w.i.mo(b);return b.bind(a)}t("Object.createCallback",la,w);
function ka(a){w.i.BM()&&(w.i.mo(a),w.i.assert(!a.em));a.em=!0;var b=a.o;b&&((b=b.constructor)&&!b.em&&ka(b),x.dK&&ma(a,a.o));(b=a.InitClass||null)||(b=a.InitClass);b&&b.call(a)}
function oa(a,b){if(a===b)return!0;if(typeof a!==typeof b||null===a||null===b)return!1;if(a.constructor===b.constructor){if(Array.isArray(a)){var c;a:if(a.length!==b.length)c=!1;else{c=0;for(var d=a.length;c<d;c++)if(!oa(a[c],b[c])){c=!1;break a}c=!0}return c}if(a.constructor===Object)return pa(a,b);if(a.valueOf&&"function"===typeof a.valueOf)return a.valueOf()===b.valueOf()}return!1}t("Object.compareValues",oa,w);
function qa(a,b){if(!a)return!b||0==b.length;if(!b)return!a||0==a.length;if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c]&&(-1==a.indexOf(b[c])||-1==b.indexOf(a[c])))return!1;return!0}
function pa(a,b){var c,d=!1;if(a===b)return!0;if(!(a instanceof Object&&b instanceof Object)||a.constructor!==b.constructor)return!1;for(c in a)if(d||(d=!0),a.hasOwnProperty(c)&&(!b.hasOwnProperty(c)||a[c]!==b[c]&&("object"!==typeof a[c]||!pa(a[c],b[c]))))return!1;for(c in b)if(d||(d=!0),b.hasOwnProperty(c)&&!a.hasOwnProperty(c))return!1;return d?!0:JSON.stringify(a)===JSON.stringify(b)}function sa(a){var b;if(void 0===a||null===a)return!0;for(b in a)if(a.hasOwnProperty(b))return!1;return!0}
function ma(a,b){if(b){var c=b.constructor;ma(a,c.o);var c=c.dK,d;if(c)for(d in c)if(c.hasOwnProperty(d)){var e=c[d];if(d!=e){var f=a.prototype;!f.hasOwnProperty(d)&&f.hasOwnProperty(e)?f[d]=f[e]:!f.hasOwnProperty(e)&&f.hasOwnProperty(d)&&(f[e]=f[d])}}}}w.Zr=function(){return"function"===typeof define&&define.amd};w.i={};t("Assert",w.i,w);w.i.xha=function(){w.i.DEBUG=!0};t("Assert.forceDebug",w.i.xha,w);w.i.Xga=function(){w.i.DEBUG=!1};t("Assert.clearDebug",w.i.Xga,w);
w.i.BM=function(){return!0==w.i.DEBUG};t("Assert.isDebug",w.i.BM,w);w.i.assert=function(a,b){if(w.i.DEBUG&&!a){var c=b||"",d;if(2<arguments.length){c+="(";for(d=2;d<arguments.length;d+=1)c+=arguments[d];c+=")"}w.i.Qd(c)}};t("Assert.assert",w.i.assert,w);w.i.Yb=function(){w.i.DEBUG&&w.i.Qd("Abstract function called")};t("Assert.failedInAbstractFunction",w.i.Yb,w);
w.i.Pc=function(a,b,c){var d;w.i.DEBUG&&(null!=a?(w.i.Dh(b,"function",null,0,!1),d=b.prototype,d.isPrototypeOf(a)||w.i.Qd("object '"+a+"' doesn't match prototype "+d,0,c)):w.i.Qd("null object doesn't match prototype "+d,0,c))};t("Assert.assertPrototype",w.i.Pc,w);w.i.Nga=function(a,b,c){var d;w.i.DEBUG&&null!=a&&(null!=a?(w.i.Dh(b,"function",null,0,!1),d=b.prototype,d.isPrototypeOf(a)||w.i.Qd("object '"+a+"' doesn't match prototype "+d,0,c)):w.i.Qd("null object doesn't match prototype "+d,0,c))};
t("Assert.assertPrototypeOrNull",w.i.Nga,w);w.i.Oga=function(a,b,c,d){w.i.DEBUG&&(b=b.prototype,c=c.prototype,b.isPrototypeOf(a)||c.isPrototypeOf(a)||w.i.Qd("object '"+a+"' doesn't match prototype "+b+" or "+c,0,d))};t("Assert.assertPrototypes",w.i.Oga,w);w.i.Hga=function(a){w.i.DEBUG&&a&&void 0===a.nodeType&&w.i.Qd(a+" is not a DOM Node")};t("Assert.assertDomNodeOrNull",w.i.Hga,w);w.i.wL=function(a){w.i.DEBUG&&(a&&void 0!==a.nodeType||w.i.Qd(a+" is not a DOM Node"))};
t("Assert.assertDomNode",w.i.wL,w);w.i.vL=function(a,b){w.i.DEBUG&&(w.i.wL(a),1!==a.nodeType?w.i.Qd(a+" is not a DOM Element"):b&&a.nodeName!==b&&w.i.Qd(a+" is not a "+b+" Element"))};t("Assert.assertDomElement",w.i.vL,w);w.i.Gga=function(a,b){w.i.DEBUG&&null!=a&&(w.i.wL(a),1!==a.nodeType?w.i.Qd(a+" is not a DOM Element"):b&&a.nodeName!==b&&w.i.Qd(a+" is not a "+b+" Element"))};t("Assert.assertDomElementOrNull",w.i.Gga,w);
w.i.Dh=function(a,b,c,d,e){!w.i.DEBUG||null==a&&e||typeof a===b||(a=a+" is not of type "+b,c&&(a=c+a),w.i.Qd(a))};t("Assert.assertType",w.i.Dh,w);w.i.xf=function(a,b){w.i.DEBUG&&w.i.Dh(a,"object",b,0,!1)};t("Assert.assertObject",w.i.xf,w);w.i.lZ=function(a,b){w.i.DEBUG&&w.i.Dh(a,"object",b,0,!0)};t("Assert.assertObjectOrNull",w.i.lZ,w);w.i.Jga=function(a,b){w.i.DEBUG&&(w.i.Dh(a,"string",b,0,!1),w.i.assert(0<a.length,"empty string"))};t("Assert.assertNonEmptyString",w.i.Jga,w);
w.i.sm=function(a,b){w.i.DEBUG&&w.i.Dh(a,"string",b,0,!1)};t("Assert.assertString",w.i.sm,w);w.i.xL=function(a,b){w.i.DEBUG&&w.i.Dh(a,"string",b,0,!0)};t("Assert.assertStringOrNull",w.i.xL,w);w.i.mo=function(a,b){w.i.DEBUG&&w.i.Dh(a,"function",b,0,!1)};t("Assert.assertFunction",w.i.mo,w);w.i.Gt=function(a,b){w.i.DEBUG&&w.i.Dh(a,"function",b,0,!0)};t("Assert.assertFunctionOrNull",w.i.Gt,w);w.i.kZ=function(a,b){w.i.DEBUG&&w.i.Dh(a,"boolean",b,0,!1)};t("Assert.assertBoolean",w.i.kZ,w);
w.i.rm=function(a,b){w.i.DEBUG&&w.i.Dh(a,"number",b,0,!1)};t("Assert.assertNumber",w.i.rm,w);w.i.Lga=function(a,b){w.i.DEBUG&&w.i.Dh(a,"number",b,0,!0)};t("Assert.assertNumberOrNull",w.i.Lga,w);w.i.QC=function(a,b){w.i.DEBUG&&!Array.isArray(a)&&(void 0===b&&(b=a+" is not an array"),w.i.Qd(b))};t("Assert.assertArray",w.i.QC,w);w.i.Gx=function(a,b){w.i.DEBUG&&null!=a&&!Array.isArray(a)&&(void 0===b&&(b=a+" is not an array"),w.i.Qd(b))};t("Assert.assertArrayOrNull",w.i.Gx,w);
w.i.Kga=function(a,b){w.i.DEBUG&&!isNaN(a)&&(void 0===b&&(b=a+" is convertible to a number"),w.i.Qd(b))};t("Assert.assertNonNumeric",w.i.Kga,w);w.i.Mga=function(a,b){w.i.DEBUG&&isNaN(a)&&(void 0===b&&(b=a+" is not convertible to a number"),w.i.Qd(b))};t("Assert.assertNumeric",w.i.Mga,w);w.i.Iga=function(a,b,c){var d;if(null==a||void 0===b[a.toString()]){if(void 0===c){c=" is not in set: {";for(d in b)b.hasOwnProperty(d)&&(c+=d,c+=",");c=a+(c+"}")}w.i.Qd(c)}};t("Assert.assertInSet",w.i.Iga,w);
w.i.Qd=function(a,b,c){b="Assertion";c&&(b+=" ("+c+")");b+=" failed: ";void 0!==a&&(b+=a);throw Error(b);};t("Assert.assertionFailed",w.i.Qd,w);var ta=ba.__oj_Assert_DEBUG;void 0!==ta&&(w.i.DEBUG=ta);function ua(){this.Init()}t("EventSource",ua,w);H(ua,x,"oj.EventSource");ua.prototype.Init=function(){this.md=[];ua.o.Init.call(this)};A("EventSource.prototype.Init",{Init:ua.prototype.Init});
ua.prototype.on=function(a,b){var c=!1,d;for(d=0;d<this.md.length;d++)if(this.md[d].eventType==a&&this.md[d].eventHandlerFunc==b){c=!0;break}c||this.md.push({eventType:a,eventHandlerFunc:b})};A("EventSource.prototype.on",{on:ua.prototype.on});ua.prototype.off=function(a,b){var c;for(c=this.md.length-1;0<=c;c--)if(this.md[c].eventType==a&&this.md[c].eventHandlerFunc==b){this.md.splice(c,1);break}};A("EventSource.prototype.off",{off:ua.prototype.off});
ua.prototype.handleEvent=function(a,b){var c,d;for(c=0;c<this.md.length;c++)if(d=this.md[c],d.eventType==a&&(d=d.eventHandlerFunc.apply(this,Array.prototype.slice.call(arguments).slice(1)),!1===d))return!1;return!0};A("EventSource.prototype.handleEvent",{handleEvent:ua.prototype.handleEvent});w.T={};t("Config",w.T,w);
w.T.gg=function(){var a;if(w.Zr())return w.i.assert(void 0!==ojt,"ojtranslations module must be defined"),a=ojt._ojLocale_,"root"==a?"en":a;a=w.T.Vs;null==a&&((a=document.documentElement.lang)||(a=void 0===navigator?"en":(navigator.language||navigator.userLanguage||"en").toLowerCase()),w.T.Vs=a=a.toLowerCase());return a};t("Config.getLocale",w.T.gg,w);
w.T.Bja=function(a,b){if(w.Zr()){var c=["ojL10n!ojtranslations/nls/"+a+"/ojtranslations"],d=0;if(w.za&&(c.push("ojL10n!ojtranslations/nls/"+a+"/localeElements"),w.Qi)){var e=w.Qi.A5(),d=e.length;e.forEach(function(b){c.push("ojL10n!ojtranslations/nls/"+a+b)})}require(c,function(a,c){ojt=a;c&&w.za.D5(c);for(var e=0;e<d;e++)w.Qi.sQ(arguments[e+2]);b&&b()})}else w.T.Vs=a,b&&b()};t("Config.setLocale",w.T.Bja,w);
w.T.Fa=function(a){var b=/^\/|:/;return null==a||b.test(a)?a:(b=w.T.rea)?b+("/"==b.charAt(b.length-1)?"":"/")+a:w.Zr()?(b=require.toUrl("ojs/_foo_"),b.replace(/[^\/]*$/,"../"+a)):a};t("Config.getResourceUrl",w.T.Fa,w);w.T.Dja=function(a){w.T.rea=a};t("Config.setResourceBaseUrl",w.T.Dja,w);w.T.zja=function(a){w.T.l6=a};t("Config.setAutomationMode",w.T.zja,w);w.T.cM=function(){return w.T.l6};t("Config.getAutomationMode",w.T.cM,w);
w.T.L_=function(){var a="Oracle JET Version: "+w.version+"\n",a=a+("Oracle JET Revision: "+w.revision+"\n"),b="undefined"!==typeof window;b&&window.navigator&&(a+="Browser: "+window.navigator.userAgent+"\n",a+="Browser Platform: "+window.navigator.platform+"\n");$&&($.fn&&(a+="jQuery Version: "+$.fn.jquery+"\n"),$.ui&&$.ui.version&&(a+="jQuery UI Version: "+$.ui.version+"\n"));va&&(a+="Knockout Version: "+(w.Zr()&&ko?ko.version:"")+"\n");b&&window.pja&&(a+="Require Version: "+window.pja.version+"\n");
return a};t("Config.getVersionInfo",w.T.L_,w);w.T.Gia=function(){console.log(w.T.L_())};t("Config.logVersionInfo",w.T.Gia,w);w.Ic=function(){};
w.Ic.zm=function(){var a;w.Ca.ti(a)&&(a=navigator.userAgent);a=a.toLowerCase();var b=w.Ca.Vq(a),c=w.Ic.X7;if(c&&c.hashCode===b)return{os:c.os,browser:c.browser,browserVersion:c.browserVersion,engine:c.engine,engineVersion:c.engineVersion,hashCode:c.hashCode};var c="Unknown",d="unknown",e=0,f="unknown",h=0;-1<a.indexOf("iphone")||-1<a.indexOf("ipad")?c="IOS":-1<a.indexOf("mac")?c="Mac":-1<a.indexOf("sunos")?c="Solaris":-1<a.indexOf("android")?c="Android":-1<a.indexOf("linux")?c="Linux":-1<a.indexOf("win")&&
(c="Windows");-1<a.indexOf("msie")?(d="ie",e=w.Ic.uj(a,/msie (\d+[.]\d+)/),a.indexOf("trident")&&(f="trident",h=w.Ic.uj(a,/trident\/(\d+[.]\d+)/))):-1<a.indexOf("trident")?(d="ie",e=w.Ic.uj(a,/rv:(\d+[.]\d+)/),a.indexOf("trident")&&(f="trident",h=w.Ic.uj(a,/trident\/(\d+[.]\d+)/))):-1<a.indexOf("edge")?(d="edge",e=h=w.Ic.uj(a,/edge\/(\d+[.]\d+)/),f="edgehtml"):-1<a.indexOf("chrome")?(d="chrome",e=w.Ic.uj(a,/chrome\/(\d+[.]\d+)/),28<=e?(f="blink",h=e):(f="webkit",h=w.Ic.uj(a,/applewebkit\/(\d+[.]\d+)/))):
-1<a.indexOf("safari")?(d="safari",e=w.Ic.uj(a,/version\/(\d+[.]\d+)/),f="webkit",h=w.Ic.uj(a,/applewebkit\/(\d+[.]\d+)/)):-1<a.indexOf("firefox")&&(d="firefox",e=w.Ic.uj(a,/rv:(\d+[.]\d+)/),f="gecko",h=w.Ic.uj(a,/gecko\/(\d+)/));c=w.Ic.X7={hashCode:b,os:c,browser:d,browserVersion:e,engine:f,engineVersion:h};return{os:c.os,browser:c.browser,browserVersion:c.browserVersion,engine:c.engine,engineVersion:c.engineVersion,hashCode:c.hashCode}};
w.Ic.uj=function(a,b){var c=a.match(b);return c&&(c=c[1])?parseFloat(c):0};w.Ob=function(){};t("ThemeUtils",w.Ob,w);w.Ob.Tha=function(){return(w.Ob.Tc("oj-theme-json")||{}).name};t("ThemeUtils.getThemeName",w.Ob.Tha,w);w.Ob.Uha=function(){return(w.Ob.Tc("oj-theme-json")||{}).targetPlatform};t("ThemeUtils.getThemeTargetPlatform",w.Ob.Uha,w);w.Ob.Wga=function(){this.dA=null};t("ThemeUtils.clearCache",w.Ob.Wga,w);
w.Ob.Tc=function(a){null==this.dA&&(this.dA={},this.nW={},this.Waa=window.getComputedStyle(document.head).getPropertyValue("font-family"));var b=this.dA[a];if(b===this.nW)return null;if(null!=b)return b;var c=document.createElement("meta");c.className=a;document.head.appendChild(c);var d=window.getComputedStyle(c).getPropertyValue("font-family");if(null!=d)if(d==this.Waa)w.l.warn("parseJSONFromFontFamily: When the selector ",a," is applied the font-family read off the dom element is ",d,". The parent dom elment has the same font-family value.",
" This is interpreted to mean that no value was sent down for selector ",a,". Null will be returned.");else if(d=d.replace(/^['"]+|\s+|\\|(;\s?})+|['"]$/g,""))try{b=JSON.parse(d)}catch(e){throw w.l.error("Error parsing json for selector "+a+".\nString being parsed is "+d+". Error is:\n",e),document.head.removeChild(c),e;}document.head.removeChild(c);this.dA[a]=null==b?this.nW:b;return b};t("ThemeUtils.parseJSONFromFontFamily",w.Ob.Tc,w);w.Ld=function(){};t("ResponsiveUtils",w.Ld,w);
var wa={SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl"};t("ResponsiveUtils.SCREEN_RANGE",wa,w);var xa={SM_UP:"sm-up",MD_UP:"md-up",LG_UP:"lg-up",XL_UP:"xl-up",XXL_UP:"xxl-up",SM_ONLY:"sm-only",MD_ONLY:"md-only",LG_ONLY:"lg-only",XL_ONLY:"xl-only",MD_DOWN:"md-down",LG_DOWN:"lg-down",XL_DOWN:"xl-down",HIGH_RESOLUTION:"high-resolution"};t("ResponsiveUtils.FRAMEWORK_QUERY_KEY",xa,w);w.Ld.wp={};w.Ld.wp[wa.SM]=0;w.Ld.wp[wa.MD]=1;w.Ld.wp[wa.LG]=2;w.Ld.wp[wa.XL]=3;w.Ld.wp[wa.XXL]=4;
w.Ld.B9=function(a){var b=document.getElementsByClassName(a).item(0);null===b&&(b=document.createElement("meta"),b.className=a,document.head.appendChild(b));return window.getComputedStyle(b).getPropertyValue("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")};w.Ld.Ot=function(a){a=w.Ld.B9("oj-mq-"+a);return"null"==a?null:a};t("ResponsiveUtils.getFrameworkQuery",w.Ld.Ot,w);
w.Ld.compare=function(a,b){var c=w.Ld.wp[a],d=w.Ld.wp[b];if(void 0==c)throw"size1 param "+a+" illegal, please use one of the screen size constants like oj.ResponsiveUtils.SCREEN_RANGE.MD";if(void 0==d)throw"size2 param "+b+" illegal, please use one of the screen size constants like oj.ResponsiveUtils.SCREEN_RANGE.MD";return c-d};t("ResponsiveUtils.compare",w.Ld.compare,w);w.Ca={};t("StringUtils",w.Ca,w);w.Ca.v5=/^\s*|\s*$/g;w.Ca.hl=function(a){return null===a?!0:0===w.Ca.trim(a).length};
t("StringUtils.isEmpty",w.Ca.hl,w);w.Ca.ti=function(a){return void 0===a||w.Ca.hl(a)?!0:!1};t("StringUtils.isEmptyOrUndefined",w.Ca.ti,w);w.Ca.ed=function(a){return null!==a&&("string"===typeof a||a instanceof String)};t("StringUtils.isString",w.Ca.ed,w);w.Ca.trim=function(a){return w.Ca.ed(a)?a.replace(w.Ca.v5,""):a};t("StringUtils.trim",w.Ca.trim,w);w.Ca.Vq=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b&=b;return b};w.Nb={};
t("CollectionUtils",w.Nb,w);w.Nb.Fd=function(a,b,c,d,e){return w.Nb.IR(a,b,c,d,e,0)};t("CollectionUtils.copyInto",w.Nb.Fd,w);w.Nb.isPlainObject=function(a){if("object"===typeof a)try{if(a.constructor&&a.constructor.prototype.hasOwnProperty("isPrototypeOf"))return!0}catch(b){}return!1};t("CollectionUtils.isPlainObject",w.Nb.isPlainObject,w);
w.Nb.IR=function(a,b,c,d,e,f){var h,k,l;if(void 0===e||null===e)e=Number.MAX_VALUE;if(a&&b&&a!==b){l=Object.keys(b);for(var m=0;m<l.length;m++){h=l[m];k=c?c(h):h;h=b[h];var n=!1;if(d&&f<e){var p=a[k];w.Nb.isPlainObject(h)&&(null==p||w.Nb.isPlainObject(p))&&(n=!0,a[k]=p||{},w.Nb.IR(a[k],h,c,!0,e,f+1))}n||(a[k]=h)}}return a};w.ba={};t("Translations",w.ba,w);w.ba.BN=function(a){w.ba.zG=a};t("Translations.setBundle",w.ba.BN,w);w.ba.D_=function(a){return w.ba.NT(a)};
t("Translations.getResource",w.ba.D_,w);w.ba.Db=function(a,b){return null==a?null:w.ba.V8(a,b)};t("Translations.applyParameters",w.ba.Db,w);w.ba.r=function(a,b){var c=w.ba.NT(a);if(null==c)return a;var d={};2<arguments.length?d=Array.prototype.slice.call(arguments,1):2==arguments.length&&(d=arguments[1],"object"===typeof d||d instanceof Array||(d=[d]));return w.ba.Db(c,d)};t("Translations.getTranslatedString",w.ba.r,w);
w.ba.lD=function(a){a=w.ba.aT()[a];var b,c;if(null==a)return{};b={};for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};t("Translations.getComponentTranslations",w.ba.lD,w);w.ba.NT=function(a){a=a?a.split("."):[];var b=w.ba.aT(),c=a.length,d=0,e=a[d];for(w.i.xf(b);0<--c&&b;)b=b[e],d++,e=a[d];return b?b[e]||null:null};
w.ba.V8=function(a,b){var c=a.length,d=[],e=null,f=!1,h=!1,k=!1,l=!1,m,n;for(n=0;n<c;n++){var p=a.charAt(n),q=!1;if(f)q=!0,f=!1;else switch(p){case "$":f=!0;break;case "{":l||(h||(m=!1,e=[]),h=!0);break;case "}":h&&0<e.length&&(h=b[e.join("")],d.push(void 0===h?"null":h));h=!1;break;case "[":h||(k?l=!0:k=!0);break;case "]":l?l=!1:k=!1;break;default:q=!0}q&&(h?","==p||" "==p?m=!0:m||e.push(p):l||d.push(p))}return d.join("")};
w.ba.aT=function(){var a=w.ba.zG;return a?a:w.Zr()?(w.i.assert(void 0!==ojt,"ojtranslations module must be defined"),ojt):{}};function ya(a){this.sA=a;this.AQ=za();this.di=this.AQ.toString(36)+"_"+Math.random().toString(36)}Object.defineProperties(ya.prototype,{id:{get:function(){return this.di},enumerable:!0},description:{get:function(){if($.isFunction(this.sA))return this.sA();if(this.sA)return this.sA.toString()},enumerable:!0}});
ya.prototype.toString=function(){var a;a="oj.BusyState [id\x3d"+this.id;this.description&&(a+=", description\x3d"+this.description);return a+=", elapsed\x3d"+(za()-this.AQ)+"]"};ya.prototype.ym=function(a){return this.id===a.id&&this.description===a.description};function za(){return window.performance?window.performance.now():(new Date).getTime()}function Ba(){this.Init()}t("BusyContext",Ba,w);H(Ba,x,"oj.BusyContext");
Ba.prototype.Init=function(){Ba.o.Init.call(this);this.rC=new Map;this.YV={x_:function(){this.GJ||(this.GJ=new Promise(this.D6.bind(this)));return this.GJ},qja:function(){this.K6();this.HJ&&this.HJ(!0);this.HJ=this.GJ=null},Oha:function(a,b){var c,d=new Promise(function(d,f){c=window.setTimeout(function(){Ca(a);w.l.info("BusyContext.whenReady: rejected");var c=Da(a),d=Error("whenReady timeout of "+b+"ms expired with the following busy states: "+c.join(", "));d.busyStates=c;f(d)},b)});this.HK.push(c);
return Promise.race([this.x_(),d])},K6:function(){var a=this.HK;this.HK=[];for(var b=0;b<a.length;b++)window.clearTimeout(a[b])},D6:function(a){this.HJ=a},HK:[]}};function Ca(a){w.l.option("level")===w.l.hp&&(w.l.info("\x3e\x3e Busy states: %d",a.size),a=Da(a),0<a.length&&w.l.info(a.join("\n")))}function Da(a){var b=[];a.forEach(function(a){b.push(a)});return b}
Ba.prototype.rL=function(a){w.l.info("BusyContext.addBusyState: start");var b=this.rC;a=new ya(a.description);w.l.info("\x3e\x3e "+a);b.set(a.id,a);w.l.info("BusyContext.addBusyState: end");return this.Uda.bind(this,a)};A("BusyContext.prototype.addBusyState",{rL:Ba.prototype.rL});
Ba.prototype.whenReady=function(a){w.l.info("BusyContext.whenReady: start, timeout:%d",a);var b=this.rC;if(0===b.size)return w.l.info("BusyContext.whenReady: resolved"),Promise.resolve(!0);var c=this.YV;a=isNaN(a)?c.x_():c.Oha(b,a);w.l.info("BusyContext.whenReady: end");return a};A("BusyContext.prototype.whenReady",{whenReady:Ba.prototype.whenReady});Ba.prototype.q0=function(){w.l.info("BusyContext.isReady: start");var a=this.rC,b=0===a.size;Ca(a);w.l.info("BusyContext.isReady: end");return b};
A("BusyContext.prototype.isReady",{q0:Ba.prototype.q0});Ba.prototype.Uda=function(a){var b=this.rC;if(!b["delete"](a.id))throw Error("Busy state has already been resolved:\n"+a);0===b.size&&(a=this.YV,w.l.info("BusyContext._removeBusyState: resolving whenReady promises"),a.qja());w.l.info("BusyContext._removeBusyState: end")};Ba.prototype.hZ=function(){if("oj_whenReady"in window&&window.oj_whenReady){var a=this.TQ;this.TQ=null;a?a():w.l.ema("BusyContext.applicationBoostrapComplete already invoked.")}else w.l.info("BusyContext.applicationBoostrapComplete: strategy not enabled.")};
A("BusyContext.prototype.applicationBoostrapComplete",{hZ:Ba.prototype.hZ});function Ea(){this.Init()}var Ha;t("Context",Ea,w);H(Ea,x,"oj.Context");Ea.prototype.Init=function(){Ea.o.Init.call(this)};function Ia(){Ha||(Ha=new Ea);return Ha}t("Context.getPageContext",Ia,w);Ea.prototype.dM=function(){this.WQ||(this.WQ=new Ba);return this.WQ};A("Context.prototype.getBusyContext",{dM:Ea.prototype.dM});
if("undefined"!==typeof window){var Ja=Ia().dM();"oj_whenReady"in window&&window.oj_whenReady&&(Ja.TQ=Ja.rL({description:'Application loading. Busy state enabled by setting the "window.oj_whenReady \x3d true;" global variable. Application bootstrap busy state is released by calling "oj.Context.getPageContext().getBusyContext().applicationBoostrapComplete();".'}))}
(function(){function a(a,c){c=c||{bubbles:!1,cancelable:!1,detail:void 0};var d=document.createEvent("CustomEvent");d.initCustomEvent(a,c.bubbles,c.cancelable,c.detail);return d}"undefined"!==typeof window&&"function"!==typeof window.CustomEvent&&(a.prototype=window.Event.prototype,window.CustomEvent=a)})();
(function(){w.yd={};w.yd.Px=function(c){var d={};if(c){var e=a.exec(c),e=e?e[1]:null;e||(d.LZ=!0,e=(e=b.exec(c))?e[1]:null);d.expr=e}return d};w.yd.yL=function(a){return a.toLowerCase().replace(/-(.)/g,function(a,b){return b.toUpperCase()})};w.yd.Cu=function(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})};w.yd.TC=function(a,b,e){var f;switch(e.toLowerCase()){case "boolean":null==b||"true"===b||""===b||b.toLowerCase()===w.yd.Cu(a)?f=!0:"false"===b&&(f=!1);break;case "number":isNaN(b)||
(f=Number(b));break;case "string":f=b;break;default:try{f=JSON.parse(b)}catch(h){}}null==f&&w.l.error("Unable to parse value %s for property %s with type %s.",b,a,e);return f};var a=/(?:\{\{\s*)([^\s]+)(?:\s*\}\})/,b=/(?:\[\[\s*)([^\s]+)(?:\s*\]\])/})();
w.Bb=w.Events={on:function(a,b,c){return this.Hl(a,b,c,!1,!1)},off:function(a,b,c){return this.OJ(a,b,c,!1)},trigger:function(a){var b=Array.prototype.slice.call(arguments);b.unshift(!1);return w.Bb.Cb.apply(this,b)},once:function(a,b,c){return this.rW(a,b,c,!1,null)},listenTo:function(a,b,c){var d,e,f,h,k={};b.constructor===String?k[b]=c:k=b;for(h in k)if(k.hasOwnProperty(h))for(b=w.Bb.Rp(h),c=0;c<b.length;c+=1)d=b[c].event,e=b[c].U,f={event:d,U:e,object:a,Eb:k[h]},this.UG(this._listeningTo,f,w.Bb.PV),
d=e?d+":"+e:d,void 0===this._listeningTo&&(this._listeningTo=[]),this._listeningTo.push(f),a.Hl(d,k[h],null,!0,!1);return this},listenToOnce:function(a,b,c){var d,e,f,h,k={};b.constructor===String?k[b]=c:k=b;for(h in k)if(k.hasOwnProperty(h))for(b=w.Bb.Rp(h),c=0;c<b.length;c+=1)d=b[c].event,e=b[c].U,f={event:d,U:e,object:a,Eb:k[h]},this.UG(this._listeningTo,f,w.Bb.PV),d=e?d+":"+e:d,void 0===this._listeningTo&&(this._listeningTo=[]),this._listeningTo.push(f),a.rW(d,k[h],null,!0,this);return this},
stopListening:function(a,b,c){var d,e={},f,h,k,l,m,n,p,q,r;if(null==arguments||1>=arguments.length){n=this._listeningTo?this._listeningTo.length:0;for(q=0;q<n;q++)if(l=this._listeningTo[q],m=a?a===l.object:!0)m=l.object.OJ,m.apply(l.object,[l.event,l.Eb,l.context,!0]);this._listeningTo=[];return this}d=b;a&&a.constructor===String&&(d=a);d.constructor===String?e[d]=c:e=d;for(r in e)if(e.hasOwnProperty(r))for(d=w.Bb.Rp(r),f=0;f<d.length;f+=1)for(h=d[f].event,k=d[f].U,n=this._listeningTo?this._listeningTo.length:
0,q=n-1;0<=q;q-=1)l=this._listeningTo[q],m=a?a===l.object:!0,n=h?h===l.event:!0,p=c?e[r]===l.Eb:!0,l=k?k===l.U:!0,m&&n&&p&&l&&(m=this._listeningTo[q].object.OJ,m.apply(this._listeningTo[q].object,[this._listeningTo[q].event,this._listeningTo[q].Eb,this._listeningTo[q].context,!0]),this._listeningTo.splice(q,1));return this}};w.Bb.bind=w.Bb.on;w.Bb.unbind=w.Bb.off;
var L={ADD:"add",ALLADDED:"alladded",REMOVE:"remove",RESET:"reset",REFRESH:"refresh",SORT:"sort",CHANGE:"change",DESTROY:"destroy",ALLREMOVED:"allremoved",REQUEST:"request",SYNC:"sync",ERROR:"error",INVALID:"invalid",READY:"ready",ALL:"all"};t("Events.EventType",L,w);w.Bb.eF=function(a,b){var c,d=b||this;for(c in d)"function"===typeof d[c]&&(a[c]=d[c]);a.cd={};a._listeningTo=[]};
w.Bb.rW=function(a,b,c,d,e){var f,h,k,l;k=this.aI(a,b);for(l in k)if(k.hasOwnProperty(l))for(a=this.Rp(l),b=0;b<a.length;b+=1)f=a[b].event,h=a[b].U,void 0===this.cd&&(this.cd=[]),void 0===this.cd[f]&&(this.cd[f]=[]),this.cd[f].push({Eb:k[l],context:c,U:h,Rm:!0,fired:!1,xo:d,Jy:e});return this};w.Bb.gY=function(a){return a.Rm?a.fired?!1:a.fired=!0:!0};w.Bb.iT=function(a,b){return b.context||b.Jy||a};
w.Bb.Cb=function(a,b){var c=this.Rp(b),d,e,f,h,k,l;h=[];for(d=0;d<c.length;d+=1)e=c[d].event,f=c[d].U,h.push({event:e,U:f});for(d=0;d<h.length;d+=1){k=this.QA(this.cd,L.ALL);c=w.Bb.QA(this.cd,h[d].event,!1);for(e=0;e<(c?c.length:0);e+=1)c[e].U===h[d].U&&c[e].Eb&&(f=Array.prototype.slice.call(arguments),c&&c[e]&&c[e].Rm&&(this.iX(w.Bb.QA(this.cd,h[d].event,!0),c[e]),c[e].Jy&&c[e].Jy.stopListening(this,b,c[e].Eb)),c&&c[e]&&this.gY(c[e])&&(l=c[e].Eb,a&&!c[e].h0||l.apply(w.Bb.iT(this,c[e]),f.slice(2))));
for(e=0;e<(k?k.length:0);e+=1)f=Array.prototype.slice.call(arguments),0<f.length&&(f[1]=h[d].U?h[d].event+":"+h[d].U:h[d].event),k&&k[e]&&k[e].Eb&&this.gY(k[e])&&(l=k[e].Eb,a&&!k[e].h0||l.apply(w.Bb.iT(this,k[e]),f.slice(1))),k&&k[e]&&k[e].Rm&&(this.iX(this.QA(this.cd,L.ALL,!0),k[e]),k[e].Jy&&k[e].Jy.stopListening(this,L.ALL,k[e].Eb))}return this};
w.Bb.Hl=function(a,b,c,d,e){var f,h,k,l;a=this.aI(a,b);for(f in a)if(a.hasOwnProperty(f))for(b=this.Rp(f),h=0;h<b.length;h+=1)k=b[h].event,l=b[h].U,void 0===this.cd&&(this.cd=[]),void 0===this.cd[k]&&(this.cd[k]=[]),l={Eb:a[f],context:c,U:l,xo:d,h0:e},-1===this.UG(this.cd[k],l,w.Bb.Paa)&&this.cd[k].push(l);return this};
w.Bb.OJ=function(a,b,c,d){var e,f;if(null==arguments||0==arguments.length)return this.cd={},this;if(null==a)return this.hX(a,b,c,d),this;e=this.aI(a,b);for(f in e)e.hasOwnProperty(f)&&this.hX(f,e[f],c,d);return this};w.Bb.aI=function(a,b){var c={};a.constructor===String?c[a]=b:c=a;return c};
w.Bb.hX=function(a,b,c,d){var e=[],f,h,k,l,m,n,p,q;if(a)e=w.Bb.Rp(a);else if(void 0!==this.cd)for(h in this.cd)this.cd.hasOwnProperty(h)&&e.push({event:h});for(a=0;a<e.length;a+=1)if(h=e[a].event,k=e[a].U,void 0!==this.cd&&this.cd[h]instanceof Array){l=this.cd[h];for(f=l.length-1;0<=f;f-=1)m=void 0===b||null===b||l[f].Eb==b,n=void 0===c||null===c||l[f].context==c,p=void 0===k||null===k||l[f].U==k,q=void 0===d||null===d||l[f].xo==d,m&&n&&p&&q&&l.splice(f,1);0===l.length&&delete this.cd[h]}};
w.Bb.iX=function(a,b){var c,d,e,f,h,k;if(a)for(c=a.length-1;0<=c;c-=1)d=void 0===b.Eb||null===b.Eb||a[c].Eb==b.Eb,e=void 0===b.context||null===b.context||a[c].context==b.context,f=void 0===b.U||null===b.U||a[c].U==b.U,h=void 0===b.xo||null===b.xo||a[c].xo==b.xo,k=void 0===b.Rm||null===b.Rm||a[c].Rm==b.Rm,d&&e&&f&&h&&k&&a.splice(c,1)};w.Bb.Rp=function(a){a=a?a.split(" "):[];var b=[],c,d,e;for(c=0;c<a.length;c+=1)d=a[c].split(":"),e=d[0],d=1<d.length?d[1]:null,b.push({event:e,U:d});return b};
w.Bb.Paa=function(a,b){return a.Eb===b.Eb&&a.U===b.U&&a.context===b.context&&a.xo===b.xo&&a.Rm===b.Rm};w.Bb.PV=function(a,b){return a.event===b.event&&a.U===b.U&&a.context===b.context&&a.object===b.object};w.Bb.UG=function(a,b,c){var d;if(void 0===a)return-1;for(d=0;d<a.length;d+=1)if(c(a[d],b))return d;return-1};w.Bb.QA=function(a,b,c){if(a&&a[b]instanceof Array){if(c)return a[b];c=[];var d;for(d=0;d<a[b].length;d++)c.push(a[b][d]);return c}return null};function M(a,b){Ka(this,a,b,null)}var La;
t("Model",M,w);H(M,x,"oj.Model");M.prototype.Init=function(){M.o.Init.call(this)};M.prototype.attributes={};A("Model.prototype.attributes",{attributes:M.prototype.attributes});M.prototype.bc={};A("Model.prototype.defaults",{bc:M.prototype.bc});M.prototype.id=null;A("Model.prototype.id",{id:M.prototype.id});M.prototype.g0="id";A("Model.prototype.idAttribute",{g0:M.prototype.g0});M.prototype.A2=null;A("Model.prototype.urlRoot",{A2:M.prototype.A2});M.prototype.Cj=null;A("Model.prototype.customURL",{Cj:M.prototype.Cj});
M.prototype.validate=null;A("Model.prototype.validate",{validate:M.prototype.validate});M.prototype.B2=null;A("Model.prototype.validationError",{B2:M.prototype.B2});var Ma=0;
function Ka(a,b,c,d){var e=null,f;if(!La){a.Init();w.Bb.eF(a);Na(a);a.tN={};a.pE=!1;a.index=-1;c=c||{};a.attributes={};a.defaults&&!c.tia&&(a.attributes=Oa($.isFunction(a.defaults)?a.defaults():a.defaults,null));for(e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);if(b)if(d=c.parse,$.isFunction(d)&&(a.parse=d),f=Oa(b,a.attributes),f=d?a.parse(f):f,null==f||void 0===f)a.attributes={};else for(e in f)f.hasOwnProperty(e)&&Pa(a,e,f[e],!1,!1,c);Ra(a);Sa(a,c.collection);c.customURL&&(a.customURL=c.customURL);c.url&&
(a.url=c.url);c.urlRoot&&(a.urlRoot=c.urlRoot);a.initialize&&a.initialize(b,c);Ta(a)}}function Ua(a,b){La=!0;var c,d;c=new M;La=!1;$.extend(c,this.prototype);a=a||{};for(d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);var e;e=a&&a.constructor&&a.hasOwnProperty("constructor")?a.constructor:function(b,c){Ka(this,b,c,a)};$.extend(e,this);e.prototype=c;e.extend=Ua;e.prototype.constructor=e;w.Bb.eF(e,this);if(b)for(d in b)b.hasOwnProperty(d)&&(e[d]=b[d]);return e}t("Model.extend",Ua,w);M.prototype.Cb=function(){};
function Ra(a){a.cid||(a.cid="id"+Ma,Ma+=1)}function Va(a,b){var c=a.uN;a.uN=b;return c}function Wa(a){var b;if(a&&a instanceof Object)for(b in a)if(a.hasOwnProperty(b))return!0;return!1}function Sa(a,b){null==b?delete a.collection:(a.collection=b,Ta(a))}function Xa(a){return a.collection}function Ya(a,b,c,d,e){null!=b&&a.Cb(e,L.CHANGE+":"+b,a,c,d)}function Za(a,b,c){a.Cb(c,L.CHANGE,a,b,null)}
function Ta(a){var b=null;a.collection&&a.collection.modelId&&(b=a.collection.modelId,b=$.isFunction(b)?b.call(a.collection,a.attributes):b);b||(b=a.cI(),b=null!=a.attributes?a.attributes[b]:null);a.id=b}function Na(a){a.changed={}}
function Pa(a,b,c,d,e,f){if(null==b)return!0;var h={},k,l=a.pE;if(e)for(k in b)b.hasOwnProperty(k)&&(h[k]=b[k]);else h[b]=c;b=f||{};if(!ab(a,h,{validate:b.validate},!1))return!1;l||(Na(a),a.po=[]);a.pE||(a.tN=Oa(a.attributes,null));a.pE=!0;for(k in h)if(h.hasOwnProperty(k)){c=a;e=k;f=h[k];var m=d,n=pa(c.attributes[e],f);m||!n?(c.attributes[e]=f,Ta(c),c=!n):c=!1;c?(a.changed[k]=h[k],a.po.push(k)):delete h[k]}d=b.silent;for(k in h)h.hasOwnProperty(k)&&(!d&&(0<a.po.length||l&&-1===a.po.indexOf(k))&&
(a.z1=!0,a.bja=b),Ya(a,k,h[k],b,d));if(l)return!0;if(!d&&!l)for(;a.z1;)a.z1=!1,Za(a,a.bja,d);a.pE=!1;return!0}M.prototype.clear=function(a){var b,c={silent:!0},d;a=a||{};d=a.silent;c.validate=a.validate;Na(this);for(b in this.attributes)if(this.attributes.hasOwnProperty(b)){if(!bb(this,b,c,!0))return!1;this.Cb(d,L.CHANGE+":"+b,this,void 0,null)}this.attributes={};Ta(this);Ya(this,null,null,null,d);Za(this,null,d);return this};A("Model.prototype.clear",{clear:M.prototype.clear});
function Oa(a,b){b=b||{};for(var c in a)b.hasOwnProperty(c)&&a.hasOwnProperty(c)&&void 0===a[c]&&delete a[c];w.Nb.Fd(b,a,void 0,!0,1E4);return b}M.prototype.clone=function(){var a=new this.constructor,b;for(b in this)this.hasOwnProperty(b)&&this[b]!==this.attributes&&(a[b]=this[b]);a.attributes=Oa(this.attributes,null);delete a.cid;Ra(a);Ta(a);return a};A("Model.prototype.clone",{clone:M.prototype.clone});
function cb(a,b,c){var d=a.id;if(void 0!==d&&d==b)return!0;a=a.cid;return void 0!==a&&a==c?!0:!1}M.prototype.set=function(a,b,c){var d=c||{},e,f=!0;if(arguments&&0<arguments.length)if(w.Ca.ed(a))d.unset?bb(this,a,null,!1):Pa(this,a,b,!1,!1,d)||(f=!1);else if(d=b||{},d.unset)for(e in a)a.hasOwnProperty(e)&&bb(this,e,null,!1);else Pa(this,a,null,!0,!0,d)||(f=!1);return f?this:!1};A("Model.prototype.set",{set:M.prototype.set});M.prototype.z2=function(a,b){return bb(this,a,b,!1)};
A("Model.prototype.unset",{z2:M.prototype.z2});function bb(a,b,c,d){c=c||{};var e=c.silent,f={};if(a.has(b)){if(!ab(a,f,c,!1))return!1;d||Na(a);delete a.attributes[b];a.changed[b]=void 0;Ya(a,b,null,null,e);Za(a,null,e)}Ta(a);return!0}M.prototype.get=function(a){return this.attributes[a]};A("Model.prototype.get",{get:M.prototype.get});M.prototype.has=function(a){return null!=this.attributes[a]};A("Model.prototype.has",{has:M.prototype.has});
M.prototype.fetch=function(a){a=a||{};var b=a.success,c=a.error,d=this,e;e=eb(a);e.error=function(b,e,k){fb(d,!1,a,e,k,b);c&&c.apply(d,arguments)};e.success=function(c){e.xhr&&(a.xhr=e.xhr);gb(d,c,e);$.isFunction(d.parse)&&d.set(d.parse(c),e);b&&b.call(hb(e,d),d,c,a)};return ib("read",this,e)};A("Model.prototype.fetch",{fetch:M.prototype.fetch});M.prototype.parse=function(a){return a};
M.prototype.url=function(){var a=jb(this,"urlRoot"),b=this.id;if(a)return b?a+"/"+encodeURIComponent(b):a;if(a=this.collection)return a=jb(a,"url"),b&&a?(b="/"==a.charAt(a.length-1)?"":"/",a+b+encodeURIComponent(this.id)):a;throw new kb;};A("Model.prototype.url",{url:M.prototype.url});M.prototype.keys=function(){var a,b=[];for(a in this.attributes)this.attributes.hasOwnProperty(a)&&b.push(a);return b};A("Model.prototype.keys",{keys:M.prototype.keys});
M.prototype.D2=function(){var a,b=[];for(a in this.attributes)this.attributes.hasOwnProperty(a)&&b.push(this.get(a));return b};A("Model.prototype.values",{D2:M.prototype.D2});M.prototype.x1=function(){var a,b=[],c;for(a in this.attributes)this.attributes.hasOwnProperty(a)&&(c=[],c.push(a),c.push(this.get(a)),b.push(c));return b};A("Model.prototype.pairs",{x1:M.prototype.x1});
M.prototype.u1=function(a){var b=[],c,d,e={};if(a instanceof Array)b=a;else for(c=0;c<arguments.length;c++)b.push(arguments[c]);for(d in this.attributes)this.attributes.hasOwnProperty(d)&&-1==b.indexOf(d)&&(e[d]=this.get(d));return e};A("Model.prototype.omit",{u1:M.prototype.u1});M.prototype.A1=function(a){var b=[],c,d={};if(a instanceof Array)b=a;else for(c=0;c<arguments.length;c++)b.push(arguments[c]);for(c=0;c<b.length;c++)this.attributes.hasOwnProperty(b[c])&&(d[b[c]]=this.get(b[c]));return d};
A("Model.prototype.pick",{A1:M.prototype.A1});M.prototype.k0=function(){var a,b={},c;for(a in this.attributes)this.attributes.hasOwnProperty(a)&&(c=this.get(a),b[c]=a);return b};A("Model.prototype.invert",{k0:M.prototype.k0});function lb(a){var b=jb(a,"urlRoot");return b?b:Xa(a)?Xa(a).url:null}M.prototype.parseSave=function(a){return a};M.prototype.isValid=function(){var a={};a.validate=this.validate;return ab(this,this.attributes,a,!1)};A("Model.prototype.isValid",{isValid:M.prototype.isValid});
function ab(a,b,c,d){c=c||{};var e=a.validate,f;if(f=e)f=c||{},f=void 0!==f.validate&&null!==f.validate?f.validate:d;return f&&(a.validationError=e.call(a,b,c),a.validationError)?(a.Cb(!1,L.INVALID,a,a.validationError,c),!1):!0}
function mb(a){var b=!1,c={},d,e={};if(a&&0<a.length){1<a.length&&a[a.length-1]&&Wa(a[a.length-1])&&(b=!0,c=a[a.length-1]||{});if(null==a[0])return{attributes:null,options:c};if(Wa(a[0])||sa(a[0]))for(d in a[0])a[0].hasOwnProperty(d)&&(e[d]=a[0][d]);else for(d=0;d<a.length;d+=2)if(void 0!==a[d]||d<a.length-1||!b&&d===a.length-1)e[a[d]]=a[d+1]}return{attributes:e,options:c}}function eb(a){var b={},c;a=a||{};for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}
function fb(a,b,c,d,e,f){c=c||{};c.textStatus=d;c.errorThrown=e;a.Cb(b,L.ERROR,a,f,c)}
M.prototype.save=function(a,b){var c,d,e,f,h,k;c=mb(arguments);var l,m,n;n=void 0===a?void 0:c.attributes;b=b||{};l=eb(c.options);c=$.extend(!0,{},this.attributes,n);if(!ab(this,c,l,!0))return!1;l.wait||this.set(n);c=void 0===l.forceNew?!1:l.forceNew;f=this;h=l.error;k=l.patch;l.error=function(a,c,d){fb(f,!1,b,c,d,a);h&&h.apply(f,arguments)};l.saveAttrs=l.wait?nb(this,n):this.attributes;m=this.attributes;this.attributes=l.saveAttrs;l.saveAttrs=this.toJSON();this.attributes=m;if(!c&&!this.GD())return d=
l.success,l.success=function(a){var c;l.xhr&&(b.xhr=l.xhr);if(a&&!sa(a)){c=$.isFunction(f.parse)?f.parse(a):a;f.attributes=$.extend(!0,f.attributes,c);if(l.wait)for(var e in n)c.hasOwnProperty(e)&&(n[e]=c[e]);Ta(f)}gb(f,a,l);l.wait&&f.set(n);d&&d.call(hb(l,f),f,a,b);Na(f)},l.attrs||(l.attrs=void 0===n?void 0:k?n:l.saveAttrs),ib(k?"patch":"update",this,l);e=null!=l&&l.success?l.success:null;l.success=function(a){var c;l.xhr&&(b.xhr=l.xhr);if(a&&!sa(a)){c=$.isFunction(f.parse)?f.parse(a):a;if(!ab(f,
c,l,!0))return;f.attributes=$.extend(!0,f.attributes,c);if(l.wait)for(var d in n)c.hasOwnProperty(d)&&(n[d]=c[d]);Ta(f)}gb(f,a,l);l.wait&&f.set(n);e&&e.call(hb(l,f),f,a,b);Na(f)};l.attrs||(l.attrs=l.saveAttrs);l.parse=!0;k&&(l.saveAttrs=l.attrs);return ib("create",this,l)};A("Model.prototype.save",{save:M.prototype.save});function nb(a,b){var c={},d;for(d in a.attributes)a.attributes.hasOwnProperty(d)&&(c[d]=a.attributes[d]);for(d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c}
function jb(a,b){return a?$.isFunction(a[b])?a[b]():a[b]:$.isFunction(b)?b():b}function ob(a){return a&&a.hasOwnProperty("value")&&a.hasOwnProperty("comparator")}
function pb(a,b){for(var c in b)if(b.hasOwnProperty(c)){if(!a.attributes.hasOwnProperty(c))return!1;for(var d=Array.isArray(b[c])?b[c]:[b[c]],e=0;e<d.length;e++)if(ob(d[e])){var f=d[e].comparator,h=d[e].value;if(w.Ca.ed(f))throw Error("String comparator invalid for local where/findWhere");if(!f(a,c,h))return!1}else if(b[c]!==a.attributes[c])return!1}return!0}M.prototype.matches=function(a){a:{for(var b in a)if(this.get(b)!==a[b]){a=!1;break a}a=!0}return a};A("Model.prototype.matches",{matches:M.prototype.matches});
function qb(a,b){var c=b.constructor===Array?b:[b],d;for(d=0;d<c.length;d++)if(pb(a,c[d]))return!0;return!1}function hb(a,b){return void 0!==a&&void 0!==a.context?a.context:b}M.prototype.GD=function(){return void 0==this.id};A("Model.prototype.isNew",{GD:M.prototype.GD});M.prototype.cI=function(){return this.idAttribute||"id"};M.prototype.EL=function(a){if(a){var b={},c;for(c in a)a.hasOwnProperty(c)&&(pa(a[c],this.attributes[c])||(b[c]=a[c]));return sa(b)?!1:b}return sa(this.changed)?!1:this.changed};
A("Model.prototype.changedAttributes",{EL:M.prototype.EL});M.prototype.vM=function(a){return void 0!==a?Wa(this.changed)&&this.changed.hasOwnProperty(a):Wa(this.changed)};A("Model.prototype.hasChanged",{vM:M.prototype.vM});
M.prototype.destroy=function(a){a=a||{};var b=a.wait,c,d=a.error,e=this,f,h;h=eb(a);c=null!=h&&h.success?h.success:null;var k=Xa(this);h.success=function(d){h.xhr&&(a.xhr=h.xhr);if(k){var f=w.Ca.ed(d)&&!w.Ca.hl(d)?JSON.parse(d):d;tb(k,f,null,d,!0)}b&&ub(e);gb(e,d,h);c&&c.call(hb(h,e),e,d,a)};h.error=function(b,c,f){e.Cb(!1,L.ERROR,e,b,a);d&&d.apply(e,arguments)};if(!this.GD())return f=ib("delete",this,h),b||ub(this),f;b||ub(this);c&&c.call(hb(h,e),e,null,a);return!1};A("Model.prototype.destroy",{destroy:M.prototype.destroy});
M.prototype.PS=function(a,b,c,d){this.Cb(d,L.REQUEST,a,b,c)};function ub(a){a.Cb(!1,L.DESTROY,a,a.collection,null)}function gb(a,b,c){a.Cb(!1,L.SYNC,a,b,c)}M.prototype.toJSON=function(){var a={},b;for(b in this.attributes)this.attributes.hasOwnProperty(b)&&(Array.isArray(this.attributes[b])?a[b]=this.attributes[b].slice(0):a[b]=this.attributes[b]);return a};A("Model.prototype.toJSON",{toJSON:M.prototype.toJSON});M.prototype.Ly=function(a){return this.tN[a]};A("Model.prototype.previous",{Ly:M.prototype.Ly});
M.prototype.G1=function(){return this.tN};A("Model.prototype.previousAttributes",{G1:M.prototype.G1});M.prototype.$m=function(a,b,c){return w.sync(a,b,c)};A("Model.prototype.sync",{$m:M.prototype.$m});
function ib(a,b,c){c=c||{};b.oauth&&(c.oauthHeader=b.oauth.getHeader());!c.dataType&&b.dataType&&(c.dataType=b.dataType);!c.jsonpCallback&&b.jsonpCallback&&(c.jsonpCallback=b.jsonpCallback);if("create"===a||"patch"===a||"update"===a)c.rN=b.parseSave.call(b,"patch"===a?c.attrs:c.saveAttrs);var d=null;b instanceof M&&(d=b.id);var e={};if(c)for(var f in c)e[f]=c[f];d=vb(d,b,c);for(f in d)e[f]=d[f];c.xhr=b.sync(a,b,e);e.xhr&&(c.xhr=e.xhr);return c.xhr}
function vb(a,b,c){if(b instanceof N){var d={},e;for(e in c)c.hasOwnProperty(e)&&(d[e]=c[e]);if((c=b.comparator)&&w.Ca.ed(c)){c=void 0===c?[]:c.split(",");for(e=0;e<c.length;e++)d.sort=0===e?c[e]:d.sort+(","+c[e]);d.sortDir=-1===b.sortDirection?"desc":"asc"}wb(b)&&(d[xb]=b.qk(d));b=d}else b={};a&&(b.recordID=a);return b}
w.$m=function(a,b,c){function d(a){b.PS(b,a,c,c.silent);return a}c=c||{};var e,f=c.success,h=c.error;e=b.customURL;if("create"===a.valueOf())return a=(a=lb(b))?a:jb(b,"url"),e=new yb(a,e),d(Ab(e,c.rN,h,c,b));if("read"===a.valueOf()){if(b instanceof M)return a=c.url?c.url:jb(b,"url"),e=new yb(a,e),d(e.oM(f,h,b.id,c,hb(c,b)));a=Bb(b,c);e=new yb(a,e);return d(Cb(e,f,h,c,b))}e=new yb(jb(b,"url"),e);var k=null;b instanceof M&&(k=b.id);return"update"===a.valueOf()?d(Db(e,f,k,c.rN,h,c,b,!1)):"patch"===a.valueOf()?
d(Db(e,f,k,c.rN,h,c,b,!0)):"delete"===a.valueOf()?d(Eb(e,k,h,c,b)):null};t("sync",w.$m,w);w.ajax=function(a){if(arguments&&0<arguments.length&&!arguments[0].url)throw Error("The url property or function must be specified");return $.ajax.apply(w,arguments)};t("ajax",w.ajax,w);function kb(){this.name="URLError";this.message="No URL defined"}t("URLError",kb,w);kb.prototype=Error();function yb(a,b){this.Oy=a;this.Cj=b;$.support.cors=!0}
function Fb(a,b,c){var d;a=$.extend(!0,a,c);for(d in b)b.hasOwnProperty(d)&&"oauthHeader"!==d&&(a.hasOwnProperty(d)||(a[d]=b[d]),"headers"===d&&(a[d]=$.extend(!0,a[d],b[d])));if(b.oauthHeader)for(d in a.headers||(a.headers={}),b.oauthHeader)b.oauthHeader.hasOwnProperty(d)&&(a.headers.hasOwnProperty(d)||(a.headers[d]=b.oauthHeader[d]));return a}
function Cb(a,b,c,d,e){d=d||{};var f="jsonp"===d.dataType,h=Gb(a,"read",a.Oy,a.Cj,null,e,d);b={crossDomain:d.crossDomain||!f,dataType:Hb(d),jsonpCallback:d.jsonpCallback,context:null!==e?e:a,success:b,error:c};b=Ib(a,b);b=Fb(b,d,h);d.xhr=a.ajax(b,e);return d.xhr}function Ib(a,b){b.headers={"Accept-Language":a.gg()};return b}
yb.prototype.oM=function(a,b,c,d,e){d=d||{};var f="jsonp"===d.dataType;c=Gb(this,"read",this.Oy,this.Cj,c,e,d);a={crossDomain:d.crossDomain||!f,dataType:Hb(d),jsonpCallback:d.jsonpCallback,context:null!==e?e:this,success:a,error:b};a=Ib(this,a);a=Fb(a,d,c);d.xhr=this.ajax(a,e);return d.xhr};
function Db(a,b,c,d,e,f,h,k){f=f||{};var l="jsonp"===f.dataType;c=Gb(a,k?"patch":"update",a.Oy,a.Cj,c,h,f);k=Jb(f);b={crossDomain:f.crossDomain||!l,contentType:Kb(f)&&!Jb(f)?"application/x-www-form-urlencoded":f.contentType||"application/json",dataType:Hb(f),jsonpCallback:f.jsonpCallback,data:a.Va(JSON.stringify(d),f,c),emulateHTTP:k,emulateJSON:Kb(f),success:b,error:e,context:null!==h?h:a};b=Ib(a,b);b=Fb(b,f,c);b=Lb(k,b);f.xhr=a.ajax(b,h);return f.xhr}
function Lb(a,b){if(a){var c=b.beforeSend;b.beforeSend=function(a){a.setRequestHeader("X-HTTP-Method-Override",b.ji);if(c)return c.apply(this,arguments)}}return b}yb.prototype.Va=function(a,b,c){return Kb(b)?(b={_method:c.ji?c.ji:c.type},a&&(b.model=a),b):a};function Jb(a){return a.emulateHTTP||w.emulateHTTP}function Kb(a){return a.emulateJSON||w.emulateJSON}
function Gb(a,b,c,d,e,f,h){var k;if(h.type)k={method:h.type};else if(k=null,"create"===b&&(k="POST"),"delete"===b&&(k="DELETE"),"patch"===b&&(k="PATCH"),"update"===b&&(k="PUT"),Jb(h)){var l={method:"POST"};l.ji=k;k=l}else null===k&&(k="GET"),k={method:k};if($.isFunction(d)){a=d.call(a,b,f,vb(e,f,h));if(w.Ca.ed(a))return c={url:a,type:k.method},k.ji&&(c.ji=k.ji),c;if(a)return a.url=a.hasOwnProperty("url")?a.url:c,a.hasOwnProperty("type")||(a.type=k.method),!a.hasOwnProperty("data")&&k.ji&&(a.ji=k.ji),
a}c={url:jb(null,c),type:k.method};k.ji&&(c.ji=k.ji);return c}function Eb(a,b,c,d,e){d=d||{};var f="jsonp"===d.dataType;b=Gb(a,"delete",a.Oy,a.Cj,b,e,d);var h=Jb(d);c={crossDomain:d.crossDomain||!f,success:d.success,error:c,context:null!==e?e:a,emulateHTTP:h,emulateJSON:Kb(d)};(f=a.Va(null,d,b))&&(c.data=f);c=Fb(c,d,b);c=Lb(h,c);d.xhr=a.ajax(c,e);return d.xhr}
function Ab(a,b,c,d,e){d=d||{};var f=JSON.stringify(b),h="jsonp"===d.dataType;b=Gb(a,"create",a.Oy,a.Cj,null,e,d);var k=Jb(d);c={crossDomain:d.crossDomain||!h,contentType:d.contentType||"application/json",dataType:Hb(d),jsonpCallback:d.jsonpCallback,data:a.Va(f,d,b),success:d.success,error:c,emulateHTTP:k,emulateJSON:Kb(d),context:null!==e?e:a};c=Ib(a,c);c=Fb(c,d,b);d.xhr=a.ajax(c,e);return d.xhr}function Hb(a){return Kb(a)&&!Jb(a)?"application/x-www-form-urlencoded":a.dataType||"json"}
yb.prototype.gg=function(){return w.T.gg()};yb.prototype.ajax=function(a,b){if(null===a.url||void 0===a.url)throw new kb;var c=w.ajax(a);b.BQ&&b.BQ(c);return c};function Mb(a,b){var c=b=b||{},d=a||"Authorization";this.Init();this.Sk={};this.jo={};c.access_token?Ob(this.jo,c):c.client_id&&c.client_secret&&c.bearer_url&&Ob(this.Sk,c);this.Sk.nZ=d}t("OAuth",Mb,w);H(Mb,x,"oj.OAuth");Mb.prototype.Init=function(){Mb.o.Init.call(this)};
Mb.prototype.r_=function(){var a={};this.jo.access_token||this.GL();a[this.Sk.nZ]="Bearer "+this.jo.access_token;return a};A("OAuth.prototype.getHeader",{r_:Mb.prototype.r_});Mb.prototype.n0=function(){return this.jo.rla?!0:!1};A("OAuth.prototype.isInitialized",{n0:Mb.prototype.n0});
Mb.prototype.GL=function(){var a={},b=this;a[b.Sk.nZ]="Basic "+Pb(b.Sk.client_id+":"+b.Sk.client_secret);$.ajax({type:"POST",async:!1,url:this.Sk.bearer_url,data:"grant_type\x3dclient_credentials",headers:a,success:function(a){Ob(b.jo,a)},error:function(a){throw Error(a.responseText);}})};A("OAuth.prototype.clientCredentialGrant",{GL:Mb.prototype.GL});Mb.prototype.S1=function(a){Ob(this.jo,a)};A("OAuth.prototype.setAccessTokenResponse",{S1:Mb.prototype.S1});Mb.prototype.a_=function(){return this.jo};
A("OAuth.prototype.getAccessTokenResponse",{a_:Mb.prototype.a_});Mb.prototype.vZ=function(){Qb(this.jo)};A("OAuth.prototype.cleanAccessTokenResponse",{vZ:Mb.prototype.vZ});Mb.prototype.R1=function(a){Ob(this.Sk,a)};A("OAuth.prototype.setAccessTokenRequest",{R1:Mb.prototype.R1});Mb.prototype.$Z=function(){return this.Sk};A("OAuth.prototype.getAccessTokenRequest",{$Z:Mb.prototype.$Z});Mb.prototype.uZ=function(){Qb(this.Sk)};A("OAuth.prototype.cleanAccessTokenRequest",{uZ:Mb.prototype.uZ});
function Ob(a,b){var c;b=b||{};for(c in b)a[c]=b[c]}function Qb(a){for(var b in a)a.hasOwnProperty(b)&&"auth_header"!==b&&(a[b]=null,delete a[b])}
function Pb(a){var b,c,d,e,f=0,h=0,k=[];do b=a.charCodeAt(f++),c=a.charCodeAt(f++),d=a.charCodeAt(f++),e=b<<16|c<<8|d,b=e>>18&63,c=e>>12&63,d=e>>6&63,e&=63,k[h++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(e);while(f<a.length);
k=k.join("");b=a.length%3;return(b?k.slice(0,b-3):k)+"\x3d\x3d\x3d".slice(b||3)}function N(a,b){Rb||Sb(this,a,b,null)}var Rb;t("Collection",N,w);H(N,x,"oj.Collection");N.prototype.Mo=null;A("Collection.prototype.model",{Mo:N.prototype.Mo});N.prototype.i1=function(a){var b=this.model;return b&&a?a[b.idAttribute||b.prototype.idAttribute||"id"]:null};A("Collection.prototype.modelId",{i1:N.prototype.i1});N.prototype.length=void 0;A("Collection.prototype.length",{length:N.prototype.length});
N.prototype.k1=void 0;A("Collection.prototype.models",{k1:N.prototype.k1});N.prototype.Rb=[];N.prototype.url=null;A("Collection.prototype.url",{url:N.prototype.url});N.prototype.po=[];A("Collection.prototype.changes",{po:N.prototype.po});N.prototype.Cj=null;A("Collection.prototype.customURL",{Cj:N.prototype.Cj});N.prototype.HZ=null;A("Collection.prototype.customPagingOptions",{HZ:N.prototype.HZ});N.prototype.x0=void 0;A("Collection.prototype.lastFetchSize",{x0:N.prototype.x0});N.prototype.$_=!1;
A("Collection.prototype.hasMore",{$_:N.prototype.$_});N.prototype.n2=void 0;A("Collection.prototype.totalResults",{n2:N.prototype.n2});N.prototype.w0=void 0;A("Collection.prototype.lastFetchCount",{w0:N.prototype.w0});N.prototype.j1=-1;A("Collection.prototype.modelLimit",{j1:N.prototype.j1});N.prototype.offset=void 0;A("Collection.prototype.offset",{offset:N.prototype.offset});N.prototype.QZ=-1;A("Collection.prototype.fetchSize",{QZ:N.prototype.QZ});N.prototype.GN=1;
A("Collection.prototype.sortDirection",{GN:N.prototype.GN});N.prototype.oi=null;A("Collection.prototype.comparator",{oi:N.prototype.oi});N.prototype.Init=function(){N.o.Init.call(this)};
function Tb(a,b){Rb=!0;var c=new N;Rb=!1;$.extend(c,this.prototype);var d;d=a&&a.constructor&&a.hasOwnProperty("constructor")?a.constructor:function(b,c){Sb(this,b,c,a)};if(b)for(var e in b)b.hasOwnProperty(e)&&(d[e]=b[e]);if(a)for(e in a)a.hasOwnProperty(e)&&(c[e]=a[e]);$.extend(d,this);d.prototype=c;d.extend=Tb;return d.prototype.constructor=d}t("Collection.extend",Tb,w);
function Sb(a,b,c,d){var e,f;a.Init();w.Bb.eF(a);if(d)for(e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);c=c||{};f=["comparator","customPagingOptions","customURL",xb,"model","modelLimit","sortDirection","url"];for(e=0;e<f.length;e++)c.hasOwnProperty(f[e])&&void 0!==c[f[e]]&&(a[f[e]]=c[f[e]]);void 0===a.qk(null)&&a.zE(-1);void 0===a.modelLimit&&a.CN(-1);a.hasMore=!1;a.vi=0;Ub(a,[],!0);c.parse&&(b=a.parse(b));if(null!=b)for(c.p1=!0,f=b instanceof Array?b:[b],e=0;e<f.length;e+=1)a.add(f[e],c);Vb(a);b||(a.totalResults=
void 0);d&&d.initialize&&d.initialize.call(a,b,c)}N.prototype.on=function(){};g=N.prototype;g.Hl=function(){};g.Cb=function(){};g.PS=function(a,b,c,d){this.Cb(d,L.REQUEST,a,b,c)};function Wb(a,b,c){for(var d=b;d<b+c;d++)-1===a.changes.indexOf(d)&&(a.changes.push(d),a.changes.sort(function(a,b){return a-b}))}function Ub(a,b,c){a.models=b;if(c)a.Rb=[],a.changes=[];else for(c=0;c<b.length;c++)b[c]&&a.Rb.push(c)}function Yb(a){return a.models}function Zb(a){return Yb(a).length}
function $b(a,b){return b<Zb(a)||wb(a)&&(!ac(a)||0===Zb(a))?!1:!0}function ac(a){return null!=a.totalResults}function bc(a,b){if(b)for(var c=0;c<b.length;c++)b[c]&&a.vi--}function cc(a,b,c,d){for(var e=b;e<b+c;e++)dc(a,a.Kb(e));if(void 0===d)bc(a,Yb(a).splice(b,c)),ec(a,b,b+c-1);else{bc(a,Yb(a).splice(b,c,d));ec(a,b,b+c-1);for(e=0;e<a.Rb.length;e++)a.Rb[e]>=b&&a.Rb[e]++;a.Rb.push(b);fc(a,d)}Wb(a,b,c);0>a.vi&&(a.vi=0);gc(a,b)}g.Kb=function(a){return Yb(this)[a]};
function gc(a,b){for(var c,d=0;d<a.Rb.length;d++)c=a.Rb[d],c>=b&&a.Kb(c)&&(a.Kb(c).index=c)}function dc(a,b){if(b){var c=b.uN,d=b.lN;c?c.lN=d:a.head=d;d?Va(d,c):a.tail=c}}function fc(a,b){(b.lN=a.head)?Va(a.head,b):a.tail=b;Va(b,null);a.head=b}function ec(a,b,c){void 0===c&&(c=b);hc(a,b,c);b=c-b+1;for(var d=0;d<a.Rb.length;d++)a.Rb[d]>c&&(a.Rb[d]-=b)}function hc(a,b,c){void 0===c&&(c=b);for(var d=b;d<=c;d++){var e=a.Rb.indexOf(b);-1<e&&a.Rb.splice(e,1)}}
function ic(a,b,c){var d=a.Kb(b);dc(a,d);d||a.vi++;Wb(a,b,1);if(Yb(a)[b]=c)-1===a.Rb.indexOf(b)&&a.Rb.push(b),c.index=b,fc(a,c)}function jc(a){a.vi=0;a.head=null;a.tail=null}function lc(a,b){if(wb(a)){var c=a.modelLimit;if(-1<c&&a.vi+b>c){var c=a.vi+b-c,d=a.tail,e,f,h=0;for(a.tail=null;d&&h<c;)e=d.index,(f=a.Kb(e))&&f.vM()?(a.tail||(a.tail=d),d=d.uN):(a.vi--,-1<e&&(ic(a,e,void 0),hc(a,e,e)),d.lN=null,d=Va(d,null),h++);a.tail||(a.tail=d);0>a.vi&&(a.vi=0);0===a.vi&&(a.head=null,a.tail=null)}}}
g.clone=function(){return mc(this,!0)};A("Collection.prototype.clone",{clone:N.prototype.clone});function mc(a,b){var c=new a.constructor,d,e;wb(a)&&(c=nc(a,c),oc(c));c=pc(a,c);if(b){var f=[];for(d=0;d<a.Rb.length;d++)f.push(a.Rb[d]);f.sort(function(a,b){return a-b});var h;for(d=0;d<f.length;d++)h=f[d],(e=qc(a,h,null,!0,!1))&&rc(c,e.clone(),{at:h},!0,!1)}return c}function pc(a,b){var c=["comparator","model","modelId"],d,e;for(e=0;e<c.length;e++)d=c[e],b[d]=a[d];return b}
function nc(a,b){var c=["totalResults","hasMore",xb],d,e;for(e=0;e<c.length;e++)d=c[e],b[d]=a[d];return b}N.prototype.Bd=function(){return this.length};function Vb(a){var b=Zb(a);a.length=b;wb(a)||(a.totalResults=b)}function sc(a,b,c){return a.model?$.isFunction(a.model)?new a.model(b,c):new a.model.constructor(b,c):null}
function tc(a,b,c,d){var e=null;c=c||{};c.tia=d;b instanceof M?e=b:a.model?e=sc(a,b,c):(c.collection=a,e=new M(b,c));return c.validate&&e.validate&&(b=e.validate(e.attributes))?(c.validationError=b,a.Cb(!1,L.INVALID,e,b,c),null):e}N.prototype.add=function(a,b){lc(this,1);return uc(this,rc(this,a,b,!1,(b||{}).deferred))};A("Collection.prototype.add",{add:N.prototype.add});
function rc(a,b,c,d,e){function f(a,b,e,f,h){var k,l=null;if(!p&&u&&e){var l=a.comparator,q=n,C,K=!1,ha=w.Ca.ed(l),ra,ia=!1;for(C in b.attributes)b.attributes.hasOwnProperty(C)&&(ra=e.attributes[C]!=b.attributes[C],ha?C===l&&ra&&(K=!0):ra&&(K=!0),ra&&(ia=!0,e.attributes[C]=b.attributes[C],e.changed[C]=b.attributes[C],Ya(e,C,e.attributes[C],null,q)));Ta(e);ia&&Za(e,null,q);y=K;l=e}else p||(k=vc(a,f))&&d&&m!==k.index&&w.l.warn("Duplicate ID fetched or added without merging, the id \x3d "+k.id),void 0===
k?(void 0===m?(fc(a,f),Yb(a).push(f),a.Rb.push(Zb(a)-1),Wb(a,Zb(a)-1,1),a.vi++,f.index=Zb(a)-1,r=Zb(a)-1,Ra(a.Kb(r))):(r=m,wb(a)&&d?ic(a,r,f):cc(a,r,0,f),Ra(a.Kb(r)),m+=1),void 0===Xa(f)&&Sa(f,a),Vb(a),f.Hl(L.ALL,a.wca,a,!1,!0),z=!0,l=f):l=k;d&&(c=c||{},c.fillIn=!0);y&&void 0===k&&!v&&void 0===m&&1<a.Bd()&&(-1<r&&(s=a.Kb(r).cid),b={},w.Nb.Fd(b,c),b.add=!0,a.sort(b),-1<r&&(r=wb(a)?-1:a.indexOf(a.eM(s),h)));z&&(c.at&&(c.index=r),f?(f.Cb(n,L.ADD,f,a,c),B.push(f)):(e.Cb(n,L.ADD,e,a,c),B.push(e)));return l}
function h(a,b,e){z=!1;var h=tc(a,b,c,!1),k=null,l=null;if(null!=h){r=-1;Ta(h);k=b instanceof M?b:h;if(e)return p?new Promise(function(b){var c=f(a,k,void 0,h,e);C.push(c);b(c)}):a.uh(k,{silent:!0},e,!0).then(function(b){l=b.m;b=f(a,k,l,h,e);C.push(b)});!p&&u&&(l=d?vc(a,k):a.get(k));(b=f(a,k,l,h,e))&&C.push(b)}else C.push(!1)}function k(a,b){return a.parse&&c.parse&&!c.p1?a.parse(b):b}c=c||{};var l=[],m=c.at,n=c.silent,p=c.force,q,r,s,u=c.merge||!1,v=c.sort,y=!0,z=!1,B=[],C=[];void 0!==m&&0>m&&(m+=
a.Bd()+1);b instanceof Array?l=b:l.push(b);if(!d&&(wb(a)||e))return new Promise(function(b,d){function e(b){return new Promise(function(c,d){h(a,l[b],!0).then(function(){c(b+1)},d)})}var f=Promise.resolve(0);l=k(a,l);for(q=0;q<l.length;q++)f=f.then(e);f.then(function(){0<B.length&&a.Cb(c.silent,L.ALLADDED,a,B,c);b(1===C.length?C[0]:C)},d)});l=k(a,l);for(q=0;q<l.length;q++)h(a,l[q],!1);0<B.length&&a.Cb(c.silent,L.ALLADDED,a,B,c);return 1===C.length?C[0]:C}
N.prototype.sort=function(a){a=a||{};var b=a.silent,c=this.comparator,d;if(null==this.comparator)return null;if(wb(this)){var e=this.totalResults;ac(this)?Ub(this,Array(e),!0):(Ub(this,[],!0),jc(this),Vb(this));e=a.add?{add:!0}:null;this.Cb(b,L.SORT,this,e,null);b=a.startIndex;return void 0!==b&&null!==b?this.Qy(b,this.qk(a)):null}d=this;Yb(this).sort(function(a,b){return wc(a,b,c,d,d)});gc(this,0);e=a.add?{add:!0}:null;this.Cb(b,L.SORT,this,e,null);return null};A("Collection.prototype.sort",{sort:N.prototype.sort});
function xc(a,b){return a instanceof M?a.get(b):jb(a,b)}function wc(a,b,c,d,e){var f,h,k;if($.isFunction(c)){if(1===c.length){f=c.call(e,a);h=c.call(e,b);f=w.Ca.ed(f)?f.split(","):[f];var l=w.Ca.ed(h)?h.split(","):[h];for(k=0;k<f.length;k++)if(h=yc(f[k],l[k],d.sortDirection),0!==h)return h}return c.call(e,a,b)}if(w.Ca.ed(c))for(c=c.split(","),k=0;k<c.length;k++)if(f=xc(a,c[k]),h=xc(b,c[k]),h=yc(f,h,d.sortDirection),0!==h)return h;return 0}
N.prototype.d2=function(a,b){var c=b?b:this.comparator,d;if(!c)return-1;zc(this,"sortedIndex");d=this;return Ac(Yb(this),a,function(a,b){var h,k;if($.isFunction(c)){if(1===c.length){h=c.call(d,a);k=c.call(d,b);h=w.Ca.ed(h)?h.split(","):[h];k=w.Ca.ed(k)?k.split(","):[k];var l,m;for(m=0;m<h.length;m++)if(l=yc(h[m],k[m],d.sortDirection),0!==l)return l}return c.call(d,a,b)}return w.Ca.ed(c)?(h=a.get(c),k=b.get(c),yc(h,k,d.sortDirection)):0})};A("Collection.prototype.sortedIndex",{d2:N.prototype.d2});
function Ac(a,b,c){function d(e,f){var h,k;if(e>f)return-1;h=b.cid;k=b.id;if(cb(a[e],k,h))return e;if(cb(a[f],k,h))return f;h=Math.floor((f+e)/2);return-1===c(a[h],b)?d(e+1,h):1===c(a[h],b)?d(h,f-1):h}return d(0,a.length-1)}function yc(a,b,c){if(-1===c){if(a<b)return 1;if(b<a)return-1}else{if(a>b)return 1;if(b>a)return-1}return 0}N.prototype.unshift=function(a,b){var c={};w.Nb.Fd(c,b||{});c.at||(c.at=0);lc(this,1);return uc(this,rc(this,a,c,!1,c.deferred))};A("Collection.prototype.unshift",{unshift:N.prototype.unshift});
function uc(a,b){return $.isFunction(b.then)?Bc(a,function(){return b}):b}N.prototype.shift=function(a){a=a||{};var b=Cc(a),c;if(wb(this)||b){var d=this;return this.at(0,a).then(function(b){c=d.yq(b,0,a);d.Cb(a.silent,L.ALLREMOVED,d,[c],a);return c})}c=this.yq(this.at(0),0,a);this.Cb(a.silent,L.ALLREMOVED,this,[c],a);return c};A("Collection.prototype.shift",{shift:N.prototype.shift});
N.prototype.DD=function(a){void 0===a&&(a=1);zc(this,"initial");var b=[],c;for(c=0;c<this.Bd()-a;c+=1)b.push(this.at(c));return b};A("Collection.prototype.initial",{DD:N.prototype.DD});function Cc(a){return(a||{}).deferred}
N.prototype.last=function(a,b){var c=Cc(b);void 0===a&&(a=1);if(1===a){var d=Zb(this);0===d&&(d=a);return 0<d?this.at(d-1,c):null}var e=[],d=this.Bd();if(c||wb(this)){var f=d-a;0>f&&(f=0);0===d&&(d=a);var h=this;return Bc(this,function(){return Dc(h,f,d)})}for(c=d-a;c<d;c+=1)e.push(this.at(c));return e};A("Collection.prototype.last",{last:N.prototype.last});
function Dc(a,b,c){var d=[],e;return new Promise(function(f,h){function k(b){return wb(a)&&ac(a)&&b>=a.totalResults?Promise.resolve(b+1):new Promise(function(c,e){Ec(a,b,null).then(function(a){d.push(a);c(b+1)},e)})}var l=Promise.resolve(b);for(e=b;e<c;e++)l=l.then(k);l.then(function(){f(d)},h)})}
N.prototype.next=function(a,b){b=b||{};b[xb]=void 0===a||null===a?this[xb]:a;var c;c=this.lastFetchCount;if(void 0===c||null===c)c=this[xb];c=void 0===this.offset||null===this.offset?c:this.offset+c;var d=this.Bd();if(0===d&&0<b[xb])c=0;else if(c>=d)return b.success&&b.success.call(hb(b,this),this,null,b),null;b.startIndex=c;return this.fetch(b)};A("Collection.prototype.next",{next:N.prototype.next});
N.prototype.Ly=function(a,b){b=b||{};if(0===this.offset)return b.success&&this.lastFetchCount&&b.success.call(hb(b,this),this,null,b),null;b[xb]=void 0===a||null===a?this[xb]:a;var c=void 0===this.offset||null===this.offset?0:this.offset-b[xb];0>c&&(b[xb]=this.offset,c=0);b.startIndex=c;return this.fetch(b)};A("Collection.prototype.previous",{Ly:N.prototype.Ly});N.prototype.CN=function(a){this.modelLimit=a;lc(this,0)};A("Collection.prototype.setModelLimit",{CN:N.prototype.CN});
N.prototype.zE=function(a){this[xb]=a};A("Collection.prototype.setFetchSize",{zE:N.prototype.zE});N.prototype.O1=function(a,b){var c=Cc(b);void 0===a&&(a=1);var d=[];if(wb(this)||c){var e=this;return Bc(this,function(){return Dc(e,a,e.Bd())})}for(c=a;c<this.Bd();c+=1)d.push(this.at(c));return d};A("Collection.prototype.rest",{O1:N.prototype.O1});
N.prototype.remove=function(a,b){b=b||{};var c=[],d;a instanceof Array?c=a:c.push(a);var e=[];for(d=c.length-1;0<=d;d-=1)e.unshift(this.yq(c[d],-1,b));this.Cb(b.silent,L.ALLREMOVED,this,c,b);return 1===e.length?e[0]:e};A("Collection.prototype.remove",{remove:N.prototype.remove});
N.prototype.yq=function(a,b,c){c=c||{};a=-1==b?this.uh(a):Fc(b,a);var d=c.silent;b=a.index;if(-1<b){var e=a.m;void 0!==e&&Xa(e)===this&&Sa(e,null);cc(this,b,1);Vb(this);var f={};w.Nb.Fd(f,c);f.index=b;void 0!==e&&e.Cb(d,L.REMOVE,e,this,f);void 0!==e&&e.off(null,null,this)}return a.m};N.prototype.wca=function(a,b,c,d){a===L.DESTROY&&this.remove(b);void 0!==c&&c instanceof N&&c!==this||(Array.prototype.slice.call(arguments),this.Cb(d&&d.silent,a,b,c,d))};
N.prototype.refresh=function(a){a=a||{};var b=this;return Bc(this,function(){return new Promise(function(c,d){if(!wb(b)){var e=void 0!==a.silent&&a.silent;try{b.reset(null,{silent:!0});var f={},h;for(h in a)a.hasOwnProperty(h)&&(f[h]=a[h]);f.success=function(a,d,f){b.Cb(e,L.REFRESH,b,f,null);c({collection:a,response:d,options:f})};f.error=function(c,e,f){d(Gc(c,e,f,b,a,!1))};b.fetch(f);return}catch(k){if(k instanceof kb){b.Cb(e,L.REFRESH,b,a,null);c({collection:b,options:a});return}throw k;}}f=a.startIndex;
Ub(b,[],!0);jc(b);b.totalResults=void 0;Vb(b);e=void 0!==a.silent&&a.silent;b.Cb(e,L.REFRESH,b,a,null);if(void 0===f||null===f)f=0;void 0!==f&&null!==f?Ic(b,f,b.qk(a)).then(function(a){c(a)},function(a){d(a)}):c(void 0)})})};A("Collection.prototype.refresh",{refresh:N.prototype.refresh});
N.prototype.reset=function(a,b){var c={};w.Nb.Fd(c,b||{});c.previousModels=Yb(this);for(var d,e=0;e<this.Rb.length;e++)if(d=this.Rb[e],d=this.Kb(d))void 0!==d&&d.off(null,null,this),Sa(d,null);Ub(this,[],!0);jc(this);e=void 0!==c.silent&&c.silent;if(!a)return Vb(this),this.totalResults=void 0,this.Cb(e,L.RESET,this,c,null),null;d=null;c.parse&&(a=this.parse(a));lc(this,a instanceof Array?a.length:1);c.p1=!0;d=rc(this,a,c,!0,!1);Vb(this);this.Cb(e,L.RESET,this,c,null);return uc(this,d)};
A("Collection.prototype.reset",{reset:N.prototype.reset});N.prototype.at=function(a,b){return qc(this,a,b,!1,Cc(b))};A("Collection.prototype.at",{at:N.prototype.at});function qc(a,b,c,d,e){0>b&&(b+=a.Bd());return 0>b||$b(a,b)?d||!wb(a)&&!e?null:Bc(a,function(){return Promise.resolve(null)}):d||!wb(a)&&!e?a.Kb(b):Bc(a,function(){return Ec(a,b,c)})}N.prototype.whenReady=function(){return this.Yn?this.Yn:Promise.resolve()};A("Collection.prototype.whenReady",{whenReady:N.prototype.whenReady});
function Bc(a,b){void 0===a.Yn&&(a.Uw=0,a.Yn=Promise.resolve());a.Uw++;a.Yn=a.Yn.then(b.bind(a)).then(function(b){a.Uw--;0===a.Uw&&(a.Yn=void 0,a.Cb(!1,L.READY,a,null,null));return b},function(b){a.Uw--;0===a.Uw&&(a.Yn=void 0);return Promise.reject(b)});return a.Yn}N.prototype.BQ=function(a){if(a&&a.abort){void 0===this.Qg&&(this.Qg=[]);var b=this;a.done(function(){var c=b.Qg?b.Qg.indexOf(a):-1;-1<c&&b.Qg.splice(c,1)});this.Qg.push(a)}};
N.prototype.abort=function(){var a=this;return this.Qg&&0<this.Qg.length?new Promise(function(b){for(var c=a.Qg.length-1;0<=c;c--)a.Qg[c].then(function(d,e){"abort"===e&&(a.Qg.splice(c,1),0===a.Qg.length&&a.whenReady().then(function(){b(null)},function(){b(null)}))},function(){a.Qg.splice(c,1);0===a.Qg.length&&a.whenReady().then(function(){b(null)},function(){b(null)})}),a.Qg[c].abort()}):Promise.resolve()};A("Collection.prototype.abort",{abort:N.prototype.abort});
function Ec(a,b,c){var d=a.Kb(b);return void 0===d?new Promise(function(d,f){var h={};w.Nb.Fd(h,c||{});h.context=a;h.startIndex=b;h.error=function(b,d,e){f(Gc(b,d,e,a,c,!1))};h.success=function(){d(a.Kb(b))};a.we(h,-1,!1)}):new Promise(function(a){a(d)})}N.prototype.eM=function(a){for(var b=Yb(this),c,d=null,e=0;e<this.Rb.length;e++)if(c=this.Rb[e],b[c]&&a===b[c].cid){d=b[c];break}if(d)return d;if(wb(this))throw Error("Not found locally and not supported by server for virtual collections");return null};
A("Collection.prototype.getByCid",{eM:N.prototype.eM});N.prototype.get=function(a,b){var c=this.uh(a,b,Cc(b));if(c){if($.isFunction(c.then))return Bc(this,function(){return new Promise(function(a,b){c.then(function(b){a(b.m)},function(a){b(a)})})});if(wb(this))return Bc(this,function(){return new Promise(function(a){a(c.m)})});if(c.hasOwnProperty("m"))return c.m}return null};A("Collection.prototype.get",{get:N.prototype.get});function vc(a,b){var c=Jc(a,b);return c?c.m:null}
function Jc(a,b){var c=b;b instanceof M?(c=b.cid,b=b.id):null!=b&&void 0!==b.id&&(b=b.id);for(var d=null,e=a.Rb.length,f,h=Yb(a),k,l=0;l<e;l++)if(k=a.Rb[l],f=h[k],void 0!==f&&cb(f,b,c)){d=Fc(k,f);break}return d?d:Fc(-1,void 0)}
N.prototype.uh=function(a,b,c,d){var e=a;void 0===d&&(d=!1);a instanceof M?(e=a.cid,a=a.id):null!=a&&void 0!==a.id&&(a=a.id);for(var f=null,h=Yb(this),k,l=0;l<this.Rb.length;l++)if(k=this.Rb[l],h[k]&&cb(h[k],a,e)){f=Fc(k,h[k]);break}if(f)return c?new Promise(function(a){a(f)}):f;if(wb(this)){if(void 0===a&&void 0!==e)return new Promise(function(a){a(Fc(-1,void 0))});var m=this;return new Promise(function(c,f){var h={};w.Nb.Fd(h,b||{});h.context=m;h.startID=a;h.error=function(a,c,d){f(Gc(a,c,d,m,b,
!1))};h.success=function(b,d){if(null!=d){var f=Kc(m),h=m.Kb(f);void 0!==h&&cb(h,a,e)?c(Fc(f,h)):c(Fc(-1,void 0))}else c(Fc(-1,void 0))};m.we(h,-1,d)})}var n=Fc(-1,void 0);return c?new Promise(function(a){a(n)}):n};function Fc(a,b){return{index:a,m:b}}N.prototype.parse=function(a){var b;if(a instanceof Array)return a;if(!a)return a;for(b in a)if(a.hasOwnProperty(b)&&a[b]instanceof Array)return a[b];return a};N.prototype.Qy=function(a,b){var c=this;return Bc(this,function(){return Ic(c,a,b)})};
A("Collection.prototype.setRangeLocal",{Qy:N.prototype.Qy});function Ic(a,b,c){wb(a)&&oc(a);var d=Lc(a,b,c);if(ac(a)&&d.start+d.count>=a.totalResults||d.start===b&&d.count===c)return new Promise(function(a){a(d)});var e=a.modelLimit;-1<e&&e<c&&(a.modelLimit=c);return new Promise(function(d,e){Mc(a,b,c,-1,{start:b,count:c},d,e,!0)})}
function Mc(a,b,c,d,e,f,h,k){var l=b+c;a[xb]&&a[xb]>c&&(l=a[xb]+b);var m=null;wb(a)?(m=Nc(a,b,l),m>b&&(b=m,l=b+c,a[xb]&&a[xb]>c&&(l=a[xb]+b)),m={context:a,startIndex:b,fetchSize:l-b}):m={context:a};m.error=function(b,c,d){h(Gc(b,c,d,a,null,!1))};m.success=function(){var d=Lc(a,e.start,e.count);if(k&&ac(a)&&d.count<e.count){var l=d.start+d.count,r=b+(a.lastFetchCount?a.lastFetchCount:c);r<a.totalResults?Mc(a,r,c,l,e,f,h,k):f(d)}else f(d)};try{a.we(m,d,-1<d)}catch(n){n instanceof kb&&(d=Lc(a,b,c),f(d))}}
function Gc(a,b,c,d,e,f){var h=!1;e&&e.silent&&(h=e.silent);f&&fb(d,h,e,b,c,a);e=Error(b);e.xhr=a;e.error=c;e.collection=d;e.status=b;return e}N.prototype.p0=function(a,b){var c=Lc(this,a,b);return 0===Zb(this)?0===b:a===c.start&&(b===c.count||a+b>Zb(this))};A("Collection.prototype.isRangeLocal",{p0:N.prototype.p0});function Oc(a,b,c){var d=[];a=Yb(a);for(c=b+c;b<c;b++)d.push(a[b]);return d}
function Lc(a,b,c){if(!wb(a))return 0<Zb(a)?(b+c>Zb(a)&&(c=Zb(a)-b),{start:b,count:c,models:Oc(a,b,c)}):{start:b,count:0,models:[]};var d;d=Zb(a);d=0===d?b+c:b+c>d?d:b+c;if(!ac(a)&&d<b+c)return{start:b,count:d-b,models:Oc(a,b,d-b)};if(0===d)return{start:b,count:0,models:[]};var e=Nc(a,b,d);if(-1<e)return{start:b,count:e-b,models:Oc(a,b,e-b)};b>d?c=0:b+c>d&&(c=d-b);return{start:b,count:c,models:Oc(a,b,c)}}function Nc(a,b,c){for(;b<c;b++)if(void 0===a.Kb(b))return b;return-1}
N.prototype.fetch=function(a){var b=this.we(a,-1,!1);Bc(this,function(){return Promise.resolve(b)});return b};A("Collection.prototype.fetch",{fetch:N.prototype.fetch});
N.prototype.we=function(a,b,c){function d(a,b,c){wb(a)?c||oc(a):b.add||b.QN||a.reset(null,{silent:!0})}var e=a||{},f=e.success,h,k=e.error;e.set&&(e.QN=e.set?!0:!1);void 0===e.parse&&(e.parse=!0);h=this;e.error=function(b,c,d){fb(h,!1,a,c,d,b);k&&k.call(hb(a,h),b,c,d)};e.success=function(k){var m;try{m=h.parse(k,a)}catch(n){Pc(h,n,e.error,a);return}tb(h,k,a,m,c);var p=null;if(e.add||h.model){d(h,e,c);try{z=!1;-1===b&&(z=!0,b=Kc(h));var q=b,r=z,s=e,s=s||{},u=s.parse,v=sc(h);if(m){var y=m instanceof
Array?m:[m],z={},B;r&&lc(h,y.length);var C=wb(h);if(s.QN&&!C){for(var F=0;F<y.length;F+=1)B=v&&u?v.parse(y[F]):y[F],y[F]=B;Qc(h,y,!1,s,!1)}else for(m=null,F=0;F<y.length;F+=1)B=v&&u?v.parse(y[F]):y[F],C&&(z={at:q},m=qc(h,q,z,!0,!1)),z.silent=!0,rc(h,B,z,!0,!1),qc(h,q,null,!0,!1)!==m&&q++}p=y}catch(I){Pc(h,I,e.error,a);return}}else if(!c)if(wb(h)){d(h,e,c);var z=!1;-1===b&&(z=!0,b=Kc(h));u=b;if(m)for(q=m instanceof Array?m:[m],p={},z&&lc(h,q.length),v=wb(h),y=null,B=0;B<q.length;B+=1)v&&(p={at:u},
y=qc(h,u,null,!0,!1)),p.silent=!0,rc(h,q[B],p,!0,!1),qc(h,u,null,!0,!1)!==y&&u++;p=q}else e.QN?Qc(h,m,!1,e,!1):h.reset(m,{silent:!0});wb(h)&&p&&(h.lastFetchCount=p.length);h.Cb(e.silent?!0:!1,L.SYNC,h,k,e);f&&f.call(hb(a,h),h,k,e)};return Rc(this,e)};function Pc(a,b,c,d){w.l.error(b.toString());c&&c.call(hb(d,a),a,b,d)}
function Sc(a,b){var c=b||{},d=c.success,e;void 0===c.parse&&(c.parse=!0);c.success=function(f){var h,k,l=null,m=[];try{h=a.parse(f,b)}catch(n){Pc(a,n,c.error,b);return}if(c.add||a.model)if(k=sc(a),h)for(l=h instanceof Array?h:[h],h=0;h<l.length;h+=1){if(k&&c.parse)try{e=k.parse(l[h])}catch(p){Pc(a,p,c.error,b);return}else e=l[h];m.push(tc(a,e))}a.Cb(!1,L.SYNC,a,f,c);d&&d.call(hb(b,a),a,m,c)};Rc(a,c)}function Rc(a,b){try{return ib("read",a,b)}catch(c){throw fb(a,!1,b,null,c,null),c;}}
function oc(a){var b=a.totalResults;void 0!==b&&Zb(a)!==b&&(Ub(a,Array(b),!0),jc(a),Vb(a))}N.prototype.qk=function(a){a=a||{};return a[xb]||this[xb]};function wb(a){return-1<a.qk(null)}function Tc(a,b,c,d,e){a=parseInt(Uc(a,b,c),10);return void 0===a||null===a||isNaN(a)?d?d:e:a}function Wc(a){return-1===a?void 0:a}
function tb(a,b,c,d,e){var f={};a.customPagingOptions&&((f=a.customPagingOptions.call(a,b))||(f={}));c=c||{};a.lastFetchSize=Tc(f,b,"limit",c.fetchSize,a.fetchSize);a.offset=Tc(f,b,"offset",c.startIndex,0);a.lastFetchCount=Tc(f,b,"count",a.lastFetchCount,a.lastFetchCount);a.totalResults=Wc(Tc(f,b,"totalResults",a.totalResults,a.totalResults));c=Uc(f,b,"hasMore");var h=a.totalResults;a.hasMore=null!=c?c:void 0===h||null===h?!0:a.offset+a.lastFetchSize>h?!1:!0;e||(e=parseInt(Uc(f,b,"count"),10),d=d&&
Array.isArray(d)?d.length:0,a.totalResults=!a.hasMore&&isNaN(Wc(parseInt(Uc(f,b,"totalResults"),10)))?(isNaN(e)?d:e)+a.offset:a.totalResults);!wb(a)&&a.totalResults&&a.totalResults!==a.lastFetchCount&&a.lastFetchSize&&a.zE(a.lastFetchSize)}function Uc(a,b,c){return a.hasOwnProperty(c)?a[c]:b?b[c]:void 0}function Kc(a){return null!=a.offset?a.offset:0}
N.prototype.create=function(a,b){function c(b,c){b.save(a instanceof M?null:a,c);return b}function d(a,c){if(b.wait){if(wb(e)||f)return Bc(e,function(){return Promise.resolve(void 0)})}else return e.add(a,c)}var e=this;b=b||{};var f=Cc(b),h=tc(this,a,b,!1),k=b.success,l=b.context;b.context=this;b.success=function(a,c,d){d.xhr&&(b.xhr=d.xhr);b.wait&&e.add(h,b);k&&k.call(null!=l?l:e,a,c,b)};if(null==h)return!1;b.forceNew=null!=h.id;var m=eb(b);Sa(h,this);if(f||wb(this))return new Promise(function(a){m.merge=
!0;m.deferred=!0;d(h,m).then(function(){b.success=function(c,d,f){f.xhr&&(b.xhr=f.xhr);b.wait?(wb(e)&&(m.force=!0),e.add(h,m).then(function(){k&&k.call(null!=l?l:e,c,d,b);a(c)})):(k&&k.call(null!=l?l:e,c,d,b),a(c))};var d=c(h,b);d||a(d)})});m.merge=!0;d(h,m);return c(h,b)};A("Collection.prototype.create",{create:N.prototype.create});N.prototype.C1=function(a){var b=[],c;zc(this,"pluck");for(c=0;c<this.Bd();c+=1)b.push(this.at(c).get(a));return b};A("Collection.prototype.pluck",{C1:N.prototype.C1});
N.prototype.E2=function(a,b){return uc(this,Xc(this,a,b))};A("Collection.prototype.where",{E2:N.prototype.E2});function Xc(a,b,c){c=c||{};var d=Cc(c);if(wb(a))return new Promise(function(d,e){Sc(a,{query:b,all:!0,success:function(a,b){d(b)},error:function(b,d,f){e(Gc(b,d,f,a,c,!0))}})});var e=[],f,h;for(f=0;f<a.Bd();f+=1)h=a.at(f),qb(h,b)&&e.push(h);return d?new Promise(function(a){a(e)}):e}
N.prototype.F2=function(a,b){b=b||{};var c=Cc(b),d=this;if(wb(this)||c)return Bc(d,function(){return new Promise(function(c,f){return Xc(d,a,b).then(function(a){a=Yc(d,a);c(a)},function(a){f(a)})})});c=Xc(this,a,b);c=Yc(this,c);c[xb]=-1;Vb(c);return c};A("Collection.prototype.whereToCollection",{F2:N.prototype.F2});function Yc(a,b){var c=mc(a,!1);Ub(c,b,!1);jc(c);Vb(c);return c}function zc(a,b){if(wb(a))throw Error(b+" not valid on a virtual Collection");}
N.prototype.map=function(a,b){var c=[],d;zc(this,"map");Yb(this).forEach(function(e){d=a.call(b||this,e);c.push(d)});return c};A("Collection.prototype.map",{map:N.prototype.map});N.prototype.each=function(a,b){zc(this,"each");Yb(this).forEach(a,b)};A("Collection.prototype.each",{each:N.prototype.each});N.prototype.size=function(){return this.Bd()};A("Collection.prototype.size",{size:N.prototype.size});
N.prototype.b2=function(a,b){var c=[],d;zc(this,"sortBy");Yb(this).forEach(function(a){c.push(a)});d=this;c.sort(function(c,f){var h,k;if($.isFunction(a))return h=a.call(b||d,c),k=a.call(b||d,f),yc(h,k,d.sortDirection);h=c.get(a);k=f.get(a);return yc(h,k,d.sortDirection)});return c};A("Collection.prototype.sortBy",{b2:N.prototype.b2});
N.prototype.N_=function(a,b){var c={},d;zc(this,"groupBy");Yb(this).forEach(function(e){d=$.isFunction(a)?a.call(b||this,e):e.get(a);void 0===c[d]&&(c[d]=[]);c[d].push(e)},this);return c};A("Collection.prototype.groupBy",{N_:N.prototype.N_});N.prototype.j0=function(a,b){var c={},d;zc(this,"indexBy");Yb(this).forEach(function(e){d=$.isFunction(a)?a.call(b||this,e):e.get(a);c[d]=e},this);return c};A("Collection.prototype.indexBy",{j0:N.prototype.j0});
N.prototype.min=function(a,b){var c={},d,e;zc(this,"min");if(0==Zb(this))return null;c=this.Kb(0);d=a.call(b||this,this.Kb(0));Yb(this).forEach(function(f,h){1<=h&&(e=a.call(b||this,f),e<d&&(c=f,d=e))},this);return c};A("Collection.prototype.min",{min:N.prototype.min});N.prototype.max=function(a,b){var c={},d,e;zc(this,"max");if(0==Zb(this))return null;c=this.Kb(0);d=a.call(b,this.Kb(0));Yb(this).forEach(function(f,h){1<=h&&(e=a.call(b||this,f),e>d&&(c=f,d=e))},this);return c};
A("Collection.prototype.max",{max:N.prototype.max});N.prototype.filter=function(a,b){var c=[];zc(this,"filter");Yb(this).forEach(function(d){a.call(b||this,d)&&c.push(d)});return c};A("Collection.prototype.filter",{filter:N.prototype.filter});N.prototype.G2=function(a){var b=[],c,d,e,f;zc(this,"without");for(var h,k=0;k<Yb(this).length;k++){f=!0;h=this.Kb(k);for(c=0;c<arguments.length;c+=1)if(e=arguments[c].cid,d=arguments[c].id,cb(h,d,e)){f=!1;break}f&&b.push(h)}return b};
A("Collection.prototype.without",{G2:N.prototype.G2});N.prototype.KZ=function(a){var b=[],c,d,e,f,h;zc(this,"difference");for(var k,l=0;l<Yb(this).length;l++){h=!0;k=this.Kb(l);for(c=0;c<arguments.length;c+=1){for(d=0;d<arguments[c].length;d++)if(f=arguments[c][d].cid,e=arguments[c][d].id,cb(k,e,f)){h=!1;break}if(!h)break}h&&b.push(k)}return b};A("Collection.prototype.difference",{KZ:N.prototype.KZ});N.prototype.hl=function(){return 0===this.Bd()};A("Collection.prototype.isEmpty",{hl:N.prototype.hl});
N.prototype.gZ=function(a,b){zc(this,"any");for(var c,d=0;d<Zb(this);d+=1)if(c=this.Kb(d),a.call(b||this,c))return!0;return!1};A("Collection.prototype.any",{gZ:N.prototype.gZ});N.prototype.SZ=function(a,b){var c=Cc(b),d=this;if(wb(this)||c)return Bc(this,function(){return new Promise(function(c){Xc(d,a,b).then(function(a){a&&0<a.length&&c(a[0]);c(null)})})});c=Xc(this,a,b);return 0<c.length?c[0]:null};A("Collection.prototype.findWhere",{SZ:N.prototype.SZ});
N.prototype.slice=function(a,b,c){var d=Cc(c);c=[];if(void 0===b){if(wb(this)&&!ac(this))throw Error("End must be set for virtual collections with no totalResults");b=Zb(this)}if(d||wb(this)){var e=this;return Bc(this,function(){return Dc(e,a,b)})}for(d=a;d<b;d+=1)c.push(this.Kb(d));return c};A("Collection.prototype.slice",{slice:N.prototype.slice});N.prototype.set=function(a,b){return Qc(this,a,!0,b,Cc(b)||wb(this))};A("Collection.prototype.set",{set:N.prototype.set});
function Zc(a,b,c,d,e){if(c)for(c=b.length-1;0<=c;c-=1)-1==d.indexOf(c)&&a.yq(b[c],c,e)}function $c(a,b,c,d,e){if(null!=a.comparator||!d||!e)return{index:b,JN:!1};d=Zb(a);if(b>=d||c>=d)return{index:b,JN:!1};d=a.Kb(b);e=a.Kb(c);ic(a,b,e);e.index=b;ic(a,c,d);d.index=c;return{index:c,JN:c!==b}}
function Qc(a,b,c,d,e){d=d||{};var f=void 0===d.add?!0:d.add,h=void 0===d.remove?!0:d.remove,k=void 0===d.merge?!0:d.merge,l=[],m=null,n;c&&(b=a.parse(b));n=Array.isArray(b)?b:[b];if(e)return Bc(a,function(){return ad(a,n,Yb(a),d,h,f,k)});c=!1;for(b=0;b<n.length;b+=1)if(m=bd(a,tc(a,n[b],d,!0),f,k,e),-1!==m){var m=$c(a,m,b,h,f),p=m.index;m.JN&&(c=!0);-1===l.indexOf(p)&&l.push(p)}c&&a.Cb(d.silent,L.SORT,a,d.add?{add:!0}:null,null);Zc(a,Yb(a),h,l,d)}
function ad(a,b,c,d,e,f,h){var k=[],l;return new Promise(function(m,n){function p(c){return new Promise(function(e,l){bd(a,tc(a,b[c],d,!0),f,h,!0).then(function(a){-1!==a&&k.push(a);e(c+1)},l)})}var q=Promise.resolve(0);for(l=0;l<b.length;l+=1)q=q.then(p);q.then(function(){Zc(a,c,e,k,d);m(void 0)},n)})}
function bd(a,b,c,d,e){function f(a,e,f){var h=e?e.index:-1;if(e&&e.m){if(d){var p={merge:d};if(f)return new Promise(function(c){rc(a,b,p,!1,!0).then(function(){c(h)})});a.add(b,p)}}else if(c){if(f)return new Promise(function(c){rc(a,b,p,!1,!0).then(function(){c(a.Bd()-1)})});a.add(b);h=a.Bd()-1}return h}if(e||wb(a))return new Promise(function(c){a.uh(b,{silent:!0},e).then(function(b){f(a,b,!0).then(function(a){c(a)})})});var h=a.uh(b);return f(a,h,!1)}
N.prototype.toJSON=function(){var a=[];zc(this,"toJSON");Yb(this).forEach(function(b){a.push(b.toJSON())});return a};A("Collection.prototype.toJSON",{toJSON:N.prototype.toJSON});
N.prototype.first=function(a,b){var c=Cc(b),d=this.Bd(),e=[];a?d=a:a=1;c=wb(this)||c;if(1===a){if(c){var f=this;return Bc(this,function(){return Ec(f,0,null)})}return 0<Zb(this)?this.Kb(0):null}d>Zb(this)&&(!wb(this)||ac(this))&&(d=Zb(this));if(c)return f=this,Bc(this,function(){return Dc(f,0,d)});for(c=0;c<d;c+=1)e.push(this.Kb(c));return e};A("Collection.prototype.first",{first:N.prototype.first});
N.prototype.indexOf=function(a,b){var c=Cc(b);if(wb(this)||c){var d=this;return Bc(this,function(){return d.uh(a,null,!0).then(function(a){return a.index})})}return this.uh(a).index};A("Collection.prototype.indexOf",{indexOf:N.prototype.indexOf});N.prototype.contains=function(a,b){var c=Cc(b);if(wb(this)||c){var d=this;return Bc(this,function(){return d.uh(a,null,!0).then(function(a){return-1<a.index})})}return-1<this.uh(a).index};A("Collection.prototype.contains",{contains:N.prototype.contains});
N.prototype.i0=N.prototype.contains;A("Collection.prototype.include",{i0:N.prototype.i0});N.prototype.pop=function(a){var b=Cc(a);if(wb(this)||b){var c=this;return this.at(this.Bd()-1,{deferred:b}).then(function(b){c.remove(b,a);return b})}b=this.at(this.Bd()-1);this.remove(b,a);return b};A("Collection.prototype.pop",{pop:N.prototype.pop});N.prototype.push=function(a,b){var c=Cc(b);lc(this,1);return uc(this,rc(this,a,b,!1,c))};A("Collection.prototype.push",{push:N.prototype.push});
N.prototype.lastIndexOf=function(a,b){var c;zc(this,"lastIndexOf");void 0===b&&(b=0);for(c=this.Bd()-1;c>=b;c-=1)if(pa(a,this.at(c)))return c;return-1};A("Collection.prototype.lastIndexOf",{lastIndexOf:N.prototype.lastIndexOf});function cd(a){return $.isFunction(a.customURL)?!0:null!=Bb(a,null)}
function Bb(a,b){var c=jb(a,"url");if(wb(a)){var d=b.all,e=null;e=d?(e=a.totalResults)?e:a.qk(b):a.qk(b);c=c&&-1<c.indexOf("?")?c+"\x26":c+"?";c+="limit\x3d"+e;d||(null!=b.startIndex&&(c+="\x26offset\x3d"+b.startIndex),b.startID&&(c+="\x26fromID\x3d"+b.startID),b.since&&(c+="\x26since\x3d"+b.since),b.until&&(c+="\x26until\x3d"+b.until));if(b.query){var f,d=b.query,d=Array.isArray(d)?d:[d],e="",h,k,l;for(l=0;l<d.length;l++){h=d[l];for(f in h)if(h.hasOwnProperty(f))for(var m=Array.isArray(h[f])?h[f]:
[h[f]],n=0;n<m.length;n++){if(ob(m[n])){k=m[n].value;var p=null,p=m[n].comparator,p=$.isFunction(p)?p(null,f,k):p;k=f+p+k}else k=f+"\x3d"+h[f];e+=k+"+"}e=e.substring(0,e.length-1)+","}(f=","===e.substring(e.length-1)?e.substring(0,e.length-1):e)&&0<f.length&&(c+="\x26q\x3d"+f)}if((f=a.comparator)&&w.Ca.ed(f))for(f=void 0===f?[]:f.split(","),d=-1===a.sortDirection?"desc":"asc",e=0;e<f.length;e++)c=0===e?c+("\x26orderBy\x3d"+f[e]+":"+d):c+(","+f[e]+":"+d);c+="\x26totalResults\x3dtrue"}return c}
N.prototype.$m=function(a,b,c){return w.sync(a,b,c)};A("Collection.prototype.sync",{$m:N.prototype.$m});var xb="fetchSize";function dd(a,b,c){this.Init(a,b,c)}t("Message",dd,w);var ed={CONFIRMATION:"confirmation",INFO:"info",WARNING:"warning",ERROR:"error",FATAL:"fatal"};t("Message.SEVERITY_TYPE",ed,w);var fd={FATAL:5,ERROR:4,WARNING:3,INFO:2,CONFIRMATION:1};t("Message.SEVERITY_LEVEL",fd,w);H(dd,x,"oj.Message");
dd.prototype.Init=function(a,b,c){dd.o.Init.call(this);this.summary=a;this.detail=b;this.severity=c||"error"};A("Message.prototype.Init",{Init:dd.prototype.Init});dd.prototype.tZ=function(){return!0};dd.prototype.ym=function(a){return a&&gd(this.severity)===gd(a.severity)&&this.summary===a.summary&&this.detail===a.detail?!0:!1};A("Message.prototype.equals",{ym:dd.prototype.ym});dd.prototype.clone=function(){return new dd(this.summary,this.detail,this.severity)};A("Message.prototype.clone",{clone:dd.prototype.clone});
function gd(a){a&&("string"===typeof a?(a=hd.indexOf(a,1),a=-1===a?fd.ERROR:a):"number"===typeof a&&a<fd.CONFIRMATION&&a>fd.FATAL&&(a=fd.ERROR));return a?a:fd.ERROR}t("Message.getSeverityLevel",gd,w);t("Message.getSeverityType",function(a){var b;a&&("string"===typeof a?(b=hd.indexOf(a,1),-1===b&&(a=ed.ERROR)):"number"===typeof a&&(a=a<fd.CONFIRMATION&&a>fd.FATAL?ed.ERROR:hd[a]));return a||ed.ERROR},w);
function id(a){var b=-1,c;a&&0<a.length&&$.each(a,function(a,e){e&&(c=gd(e.severity));b=b<c?c:b});return b}t("Message.getMaxSeverity",id,w);dd.isValid=function(a){return 4<=id(a)?!1:!0};t("Message.isValid",dd.isValid,w);var hd=["none",ed.CONFIRMATION,ed.INFO,ed.WARNING,ed.ERROR,ed.FATAL];function jd(a,b,c,d){this.Init(a,b,c,d)}H(jd,dd,"oj.ComponentMessage");var kd={display:"shown",context:""};jd.prototype.Init=function(a,b,c,d){jd.o.Init.call(this,a,b,c);this.Za=$.extend({},kd,d)};
jd.prototype.ym=function(a){return jd.o.ym.call(this,a)&&this.Za.display===a.Za.display};jd.prototype.clone=function(){return new jd(this.summary,this.detail,this.severity,this.Za)};jd.prototype.tZ=function(){return!(this.Za&&this.Za.display&&"hidden"===this.Za.display)};w.Components={};t("Components",w.Components,w);
w.Components.Rj=function(a){var b=w.Components.hS||{};Object.keys(a).forEach(function(c){var d=a[c];if(!w.Nb.isPlainObject(d))throw"Invalid default options";b[c]=ld(b[c]||{},d,!1)});w.Components.hS=b};t("Components.setDefaultOptions",w.Components.Rj,w);w.Components.m_=function(){return w.Components.hS||{}};t("Components.getDefaultOptions",w.Components.m_,w);w.Components.ad=function(a){return new nd(a)};t("Components.createDynamicPropertyGetter",w.Components.ad,w);
w.Components.Pb=function(a,b){var c=$(a),d=c.data(od);return d&&(null==b?b=d[0]:0>d.indexOf(b)&&(b=void 0),null!=b&&(d=c[b],"function"===typeof d))?d.bind(c):null};t("Components.getWidgetConstructor",w.Components.Pb,w);w.Components.me=function(a){w.q.UZ(a);pd(a,function(a){a.Ml()})};t("Components.subtreeAttached",w.Components.me,w);w.Components.af=function(a){pd(a,function(a){a.xg()})};t("Components.subtreeDetached",w.Components.af,w);w.Components.Zm=function(a){w.q.UZ(a);pd(a,function(a){a.Nl()})};
t("Components.subtreeShown",w.Components.Zm,w);w.Components.Wo=function(a){pd(a,function(a){a.Xi()})};t("Components.subtreeHidden",w.Components.Wo,w);w.Components.FD=function(a){var b=a.data(od);return $.isArray(b)&&-1<b.indexOf("ojPopup")&&a.is("."+qd)?!0:!1};w.Components.B5=function(a){for(var b={},c=w.Components.m_(),d=a.length-1;0<=d;d--){var e=c[a[d]];void 0!==e&&(b=ld(b,e,!0))}return b};
w.Components.gM=function(a){return null==a?null:a.getAttribute("data-oj-internal")?w.Components.gM(a.parentNode):w.Components.Pb(a)?a:a.classList.contains("oj-component")&&(a=$(a).find(".oj-component-initnode").not("[data-oj-internal]")[0]||a,w.Components.Pb(a))?a:w.Components.gM(a.parentNode)};t("Components.getComponentElementByNode",w.Components.gM,w);w.Components.getSubIdByNode=function(a,b){return w.Components.CL(a,"getSubIdByNode",b)};
t("Components.getSubIdByNode",w.Components.getSubIdByNode,w);w.Components.getNodeBySubId=function(a,b){return w.Components.CL(a,"getNodeBySubId",b)};t("Components.getNodeBySubId",w.Components.getNodeBySubId,w);w.Components.Dha=function(a,b){if(w.Components.Pb(a))return w.Components.Pb(a)("option",b);throw Error("node is not a component element");};t("Components.getComponentOption",w.Components.Dha,w);
w.Components.Aja=function(a,b,c){if(w.Components.Pb(a))w.Components.Pb(a)("option",b,c);else throw Error("node is not a component element");};t("Components.setComponentOption",w.Components.Aja,w);w.Components.CL=function(a,b,c){if(w.Components.Pb(a))return w.Components.Pb(a).apply($(a),[].slice.call(arguments,1));throw Error("node is not a component element");};t("Components.callComponentMethod",w.Components.CL,w);
function pd(a,b){function c(){var a=$(this),c=a.data(od);if(null!=c)for(var d=0;d<c.length;d++){var k=a.data("oj-"+c[d]);null!=k&&b(k)}}var d=$(a);d.hasClass(qd)&&c.call(a);d.find("."+qd).each(c)}function nd(a){this.kD=function(){return a}}function ld(a,b,c){Object.keys(b).forEach(function(d){var e=a[d]||[],f=b[d];c?e=e.concat(f):e.push(f);a[d]=e});return a}w.Components.Zj="data-oj-container";var od="oj-component-names",qd="oj-component-initnode";w.Components.qv="_ojwidget";w.Components.Mr="_createPromise";
w.Components.uF="_resolve";w.Components.tF="_promise";w.Components.wF={};w.Components.IF={};w.Components.xa=function(a,b,c){a=w.yd.Cu(a.toLowerCase());b?(b=w.yd.Cu(b.toLowerCase()),b=w.Nb.Fd({},w.Components.getMetadata(b),void 0,!0),w.Components.IF[a]=w.Nb.Fd(b,c,void 0,!0)):w.Components.IF[a]=c};w.Components.getMetadata=function(a){return w.Components.IF[a.toLowerCase()]};
w.Components.register=function(a,b){if(a&&document.registerElement){var c=a.toLowerCase();if(!w.Components.wF[c]){w.Components.wF[c]=!0;var d=w.Components.O9(b);document.registerElement(c,{prototype:d})}}};w.Components.r0=function(a){return a?w.Components.wF[a.toLowerCase()]:!1};w.Components.Eha=function(a){var b=a[w.Components.Mr];b||(b={},b[w.Components.tF]=new Promise(function(a){b[w.Components.uF]=a}),a[w.Components.Mr]=b);return b[w.Components.tF]};
w.Components.O9=function(a){var b=Object.create(HTMLElement.prototype),c=a.properties,d=a.methods;a=a.extension;var e=a._widgetName;w.Components.F5(c,b);w.Components.E5(d,b);w.Components.K5(e,c,a,b);return b};w.Components.F5=function(a,b){Object.keys(a).forEach(function(a){w.Components.G5(a,b)})};
w.Components.G5=function(a,b){Object.defineProperty(b,a,{configurable:!0,enumerable:!0,get:function(){return this[w.Components.qv]("option",a)},set:function(b){if(this[w.Components.qv])this[w.Components.qv]("option",a,b)}})};w.Components.E5=function(a,b){Object.keys(a).forEach(function(c){var d=a[c].params,e=[];d&&d.forEach(function(a){a=a.name;-1===a.indexOf(".")&&e.push(a)});b[c]=new Function(e,"return this._ojwidget('"+c+(0<e.length?"', "+e.join():"'")+");")})};
w.Components.K5=function(a,b,c,d){d.createdCallback=function(){var a=this[w.Components.Mr];if(a){if(a=a[w.Components.uF])a(),delete this[w.Components.Mr][w.Components.uF]}else this[w.Components.Mr]={},this[w.Components.Mr][w.Components.tF]=Promise.resolve()};d.attachedCallback=function(){if(this[w.Components.qv])w.Components.me(this);else{var d=c._innerElement,f=this;d&&(f=(f=this.firstElementChild)&&f.tagName.toLowerCase()===d?f:w.Components.r7(d,this,c._defaultAttrs,c._transferAttrs));var h=c._hasWrapper?
{_wrapper:this}:{},k=this,l=!1;Object.keys(b).forEach(function(a){var c=w.yd.Cu(a);k.hasAttribute(c)&&(c=k.getAttribute(c),w.yd.Px(c).expr?l=!0:h[a]=w.yd.TC(a,c,b[a].type))});l||this.classList.add("oj-complete");h.optionChange=function(a,b){this.dispatchEvent(new CustomEvent(b.option+"-changed",{detail:{value:b.value,previousValue:b.previousValue}}))};$(f)[a](h);this[w.Components.qv]=w.Components.Pb(f,a)}};d.detachedCallback=function(){w.Components.af(this)};d.attributeChangedCallback=function(a,
c,d){var k=w.yd.yL(a),l=b[k];l&&(this.dispatchEvent(new CustomEvent("attribute-changed",{detail:{attribute:a,value:d,previousValue:c}})),w.yd.Px(d).expr||(this[k]=w.yd.TC(k,d,l.type)))}};
w.Components.r7=function(a,b,c,d){var e=document.createElement(a);b.appendChild(e);a=[];for(var f=0;f<b.childNodes.length;f++)a.push(b.childNodes[f]);for(f=0;f<a.length;f++)b.appendChild(a[f]);if(c)for(var h in c)e.setAttribute(h,c[h]);d&&d.forEach(function(a){b.hasAttribute(a)&&e.setAttribute(a,b.getAttribute(a))});$(e).append($(b).children());return e};
$.widget("oj.baseComponent",{options:{contextMenu:null,rootAttributes:null,optionChange:void 0,destroy:void 0},refresh:function(){this.et=null},_createWidget:function(a,b){a&&(this.Kc=a._wrapper);this.wW=this.options||{};this.DR=a||{};this._super(a,b);this.OO()},Jz:function(){var a=this.options.rootAttributes;if(a){var b=this.widget();if(null!=b){var c=a["class"];c&&b.addClass(c);if(c=a.style){var d=b.attr("style");d?b.attr("style",d+";"+c):b.attr("style",c)}a=$.extend({},a);delete a["class"];delete a.style;
b.attr(a);delete a.id;a=Object.keys(a);if(a.length)throw Error("Unsupported values passed to rootAttributes option: "+a.toString());}}},_create:function(){this.mv(this.element);this.Vd(this.wW,this.DR);delete this.wW;delete this.DR;this._ComponentCreate();this.cf();this.element.addClass(qd)},Vd:function(a,b){this.mfa(a,b);this.fba(b)},_ComponentCreate:function(){var a=this.element,b=this.widgetName,c=a.data(od);c||(c=[],a.data(od,c));0>c.indexOf(b)&&c.push(b)},cf:function(){this.Jz();this.pi=this.eventNamespace+
"contextMenu";this.aY(!0,null)},OO:$.noop,mv:function(){},r5:function(a){var b=this;this.qK=[];$.each(a,function(a,d){var e={},f=d.attributes;b.qK.push({element:d,attributes:e});$.each(f,function(a,b){e[b.name]={attr:b.value}})})},Q3:function(a){var b=this.qK;if(void 0===b)return null;a=a[0];for(var c=0,d=b.length;c<d;c++){var e=b[c];if(e.element===a)return e.attributes}return{}},Vr:function(){},c5:function(){$.each(this.qK,function(a,b){var c=$(b.element),d=b.attributes;if(1===c.length){for(var e=
b.element.attributes,f=[],h=0,k=e.length;h<k;h++)e[h].name in d||f.push(e[h].name);h=0;for(k=f.length;h<k;h++)c.removeAttr(f[h]);for(var l in d)c.attr(l,d[l].attr)}})},rz:function(){return this.widgetFullName},ev:function(a,b,c){return b==c},r:function(a,b){var c={},d;2<arguments.length?c=Array.prototype.slice.call(arguments,1):2==arguments.length&&(c=arguments[1],"object"===typeof c||c instanceof Array||(c=[c]));d=this.option(rd+a);return null==d?a:w.ba.Db(d.toString(),c)},getNodeBySubId:function(a){return null==
a||null==a.subId?this.element?this.element[0]:null:null},getSubIdByNode:function(){return null},destroy:function(){this._trigger("destroy");w.q.dispatchEvent(this.element[0],new CustomEvent("_ojDestroy"));this._super();this.gX(this.options.contextMenu);this.element.removeClass(qd);this.widget().removeClass("oj-disabled");this.kK(this.element);var a=this.element,b=this.widgetName,c=a.data(od);c&&(b=c.indexOf(b),0<=b&&(c.splice(b,1),0===c.length&&a.removeData(od)));this.Vr();this.fV?this.element.attr("contextmenu",
this.fV):this.element.removeAttr("contextmenu");this.et=null},option:function(a,b){if(0===arguments.length)return $.widget.extend({},this.options);var c=arguments[0],d=c,e=null,f={};if("string"===typeof c){var d={},h=c.split("."),c=h.shift();if(h.length){var e=h.join("."),k;try{1<arguments.length&&(this.nt=e),k=d[c]=$.widget.extend({},this.options[c])}finally{this.nt=null}for(c=0;c<h.length-1;c++)k[h[c]]=k[h[c]]||{},k=k[h[c]];c=h.pop();if(1===arguments.length)return void 0===k[c]?null:k[c];k[c]=b}else{if(1===
arguments.length)return void 0===this.options[c]?null:this.options[c];d[c]=b}f=arguments[2]||f}else f=arguments[1]||f;null!=e&&(f=$.widget.extend({},f,{subkey:e}));(e=f?f._context:null)&&e.Ia?this.yba(d,f):this._setOptions(d,f);return this},yba:function(a,b){for(var c in a){var d=a[c],e=this.options[c];this.options[c]=d;this.uW(c,d,e,b)}},_setOptions:function(a,b){for(var c in a)this._setOption(c,a[c],b);return this},_setOption:function(a,b,c){var d=this.options[a];if("disabled"===a)this.options[a]=
b,this.widget().toggleClass("oj-disabled",!!b).attr("aria-disabled",b),b&&this.kK(this.widget());else{try{var e=null==c?null:c.subkey;null!=e&&(this.nt=e);this._super(a,b)}finally{this.nt=null}"contextMenu"===a&&this.aY(!1,d)}this.uW(a,b,d,c);return this},uW:function(a,b,c,d){var e=!1,f=null,h=!1,k=!1,l=null,m=null,n;d&&(e=d.changed,f=d._context)&&(l=f.originalEvent,h=void 0===f.kc?null!=l:f.kc,k=f.readOnly,m=f.No,n=f.Eh);if(e||!this.ev(a,c,b))m=m||{},m.writeback=h?"shouldWrite":"shouldNotWrite",
k&&(m.readOnly=!0),a={option:a,previousValue:c,value:b,optionMetadata:m},null!=n&&(a=$.extend({},n,a)),this._trigger("optionChange",l,a)},_trigger:function(a,b,c){return this.fL(a,b,c).proceed},fL:function(a,b,c){var d=this.options[a];c=c||{};b=$.Event(b,sd);b.type=(this.widgetEventPrefix+a).toLowerCase();b.target=this.element[0];this.element.trigger(b,c);return{proceed:!($.isFunction(d)&&!1===d.apply(this.element[0],[b].concat(c))||b.isDefaultPrevented()),event:b}},fba:function(a){var b=this.element.attr("contextmenu");
this.fV=b;!b||"contextMenu"in a||this.option("contextMenu",document.getElementById(b),{_context:{Ia:!0}})},aY:function(a,b){this.gX(b);if(this.options.contextMenu){var c=this.widget(),d=this.element;a&&!d.is(c)&&d.removeAttr("contextmenu");(d=$(this.options.contextMenu).attr("id"))&&c.attr("contextmenu",d);var e=this;this.FW=function(a){121==a.which&&a.shiftKey&&e.jT().is(":visible")&&a.preventDefault()};var f=w.q.iF,h=!1,k=!1,l,m,n,p=null,q=function(a,b,d){h=d;var f=e.YH();if(h)c.one("touchend"+
e.pi,function(){f.Xr(!0);setTimeout(function(){f.Xr(!1)},50)});"touchstart"===p&&"contextmenu"===a.type||"contextmenu"===p&&"touchstart"===a.type?(p=null,clearTimeout(n)):a.isDefaultPrevented()||a.originalEvent&&a.originalEvent.defaultPrevented||e.Wd()||(e.Se(f,a,b),!f.widget().is(":visible")||(a.preventDefault(),document.addEventListener("keyup",e.FW),"touchstart"!==a.type&&"contextmenu"!==a.type))||(p=a.type,n=setTimeout(function(){p=null},300))};this.sR=function(a){h&&(a.preventDefault(),a.stopPropagation(),
h=!1)};c[0].addEventListener("click",this.sR,!0);c.on("touchstart"+this.pi+" mousedown"+this.pi+" keydown"+this.pi+" ",function(a){if("mousedown"!==a.type||!e.YH().Xr()){h=!1;if("touchstart"===a.type&&1===a.originalEvent.touches.length){var b=a.originalEvent.touches[0];l=b.pageX;m=b.pageY;k=!0;this.iH=setTimeout(q.bind(void 0,a,"touch",!0),f)}return!0}}).on("touchmove"+this.pi,function(a){a=a.originalEvent.touches[0];if(5<Math.abs(l-a.pageX)||5<Math.abs(m-a.pageY))k=!1,clearTimeout(this.iH);return!0}).on("touchend"+
this.pi+" touchcancel"+this.pi,function(){k=!1;clearTimeout(this.iH);return!0}).on("keydown"+this.pi+" contextmenu"+this.pi,function(a){("contextmenu"===a.type||121==a.which&&a.shiftKey)&&q(a,k?"touch":"keydown"===a.type?"keyboard":"mouse",!1);return!0}).addClass(w.q.ud()?"oj-menu-context-menu-launcher":void 0)}},YH:function(){var a=w.Components.Pb(this.jT()[0],"ojMenu"),a=a&&a("instance");if(!a)throw Error('"contextMenu" option set to "'+this.options.contextMenu+'", which does not reference a valid JET Menu.');
if(!this.GR){var b=this;a.widget().on("ojclose"+this.pi,function(){document.removeEventListener("keyup",b.FW)});this.GR=!0}return a},jT:function(){return $(this.options.contextMenu).first()},gX:function(a){this.widget().removeAttr("contextmenu").off(this.pi).removeClass("oj-menu-context-menu-launcher")[0].removeEventListener("click",this.sR,!0);clearTimeout(this.iH);$(a).off(this.pi);this.GR=!1},Se:function(a,b,c){this.Te(b,c)},Te:function(a,b,c,d,e){b={launcher:this.element,position:{mouse:{my:"start top",
at:"start bottom",of:a,collision:"flipfit"},touch:{my:"start\x3e40 center",at:"start bottom",of:a,collision:"flipfit"},keyboard:{my:"start top",at:"start bottom",of:"launcher",collision:"flipfit"}}[b]};var f={initialFocus:"menu"};c=e?$.extend(b,c,f):$.extend(!0,b,c,f);e=this.YH();e.Oz=!0;e.open(a,c,d);e.Oz=!1},kK:function(a){a.removeClass("oj-hover oj-focus oj-focus-highlight oj-active");a.find(".oj-hover").removeClass("oj-hover");a.find(".oj-focus").removeClass("oj-focus");a.find(".oj-focus-highlight").removeClass("oj-focus-highlight");
a.find(".oj-active").removeClass("oj-active")},hq:function(){return!w.q.M1()},ld:function(a){var b;$.isPlainObject(a)?b=a.element:(b=a,a={});a=a.afterToggle||$.noop;b.on("mouseenter"+this.eventNamespace,this.bba.bind(this,a)).on("mouseleave"+this.eventNamespace,this.hJ.bind(this,"oj-hover",a))},ZF:function(a){a&&$(a).off("mouseenter"+this.eventNamespace+" mouseleave"+this.eventNamespace)},jh:function(a){var b;$.isPlainObject(a)?b=a.element:(b=a,a={});a=a.afterToggle||$.noop;if(w.q.ud())b.on("touchstart"+
this.eventNamespace,this.vQ.bind(this,a)).on("touchend"+this.eventNamespace+" touchcancel"+this.eventNamespace,this.hJ.bind(this,"oj-active",a));b.on("mousedown"+this.eventNamespace,this.vQ.bind(this,a)).on("mouseup"+this.eventNamespace,this.hJ.bind(this,"oj-active",a))},YF:function(a){a&&$(a).off("touchstart"+this.eventNamespace+" touchend"+this.eventNamespace+" touchcancel"+this.eventNamespace+" mousedown"+this.eventNamespace+" mouseup"+this.eventNamespace)},vQ:function(a,b){var c=$(b.currentTarget);
c.hasClass("oj-disabled")||"touchstart"!==b.type&&!this.hq(b)||(c.addClass("oj-active"),a(b.type))},bba:function(a,b){var c=$(b.currentTarget);!c.hasClass("oj-disabled")&&this.hq(b)&&(c.addClass("oj-hover"),a(b.type))},hJ:function(a,b,c){$(c.currentTarget).removeClass(a);b(c.type)},_focusable:function(a){$.isPlainObject(a)||(a={element:a});a.component=this;w.q.lE(a)},xp:function(a){if(a){$(a).off(this.eventNamespace);var b=this.bindings;b&&(this.bindings=$(b.not(a)))}},D_:function(a){return this.option(rd+
a)},$b:function(){return w.q.Gj()},Ml:function(){this.et=null},xg:function(){this.et=null;this.kK(this.widget())},Nl:function(){},Xi:function(){},Wd:function(){return this.options.disabled||this.GQ?!0:!1},rv:function(a){this.GQ=a},c$:function(){var a=[],b=this,c=0;this.QY(function(d){d=0==c?b.rz():d.widgetFullName;c++;var f=w.ba.lD(d);null==f||$.isEmptyObject(f)||a.push(d)});var d=a.length;return 0<d?function(){if(1==d)return w.ba.lD(a[0]);for(var b={},c=d-1;0<=c;c--)$.widget.extend(b,w.ba.lD(a[c]));
return b}:null},m9:function(){if(!this.et){var a={};this.et=a;for(var b=this.element[0],c=b,d=[];c;){var e=c.getAttribute,e=e?e.call(c,w.Components.Zj):null;null!=e&&d.push(e);c=c.parentNode}a.containers=d;a.element=b}return this.et},mfa:function(a,b){var c=this.options,d=this.c$(),e=b[td];null==d||void 0!==e&&!$.isPlainObject(e)||ud(this,void 0,b[td],c,td,d);this.dca(a,b)},dca:function(a,b){var c=this.options,d=[];this.QY(function(a){d.push(a.widgetName)});d.push("default");var e=w.Components.B5(d);
if(!$.isEmptyObject(e)){var f=this,h=function(){return f.m9()},k;for(k in e){var l=b[k];if(void 0===l||$.isPlainObject(l)){var m=e[k];if(m){var n=vd(m);n?ud(this,a[k],l,c,k,n,h):(m=[a[k]].concat(m),m.push(l),c[k]=wd(m))}}}}},QY:function(a){for(var b=this.constructor.prototype;null!=b&&"oj"===b.namespace;)a(b),b=Object.getPrototypeOf(b)}});delete $.fn.baseComponent;
w.sa=function(a,b,c,d){$.widget(a,b,c);d&&delete $.fn[a.split(".")[1]];if("oj.oj"===a.substring(0,5)||"oj._oj"===a.substring(0,6)){b=a.split(".");a=b[0];b=b[1];var e=a+"-"+b;$.expr[":"][("_"===b.substring(0,1)?"_"+a+"-"+b.substring(3):a+"-"+b.substring(2)).toLowerCase()]=function(a){return!!$.data(a,e)}}};
function ud(a,b,c,d,e,f,h){var k=c,l=!1,m={};delete d[e];Object.defineProperty(d,e,{get:function(){if(l||null!=a.nt)return k;var c=f(h?h():e);return wd([b,c,k],m)},set:function(b){k=b;null!=a.nt?m[a.nt]=!0:l=!0},enumerable:!0})}
function vd(a){if(1===a.length){var b=a[0];return b instanceof nd?b.kD():null}for(var b=!1,c=0;c<a.length&&!b;c++){var d=a[c];null!=d&&d instanceof nd&&(b=!0)}return b?function(b){var c=[];a.forEach(function(a){null!=a&&a instanceof nd?c.push(a.kD()(b)):c.push(a)});return wd(c)}:null}function wd(a,b){for(var c=void 0,d=0;d<a.length;d++){var e=a[d];void 0!==e&&(c=$.isPlainObject(e)?xd($.isPlainObject(c)?[c,e]:[e],d==a.length-1?null:b,null):e)}return c}
function xd(a,b,c){for(var d={},e=a.length,f=0;f<e;f++)for(var h=a[f],k=Object.keys(h),l=0;l<k.length;l++){var m=k[l],n=null==b?null:null==c?m:c+"."+m;if(null==b||!b[n]){var p=h[m];void 0!==p&&(d[m]=$.isPlainObject(p)?xd($.isPlainObject(d[m])?[d[m],p]:[p],b,n):p)}}return d}var td="translations",rd=td+".";function yd(){return!0}
var sd={isDefaultPrevented:function(){return!1},preventDefault:function(){this.isDefaultPrevented=yd},stopPropagation:function(){this.isPropagationStopped=yd},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=yd}};
$(document).ready(function(){var a=$("\x3cdiv style\x3d'border: 1px solid;border-color:red green;position: absolute;top: -999px;background-image: url(\x3d);'\x3e\x3c/div\x3e"),b;a.appendTo("body");b=a.css("backgroundImage");a.css("borderTopColor")!=a.css("borderRightColor")&&(null==b||"none"!=b&&"url (invalid-url:)"!=b)||$("body").addClass("oj-hicontrast");a.remove()});w.q={};w.q.T3="\x3chtml\x3e";w.q.S3="\x3c/html\x3e";
w.q.l4={SPAN:1,B:1,I:1,EM:1,BR:1,HR:1,LI:1,OL:1,UL:1,P:1,TT:1,BIG:1,SMALL:1,PRE:1};w.q.k4={"class":1,style:1};w.q.yia=function(a){return 0===a.indexOf(w.q.T3)&&a.lastIndexOf(w.q.S3)===a.length-7?!0:!1};w.q.Vga=function(a){var b=$(document.createElement("span")).get(0);(b.innerHTML=a)&&0<=a.indexOf("\x3c")&&w.q.lR(b);return b};
w.q.lR=function(a){for(var b=a.childNodes,c,d,e,f,h,k=b.length-1;0<=k;){if((c=b.item(k))&&1===c.nodeType)if(w.q.l4[c.nodeName]){d=c.attributes;for(h=d.length-1;0<=h;h--)e=d[h],(f=void 0!==$(c).attr(e.name))&&(w.q.k4[e.name]||c.removeAttribute(e.nodeName));w.q.lR(c)}else c&&a.removeChild(c);k--}};w.q.gl=function(a,b){for(var c=b.parentNode;c;){if(c==a)return!0;c=c.parentNode}return!1};w.q.vo=function(a,b){return b==a?!0:w.q.gl(a,b)};
w.q.Ch=function(a,b,c){var d=$(a),e=d.data(w.q.kv);null==e&&(e=new zd(a),d.data(w.q.kv,e),e.start());e.addListener(b,c)};w.q.Hi=function(a,b){var c=$(a),d=c.data(w.q.kv);null!=d&&(d.removeListener(b),d.hl()&&(d.stop(),c.removeData(w.q.kv)))};w.q.UZ=function(a){$(a).find(".oj-helper-detect-expansion").parent().each(function(a,c){var d=$(c).data(w.q.kv);null!=d&&d.Gm(!0)})};w.q.Hm=function(a){return"Mac"===w.Ic.zm().os?a.metaKey:a.ctrlKey};
w.q.dispatchEvent=function(a,b){var c=a.disabled;try{a.disabled=!1,a.dispatchEvent(b)}finally{a.disabled=c}};w.q.zba=(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(a){return window.setTimeout(a,0)}).bind(window);w.q.kR=(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||function(a){return window.clearTimeout(a)}).bind(window);
function zd(a){function b(a){var b=!1;if(null!=s.offsetParent){var d=s.offsetWidth,e=s.offsetHeight;if(q!==d||r!==e)n=m,f(d,e),b=!0,a&&c(!0)}return b}function c(b){var c=a.offsetWidth,d=a.offsetHeight;h.has()&&(b?(null!==p&&w.q.kR(p),p=w.q.zba(function(){p=null;h.fire(c,d)})):h.fire(c,d));for(b=0;b<k.length;b++)k[b].kD()(c,d)}function d(a){a.stopPropagation();!b(!0)&&0<n&&null!=s.offsetParent&&(0==s.scrollLeft||0==s.scrollTop)&&(n--,f(q,r))}function e(){c(!1)}function f(a,b){q=a;r=b;var c=s.firstChild.style,
d=1;do c.width=a+d+"px",c.height=b+d+"px",s.scrollLeft=s.scrollTop=d,d++;while((0==s.scrollTop||0==s.scrollLeft)&&5>=d);u.scrollLeft=a;u.scrollTop=b}var h=$.Callbacks(),k=[],l=[],m=2,n=0,p=null,q=null,r=null,s=null,u=null,v=null,y=null;this.addListener=function(a,b){void 0===b||0===b?h.add(a):(k.push(new Ad(a,b)),l.push(a))};this.removeListener=function(a){var b=l.indexOf(a);0<=b?(l.splice(b,1),k.splice(b,1)[0].stop()):h.remove(a)};this.hl=function(){return!h.has()&&0==l.length};this.start=function(){y=
d.bind(this);if(a.attachEvent)v=e.bind(this),a.attachEvent("onresize",v);else{var b=a.childNodes[0];s=document.createElement("div");s.className="oj-helper-detect-expansion";var c=document.createElement("div");s.appendChild(c);null!=b?a.insertBefore(s,b):a.appendChild(s);s.addEventListener("scroll",y,!1);u=document.createElement("div");u.className="oj-helper-detect-contraction";b=document.createElement("div");b.style.width="200%";b.style.height="200%";u.appendChild(b);a.insertBefore(u,s);u.addEventListener("scroll",
y,!1);this.Gm(!1)}};this.stop=function(){null!=p&&(w.q.kR(p),p=null);null!=s?(s.removeEventListener("scroll",y),u.removeEventListener("scroll",y),a.removeChild(s),a.removeChild(u)):a.detachEvent("onresize",v)};this.Gm=function(a){var c=b(a);a&&!c&&null!=s.offsetParent&&f(q,r)}}w.q.kv="_ojResizeTracker";w.q.ID=function(a){return/^[A-Za-z][0-9A-Z_a-z-]*$/.test(a)};
function Ad(a,b){function c(){e=Array.prototype.slice.call(arguments);null==f&&(f=window.setTimeout(d,b))}function d(){a.apply(null,e);f=null}var e=null,f=null;this.kD=function(){return c};this.stop=function(){null!=f&&(window.clearTimeout(f),f=null)}}w.q.ud=function(){return"ontouchstart"in window||0<navigator.msMaxTouchPoints||0<navigator.maxTouchPoints};w.q.V1=function(a){w.q.Wba=a};w.q.unwrap=function(a,b){var c=w.q.Wba;c&&c==a.parent().get(0)||(1<arguments.length?b.replaceWith(a):a.unwrap())};
w.q.l0=function(a){function b(a){var b=a.target,c=$(b),d=b.getBoundingClientRect(),e=w.q.pD(),n="ltr"===w.q.Gj();return n&&("HTML"===b.nodeName||"visible"!==c.css("overflow-x"))&&a.clientX>d.right-e?!0:!n&&"HTML"===b.nodeName&&a.clientX>d.left-e?!0:!n&&"visible"!==c.css("overflow-x")&&a.clientX<d.left+e?!0:("HTML"===b.nodeName||"visible"!==c.css("overflow-y"))&&a.clientY>d.bottom-e?!0:!1}if(!("clientX"in a&&"clientY"in a))return!1;var c=w.Ic.zm();if("Android"===c.os||"IOS"===c.os)a=!1;else{var d;
if("gecko"===c.engine)try{d=a.originalTarget.localName?!1:!0}catch(e){d=!0}else d="webkit"===c.engine?b(a):"ie"===c.browser?b(a):!1;a=d}return a};w.q.pD=function(){var a=w.q.Eea;if($.isNumeric(a))return a;a=$("\x3cdiv /\x3e");$(document.body).append(a);a.width(50).height(50).css({overflow:"scroll",visibility:"hidden",position:"absolute"});var b=$("\x3cdiv /\x3e");b.height(1);a.append(b);var b=b.width(),c=a.width();a.remove();return a=w.q.Eea=c-b};
w.q.Gj=function(){var a=document.documentElement.getAttribute("dir");a&&(a=a.toLowerCase());return"rtl"===a?"rtl":"ltr"};w.q.Bm=function(a){return isNaN(a)?a&&0<a.length&&"auto"!=a?(a=parseInt(a,10),isNaN(a)&&(a=0),a):0:a};w.q.Cha=function(a){return isNaN(a)?a&&0<a.length?(a=parseFloat(a),isNaN(a)&&(a=0),a):0:a};w.q.HF="oj-logical-parent";w.q.Jha=function(a){if(a)return a.data(w.q.HF)};w.q.W1=function(a,b){a&&(null===b?a.removeData(w.q.HF):a.data(w.q.HF,b))};
w.q.Aia=function(a,b){w.i.vL(a);w.i.vL(b);for(var c=b;c;){if(c==a)return!0;var d=w.q.Jha($(c)),c=d?d[0]:c.parentNode}return!1};w.q.Wja=function(a){var b=document.createElement("a");b.href=a;a=b.protocol;null!=a&&(a=a.toLowerCase());if(0>["http:","https:"].indexOf(a))throw a+" is not a valid URL protocol";};w.q.Kfa=function(){$(document.body).hasClass("oj-hybrid")&&document.body.addEventListener("contextmenu",function(a){a.preventDefault()},!0)};w.q.Kfa();w.q.iF=750;
w.q.M1=function(){function a(){b=Date.now()}var b=0;document.addEventListener("touchend",a,!0);document.addEventListener("touchcancel",a,!0);return function(){return 500>Date.now()-b}}();
w.q.jja=function(){var a=0,b,c=w.q.iF+600;document.addEventListener("mousedown",function(){var c=Date.now();if(!b||c>a+w.q.iF)a=c,b=!1},!0);document.addEventListener("touchstart",function(){a=Date.now();b=!0},!0);document.addEventListener("mouseup",function(){a=Date.now();b=!1},!0);document.addEventListener("touchend",function(){a=Date.now();b=!1},!0);return function(){return Date.now()-a<(b?c:600)}}();
w.q.lE=function(){var a=0,b=(w.Ob.Tc("oj-focus-config")||{}).focusHighlightPolicy;return function(c){var d=c.element;if(c.remove){d.removeClass("oj-focus oj-focus-highlight");var e=d.data("ojFocusable");void 0!=e&&d.off(".ojFocusable"+(""+e).split(",").join(" .ojFocusable")).removeData("ojFocusable")}else{var f=c.afterToggle||$.noop,e=function(a){a.addClass("oj-focus");f("focusin")},h=function(a){a.addClass("oj-focus");var d;a:{d=c.getFocusHighlightPolicy;var e=c.recentPointer;switch(d?d():b){case "all":d=
!0;break a;case "none":d=!1;break a;default:d=!(w.q.jja()||e&&e())}}d&&a.addClass("oj-focus-highlight");f("focusin")};(c.setupHandlers||function(b,e){function f(a){e($(a.currentTarget))}function h(a){b($(a.currentTarget))}var p=c.component;if(p)p._on(d,{focusin:h,focusout:f});else{var p=a++,q=d.data("ojFocusable");d.data("ojFocusable",void 0==q?p:q+","+p);q={};p=".ojFocusable"+p;q["focusin"+p]=h;q["focusout"+p]=f;d.on(q)}})(c.applyHighlight?h:e,function(a){a.removeClass("oj-focus oj-focus-highlight");
f("focusout")})}}}();function Bd(a){this.Init(a)}H(Bd,x,"oj.ComponentMessaging");var Cd={NONE:"none",gz:"notewindow",Vu:"placeholder",Su:"inline"},Dd={};function Ed(a,b){a&&"function"===typeof b&&(Dd[a]=b)}Bd.prototype.Init=function(a){Bd.o.Init.call(this);this.ca=a;this.uv=!1;var b=Fd(this);a=b[Cd.gz];var c=b[Cd.NONE],d=b[Cd.Vu],b=b[Cd.Su],e={};0<a.length&&(e[Cd.gz]=Gd(Cd.gz,a));0<d.length&&(e[Cd.Vu]=Gd(Cd.Vu,d));0<b.length&&(e[Cd.Su]=Gd(Cd.Su,b));e[Cd.NONE]=Gd(Cd.NONE,c);this.co=e};
Bd.prototype.lo=function(a,b,c){var d=this;w.i.xf(c);this.qc=a;this.gH=b;this.GB=w.Nb.Fd(this.GB||{},c);this.uv?Hd(this):($.each(this.co,function(a,b){b.lo(d)}),this.uv=!0)};Bd.prototype.update=function(a){w.i.xf(a);w.i.kZ(this.uv);this.GB=w.Nb.Fd(this.GB||{},a);this.uv&&$.each(this.co,function(b,c){c.FN(a)&&c.update()})};Bd.prototype.Zk=function(){$.each(this.co,function(a,b){b.Zk()});this.uv=!1;this.gH=this.qc=this.ca=null;this.co={}};Bd.prototype.close=function(){$.each(this.co,function(a,b){b.close()})};
function Gd(a,b){return new (Dd[a]||Dd[Cd.NONE])(b)}Bd.prototype.ai=function(){return this.GB||{}};function Fd(a){var b={},c=!1,d,e=a.ca.options.placeholder,f,h,k,l,m=a.ca.options.displayOptions||{},n={};h=Object.keys(m);for(k=0;k<h.length;k++){d=h[k];a=m[d];c=!1;f=d+"";if(Array.isArray(a))for(l=0;l<a.length;l++)d=a[l],c||(c=Id(f,d,e,n));else"string"===typeof a&&(c||(c=Id(f,a,e,n)));c||(n[f]=Cd.NONE)}$.each(Cd,function(a,c){b[c]=[]});$.each(n,function(a,c){b[c].push(a)});return b}
function Id(a,b,c,d){var e=!1;switch(b){case Cd.Vu:"converterHint"!==a||e||c||(d[a]=b,e=!0);break;case Cd.Su:"messages"!==a||e||(d[a]=b,e=!0);break;default:e||(d[a]=b,e=!0)}return e}function Hd(a){var b=Fd(a),c;$.each(b,function(b,e){b+="";c=a.co[b];e&&0<e.length?c?c&&c.mr(e):(c=Gd(b,e),a.co[b]=c,c.lo(a)):c&&Cd.NONE!==b&&(c.Zk(),delete a.co[b])})}function Kd(a){this.Init(a)}H(Kd,x,"oj.MessagingStrategy");Kd.prototype.Init=function(a){w.i.QC(a);Kd.o.Init.call(this);this.Ip=a};
Kd.prototype.lo=function(a){this.Rl=a};Kd.prototype.Zk=function(){};Kd.prototype.close=function(){};Kd.prototype.mr=function(a){this.Init(a)};Kd.prototype.FN=function(){return!0};Kd.prototype.update=function(){};function Ld(a){return a.Rl.qc||null}function Md(a){return a.Rl.ca||null}function Nd(a){var b=[];(a=(a=a.ai())&&a.FZ)&&b.push(a);return b}function Od(a){var b=[];a=a.ai();$.each(a&&a.Zja||[],function(a,d){b.push(d)});return b}function Pd(a){return(a=a.ai())&&a.title||""}
function Qd(a){return(a=a.ai())&&a.C2||null}function Rd(a){return(a=Sd(Qd(a)))&&0<a.length?!0:!1}function Td(a){return-1!==a.Ip.indexOf("converterHint")?!0:!1}Kd.prototype.ai=function(){return this.Rl?this.Rl.ai():{}};function Ud(a){this.Init(a)}Ed(Cd.NONE,Ud);H(Ud,Kd,"oj.DefaultMessagingStrategy");
Ud.prototype.update=function(){Ud.o.update.call(this);var a=Ld(this),b=Vd(Qd(this)),c=[],d=[],e=!1,f=Md(this).widget();a&&(Qd(this).Qn?(c.push("oj-warning"),d.push("oj-invalid"),e=!0):Rd(this)&&b===fd.WARNING?(c.push("oj-invalid"),d.push("oj-warning")):(c.push("oj-invalid"),c.push("oj-warning")),f.removeClass(c.join(" ")).addClass(d.join(" ")),(this.Rl.gH||null).attr({"aria-invalid":e}))};
Ud.prototype.Zk=function(){Md(this).widget().removeClass("oj-invalid").removeClass("oj-warning");(this.Rl.gH||null).removeAttr("aria-invalid");Ud.o.Zk.call(this)};function Wd(a){this.Init(a)}Ed(Cd.Vu,Wd);H(Wd,Kd,"oj.PlaceholderMessagingStrategy");Wd.prototype.Init=function(a){Wd.o.Init.call(this,a)};Wd.prototype.lo=function(a){Wd.o.lo.call(this,a);Xd(this)};Wd.prototype.mr=function(a){Wd.o.mr.call(this,a);Xd(this)};Wd.prototype.FN=function(a){return a&&void 0!==a.FZ?!0:!1};
Wd.prototype.update=function(){Wd.o.update.call(this);Xd(this)};function Xd(a){var b=Ld(a);Td(a)&&b&&(b=Nd(a),b=b.length?b[0]:"",Md(a).option({placeholder:b},{_context:{wia:!0}}))}function Yd(a,b){this.Init(a,b)}H(Yd,x,"oj.ComponentValidity");Yd.prototype.Init=function(a,b){Yd.o.Init.call(this);Zd(this,b)};function Sd(a){return a.Fw}function Vd(a){return a.nca}Yd.prototype.update=function(a,b){Zd(this,b)};
function Zd(a,b){a.Y6=b;for(var c=a.Y6||[],d=[],e,f=0;f<c.length;f++)e=c[f],e instanceof jd&&!e.tZ()||d.push(e);a.Fw=d;a.nca=id(a.Fw);a.Qn=id(a.Fw)>=fd.ERROR?!0:!1}w.Jc={};w.Jc.fQ=":tabbable";w.Jc.WC=function(a){var b=document.activeElement;return a&&b?w.q.vo(a,b):!1};w.Jc.Nx=function(a){a.focus()};w.Jc.$L=function(a){(a=w.Jc.q_(a))&&w.Jc.Nx(a)};w.Jc.q_=function(a){var b=$(a);return b.is(w.Jc.fQ)?a:(a=b.find(w.Jc.fQ))&&0<a.length?a[0]:null};
w.Jc.au=function(a){return $(a).is(":focusable")&&("A"!==a.nodeName||a.hasAttribute("tabindex")||"safari"!==w.Ic.zm().browser)?!0:!1};w.Pi={};t("Test",w.Pi,w);w.Pi.ready=!1;t("Test.ready",w.Pi.ready,w);w.Pi.lha=function(a){var b=a;if(w.Ca.ed(a))try{b=JSON.parse(a)}catch(c){return null}return b&&b.element&&(a=$(b.element))?(a=w.Components.Pb(a[0],b.component),delete b.element,a("getNodeBySubId",b)):null};t("Test.domNodeForLocator",w.Pi.lha,w);w.Pi.nM=function(){return w.Q.nM()};
t("Test.getOpenPopupCount",w.Pi.nM,w);w.Pi.QL=function(){return w.Q.QL()};t("Test.findOpenPopups",w.Pi.QL,w);w.Pi.IL=function(a,b){return w.Q.IL(a,b)};t("Test.compareStackingContexts",w.Pi.IL,w);w.Components.xa("baseComponent",null,{properties:{contextMenu:{type:"string"},rootAttributes:{type:"Object"},translations:{type:"Object"}},methods:{getNodeBySubId:{},option:{},refresh:{}},extension:{_widgetName:"baseComponent"}});w.Uc={};t("EditableValueUtils",w.Uc,w);
w.Uc.Bha=function(a,b){var c,d,e={};if(a&&b)switch(b){case "disabled":c=void 0!==a.attr("disabled")?!!a.prop("disabled"):void 0;break;case "pattern":c=a.prop("pattern")||void 0;break;case "placeholder":c=a.prop("placeholder")||void 0;break;case "readonly":c=void 0!==a.attr("readonly")?!!a.prop("readonly"):void 0;break;case "required":c=a.attr("required");d=a.prop("required");c=void 0!==c?void 0!==d?!!d:!!c:void 0;break;case "title":c=void 0!==a.attr("title")?a.prop("title"):void 0;break;case "value":c=
a.val()||void 0;break;default:c=a.attr(b)||void 0}void 0!==c?(e.YZ=!0,e.value=c):e.YZ=!1;return e};w.Uc.fl=function(a,b,c,d){for(var e={},f=0;f<a.length;f++){var h,k=a[f];h=k.U;var l=k.option||h,m=k.We,k=k.yc,n=c.element,p=c.options[l];void 0===b[l]&&(p=c.options[l],h=w.Uc.Bha(n,h),h.YZ&&(h=h.value,m&&("boolean"===typeof m?h=w.Uc.Yga(l,h):"function"===typeof m&&(h=m.call(c,h))),e[l]=h));m=l in e?e[l]:p;k&&"boolean"===typeof k&&w.Uc.Xja(l,m)}null!=d&&d(e);c.option(e,{_context:{kc:!0,Ia:!0}})};
w.Uc.Xja=function(a,b){var c=!1;switch(a){case "required":null!==b&&"boolean"!==typeof b&&(c=!0);break;case "readOnly":case "disabled":null!==b&&"boolean"!==typeof b&&(c=!0)}if(c)throw"Option '"+a+"' has invalid value set: "+b;};w.Uc.Yga=function(a,b){var c=b;switch(a){case "required":c=b?!0:!1}return c};w.Uc.AE=function(a,b){if(a&&b){var c=b["class"];c&&a.addClass(c);if(c=b.style){var d=a.attr("style");d?a.attr("style",d+";"+c):a.attr("style",c)}}};function $d(a){this.Init(a)}Ed(Cd.gz,$d);
H($d,Kd,"oj.PopupMessagingStrategy");
var ae={ojRadioset:{position:"launcher",Ej:{open:"focusin mouseenter press",close:"mouseleave"}},ojCheckboxset:{position:"launcher",Ej:{open:"focusin mouseenter press",close:"mouseleave"}},ojInputText:{position:"launcher",Ej:{open:"focusin"}},ojTextArea:{position:"launcher",Ej:{open:"focusin"}},ojInputPassword:{position:"launcher",Ej:{open:"focusin"}},ojSwitch:{position:"launcher",Ej:{open:"focusin mouseover",close:"mouseout"}},ojSlider:{position:"launcher",Ej:{open:"focusin mouseover",close:"mouseout"}},
"default":{position:"launcher-wrapper",Ej:{open:"focusin"}}};$d.prototype.lo=function(a){$d.o.lo.call(this,a);if(!this.LB){var b,c,d;a=Ld(this);var e;c=(c=ae[Md(this).widgetName])?c.Ej:ae["default"].Ej;c.open&&(b=this.LB,b||(b=this.LB=$.proxy(this.tW,this)),e=c.open.indexOf("press"),d=c.open.replace("press"," "),a.on(d,b),-1!==e&&(d={recognizers:[[Hammer.Press,{time:750}]]},a.ng(d).on("press",b)));c.close&&(b=this.uR,b||(b=this.uR=$.proxy(this.cH,this)),a.on(c.close,b))}};
$d.prototype.mr=function(a){$d.o.mr.call(this,a);be(this)};$d.prototype.update=function(){$d.o.update.call(this);be(this)};
$d.prototype.Zk=function(){var a,b,c,d,e;a=(a=ae[Md(this).widgetName])?a.Ej:ae["default"].Ej;if(c=a.open)b=this.LB,delete this.LB,b&&(e=c.indexOf("press"),d=c.replace("press"," "),c=Ld(this),c.off(d,b),this.mk&&(c[0].removeEventListener("click",this.mk,!0),c[0].removeEventListener("change",this.mk,!0),delete this.mk),-1!==e&&(c.ng().off("press"),c.removeData("ojHammer")));(b=a.close)&&(a=this.uR)&&Ld(this).off(b,a);this.cH();w.xd.kha();$d.o.Zk.call(this)};$d.prototype.close=function(){this.cH()};
g=$d.prototype;g.cH=function(){this.hd&&w.Components.FD(this.hd)&&this.hd.ojPopup("close")};g.tW=function(a){var b,c;c=Ld(this);b=Md(this).options;var d=b.readOnly||!1;if(!b.disabled&&!d&&(b=ce(this),!w.Ca.ti(b))){var d=de(this),e=d.ojPopup("isOpen");e?e&&(a=d[0],a.innerHTML="",a.innerHTML=b,d.ojPopup("refresh")):("press"===a.type&&ee(this,c),a=d[0],a.innerHTML="",a.innerHTML=b,d.ojPopup("open",c))}};
function ee(a,b){var c=!0;a.mk=function(a){c&&(a.preventDefault(),a.stopPropagation(),"click"===a.type&&(c=!1))};b[0].addEventListener("click",a.mk,!0);b[0].addEventListener("change",a.mk,!0);b.one("touchend",function(){setTimeout(function(){c=!1},50)})}function be(a){var b,c,d=!1,e;a.hd&&w.Components.FD(a.hd)&&(e=de(a),d=e.ojPopup("isOpen"),b=ce(a),c=document.activeElement===Ld(a)[0]?!0:!1,d?b?(a=e[0],a.innerHTML="",a.innerHTML=b,e.ojPopup("refresh")):e.ojPopup("close"):c&&b&&a.tW(void 0))}
function de(a){var b;if(a.hd)return a.hd;b=w.xd.y_();var c,d;(c=(c=ae[Md(a).widgetName])?c.position:ae["default"].position)&&("launcher"===c?d=Ld(a):"launcher-wrapper"===c&&(d=Ld(a).parent()));d||(d=Md(a).widget());b.ojPopup("option","position",{my:"start bottom",at:"end top",collision:"flipcenter",of:d});b.ojPopup("option","close",$.proxy(a.kda,a));b.ojPopup("option","open",$.proxy(a.lda,a));a.hd=b;return a.hd}
g.lda=function(a){var b=$(a.target),c=this;window.setTimeout(function(){w.Components.FD(b)?b.ojPopup("option","autoDismiss","focusLoss"):delete c.hd},10)};g.kda=function(a){var b=Ld(this);a=$(a.target);w.Components.FD(a)&&(a.ojPopup("option","autoDismiss","none"),a.ojPopup("option","open",null),a.ojPopup("option","close",null));this.mk&&(b[0].removeEventListener("click",this.mk,!0),b[0].removeEventListener("change",this.mk,!0),delete this.mk);delete this.hd;a.children().remove()};
function ce(a){var b=!1,c=Md(a).document[0],d=[],e="";-1!==a.Ip.indexOf("messages")&&d.push(a.yG(c));(Td(a)||-1!==a.Ip.indexOf("validatorHint")||-1!==a.Ip.indexOf("title"))&&d.push(fe(a,c));$.each(d,function(a,d){d&&(b?e=e.concat(w.La.Nha(c)):b=!0,e=e.concat(d))});return e}g.yG=function(a){var b="",c=Vd(Qd(this));Rd(this)&&(b=Sd(Qd(this)),b=w.La.pZ(a,b,c,!1));return b};
function fe(a,b){var c;c=[];var d="",e;Td(a)&&(c=Nd(a),c=c.length?c[0]:"",d+=w.La.AL(b,"oj-form-control-hint-converter",c,!1));if(-1!==a.Ip.indexOf("validatorHint"))for(c=Od(a),e=0;e<c.length;e++)d+=w.La.AL(b,"oj-form-control-hint-validator",c[e],!1);-1!==a.Ip.indexOf("title")&&(d+=w.La.AL(b,"oj-form-control-hint-title",Pd(a),!0));return d?"\x3cdiv class\x3d'oj-form-control-hints'\x3e"+d+"\x3c/div\x3e":""}w.La={};
w.La.AL=function(a,b,c,d){var e="oj-form-control-hint",f;c&&(f=$(a.createElement("div")),f.addClass(e+(" "+b)),f.append(w.La.XT(a,c,d)));return f?f.get(0).outerHTML:""};w.La.G_=function(a){var b;switch(a){case fd.FATAL:b=w.ba.r("oj-message.fatal");break;case fd.ERROR:b=w.ba.r("oj-message.error");break;case fd.WARNING:b=w.ba.r("oj-message.warning");break;case fd.INFO:b=w.ba.r("oj-message.info");break;case fd.CONFIRMATION:b=w.ba.r("oj-message.confirmation")}return b};
w.La.Nha=function(a){return(a=$(a.createElement("hr")))?a.get(0).outerHTML:""};w.La.pZ=function(a,b,c,d){var e="",f,h,k=[],l={},m;for(h=0;h<b.length;h++)f=b[h],k=f instanceof dd?f:new dd(f.summary,f.detail,f.severity),m=gd(k.severity),l[m]||(l[m]=[]),l[m].push(k);for(h=c;h>=fd.CONFIRMATION;h--)for(k=l[h]||[],b=0;b<k.length;b++)f=k[b],w.i.Pc(f,dd),m=gd(f.severity),c=w.La.G_(m),c=f.summary||c,f=f.detail||"",e=e.concat(w.La.oZ(a,c,f,m,d));return e};
w.La.oZ=function(a,b,c,d,e){var f,h;h=w.La.G_(d);f=$(a.createElement("div"));f.addClass(w.La.d5);e&&f.addClass(w.La.T9(d));e=$(a.createElement("span"));e.addClass(w.La.S9(d)).attr("title",h).attr("role","img");f.append(e);d=$(a.createElement("span"));d.addClass(w.La.g5);h=$(a.createElement("div"));h.addClass(w.La.k5).text(b);d.append(h);c&&(b=w.La.XT(a,c,!0),a=$(a.createElement("div")),a.addClass(w.La.h5).append(b),d.append(a));f.append(d);return f?f.get(0).outerHTML:""};
w.La.S9=function(a){var b;switch(a){case fd.FATAL:b=w.La.cQ;break;case fd.ERROR:b=w.La.cQ;break;case fd.WARNING:b=w.La.m5;break;case fd.INFO:b=w.La.j5;break;case fd.CONFIRMATION:b=w.La.f5}return w.La.x3+b};w.La.T9=function(a){switch(a){case fd.FATAL:a=w.La.bQ;break;case fd.ERROR:a=w.La.bQ;break;case fd.WARNING:a=w.La.l5;break;case fd.INFO:a=w.La.i5;break;default:a=w.La.e5}return a};
w.La.XT=function(a,b,c){var d=null;w.Ca.ed(b)&&(c&&w.q.yia(b)?d=w.q.Vga(b.substring(6,b.length-7)):(d=a.createElement("span"),d.textContent=b));return d};w.La.x3="oj-component-icon oj-message-status-icon ";w.La.d5="oj-message";w.La.k5="oj-message-summary";w.La.h5="oj-message-detail";w.La.g5="oj-message-content";w.La.cQ="oj-message-error-icon";w.La.m5="oj-message-warning-icon";w.La.j5="oj-message-info-icon";w.La.f5="oj-message-confirmation-icon";w.La.bQ="oj-message-error";w.La.l5="oj-message-warning";
w.La.i5="oj-message-info";w.La.e5="oj-message-confirmation";w.xd={};w.xd.y_=function(){var a=w.xd.LT(),b=a.find("."+w.xd.bG);0===b.length?(b=$(w.xd.M9()).hide(),b.appendTo(a),b.ojPopup({rootAttributes:{"class":w.xd.n5},initialFocus:"none",tail:"simple",autoDismiss:"none",modality:"modeless"})):b=$(b[0]);return b};w.xd.kha=function(){var a;0<w.xd.r9()&&(a=w.xd.y_(),a.ojPopup("destroy"),a.remove())};
w.xd.LT=function(){var a=$("#"+w.xd.DP);if(0<a.length)return a;a=$("\x3cdiv\x3e");a.attr("id",w.xd.DP);a.attr("role","presentation");a.appendTo($(document.body));return a};w.xd.r9=function(){return w.xd.LT().find("."+w.xd.bG).length};w.xd.M9=function(){return"\x3cdiv class\x3d'"+w.xd.bG+"'\x3e\x3c/div\x3e"};w.xd.bG="oj-messaging-popup-container";w.xd.n5="oj-messaging-popup";w.xd.DP="__oj_messaging_popup_pool";
w.sa("oj._ojLabel",$.oj.baseComponent,{version:"1.0.0",defaultElement:"\x3clabel\x3e",widgetEventPrefix:"oj",options:{ariaRequiredUnsupported:!1,describedById:null,help:{definition:null,source:null},required:!1,rootAttributes:null},ma:{mQ:"tooltipHelp",nQ:"tooltipRequired"},widget:function(){return this.wr},refresh:function(){this._super();this.XW();this.UW()},Vd:function(a,b){this._super(a,b);this.H6();this.TG()},_ComponentCreate:function(){this._super();this.vC=this.eventNamespace+"TouchEatClick";
this.Is=this.eventNamespace+"HelpDefPopup";this.sn=w.q.ud();this.x8()},mv:function(a){this.jx=a.attr("class")},Vr:function(){this.jx?this.element.attr("class",this.jx):this.element.removeAttr("class")},xg:function(){this._superApply(arguments);this.bH()},Xi:function(){this._superApply(arguments);this.bH()},x8:function(){var a=this.options,b=a.ariaRequiredUnsupported,c=null,d=a.required,a=this.iW();this.wr=this.element.wrap(this.J7()).closest(".oj-component");this.Dca();a&&(c=this.kH());this.KR(c);
d&&(a=this.nH(),b?c.appendChild(a):this.element.before(a))},KR:function(a){this.Lw()&&(this.xba(a),this.i6())},H6:function(){var a=this.options.required;if(null!==a&&"boolean"!==typeof a)throw Error("Option 'required' has invalid value set: "+a);},TG:function(){var a=this.options;if(this.iW()&&null==a.describedById)throw Error("ojLabel's describedById option must be set if help source is set\n\r\n      or (ariaRequiredUnsupported and required is set).");},Dca:function(){var a;a=this.element.attr("class");
var b,c;if(a&&(a=a.split(/\s+/),null!=a)){c=a.length;for(var d=0;d<c;d++)b=a[d],0<b.indexOf("-label")&&(this.wr.addClass(b),this.element.removeClass(b))}},kH:function(){var a=this.wr.find(".oj-label-group"),b=document.createElement("span");b.setAttribute("id",this.options.describedById);a.prepend(b);return b},J7:function(){var a,b,c=this.options.rootAttributes;b="oj-label oj-component";c&&(a=c["class"]);null!==a&&(b=b+" "+a);a=document.createElement("div");a.className=b;b=document.createElement("div");
b.className="oj-label-group";a.appendChild(b);return a},nH:function(){var a=this.r(this.ma.nQ),b=document.createElement("span");b.className="oj-label-required-icon oj-component-icon";b.setAttribute("role","img");b.setAttribute("title",a);b.setAttribute("aria-label",a);return b},o7:function(a,b){var c;if(this.Lw()){c=document.createElement("a");c.setAttribute("tabindex","0");c.setAttribute("target","_blank");c.className="oj-label-help-icon-anchor oj-label-help-icon oj-component-icon oj-clickable-icon-nocontext";
if(b)try{w.q.Wja(b),c.setAttribute("href",b)}catch(d){throw Error(d+". The source option ("+b+") is invalid.");}else c.setAttribute("role","img");a?c.setAttribute("aria-label",a):c.setAttribute("aria-label",this.r(this.ma.mQ))}return c},i6:function(){var a,b=this.options.help.definition,c,d;d=this.widget().find(".oj-label-help-icon-anchor");if(0!=d.length){a=b?b:this.r(this.ma.mQ);this.$p?(c=$(document.getElementById(this.$p)))&&c.text(a):(b=document.createElement("div"),b.style.display="none",b.className=
"oj-help-popup-container",c=$(b),c.uniqueId(),this.$p=c.prop("id"),c.text(a),a=document.getElementsByTagName("body")[0],a.appendChild(b));this.sn&&(this.EH&&this.widget().off(this.vC),this.EH=function(){return!1});var e=this;this.MB||(this.MB=function(a){e.Baa(a,c,d)});this.dH||(this.dH=function(){e.bH()});if(this.sn)d.ng({recognizers:[[Hammer.Press,{time:750}]]}).on("press",this.MB);else d.on("focusin"+this.Is+" mousedown"+this.Is+" mouseover"+this.Is,this.MB),d.on("mouseout"+this.Is,this.dH);b=
{my:"start bottom",at:"end top",collision:"flipcenter",of:d};c.ojPopup({position:b,modality:"modeless",rootAttributes:{"class":"oj-help-popup"}})}},Baa:function(a,b,c){if(this.sn)if("press"===a.type){var d=this.widget();d.on("click"+this.vC,this.EH);var e=this;b.on("ojclose",function(){d.off(e.vC)})}else b.off("ojclose");b.ojPopup("isOpen")||b.ojPopup("open",c)},bH:function(){var a;null!=this.$p&&(a=$(document.getElementById(this.$p)),a.ojPopup("close"))},jX:function(a){this.sn&&(this.widget().off(this.vC),
this.EH=null,a.ng().off(this.Is));a.off(this.Is);this.dH=this.MB=null},kX:function(){var a;if(null!=this.$p){if(a=$(document.getElementById(this.$p)))a.ojPopup("destroy"),a.remove();this.$p=null}},xba:function(a){var b,c;this.Lw()&&(b=this.options.help.definition,c=this.options.help.source,$(a).prepend(this.o7(b,c)))},iW:function(){var a=this.options;return this.Lw()||a.ariaRequiredUnsupported&&a.required},Lw:function(){var a=this.options;return a.help.source||a.help.definition},UW:function(){var a,
b;this.TG();a=this.wr.find(".oj-label-help-icon");1===a.length&&(this.jX(a),this.kX(),a.remove());b=this.Lw();a=document.getElementById(this.options.describedById);b&&null==a?a=this.kH():b||null===a||0===a.children.length&&a.parentNode.removeChild(a);this.KR(a)},XW:function(){var a,b;b=this.wr.find(".oj-label-required-icon");a=this.options.describedById;this.options.required?(this.TG(),0===b.length?this.options.ariaRequiredUnsupported?(b=document.getElementById(a),null==b&&(b=this.kH()),b.appendChild(this.nH())):
this.element.before(this.nH()):(a=this.r(this.ma.nQ),b.attr("title",a))):(b.remove(),b=document.getElementById(a),null!==b&&0===b.children.length&&b.parentNode.removeChild(b))},_setOption:function(a,b){this._superApply(arguments);"required"===a&&this.XW();"help"===a&&this.UW()},getNodeBySubId:function(a){var b;b=this._super(a);b||(a=a.subId,"oj-label-help-icon"===a&&(b=this.widget().find(".oj-label-help-icon")[0]),"oj-label-required-icon"===a&&(b=this.widget().find(".oj-label-required-icon")[0]));
return b||null},getSubIdByNode:function(a){var b=null;null!=a&&(a===this.widget().find(".oj-label-help-icon")[0]?b={subId:"oj-label-help-icon"}:a===this.widget().find(".oj-label-required-icon")[0]&&(b={subId:"oj-label-required-icon"}));return b||this._superApply(arguments)},_destroy:function(){var a=this.wr.find(".oj-label-help-icon");this.jX(a);this.kX();w.q.unwrap(this.element,this.wr);return this._super()}});
var ge={J2:1,aO:2,cO:3,qO:4,rO:5,sO:6,e3:7,j3:8,JO:9,KO:10,m3:11},ie={qo:!0,Li:ge.aO},je={qo:!0,Li:ge.cO},ke={qo:!0,Li:ge.sO},le={qo:!0,Li:ge.qO},me={qo:!0,Li:ge.rO},ne={qo:!0,Li:ge.KO};
w.sa("oj.editableValue",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{disabled:!1,displayOptions:void 0,help:{definition:null,source:null},messagesCustom:void 0,messagesHidden:void 0,messagesShown:void 0,required:!1,title:"",validators:void 0,value:void 0},getNodeBySubId:function(a){return this._super(a)},isValid:function(){void 0===this.nL&&(this.nL=this.d$());return this.nL},refresh:function(){this._super();this.xS(!0)},reset:function(){this.iA();this.ix(this.Yi.e3);this.eK(this.options.value,
!0)},showMessages:function(){var a=[],b,c,d=this.options.messagesHidden,e=!1;for(b=0;b<d.length;b++)e=!0,c=d[b],c instanceof jd&&c.Za&&"hidden"===c.Za.display&&(c.Za.display="shown"),a.push(c.clone());e&&(this.Hv("messagesHidden"),this.FC("messagesShown",a))},validate:function(){return this.rb(this.Tf(),null,this.ov)},pv:{fO:1,l3:2,tO:3},Yi:ge,ov:{Pq:!1,Li:ge.JO},Vd:function(a,b){this._super(a,b)},_ComponentCreate:function(){var a=["required","title","pattern"],b=this.element,c=this.Q3(b);this._super();
this.options.messagesCustom=this.options.messagesCustom||[];this.options.messagesHidden=[];this.options.messagesShown=0<this.options.messagesCustom.length?this.Q6(this.options.messagesCustom):[];this.cG(b);this.qp()&&(this.mn(this.options.placeholder),this.qH=!0);"input"===b[0].tagName.toLowerCase()&&$.each(a,function(a,e){e in c&&b.removeAttr(e)})},cf:function(){this._super();this.w7();this.xS(!1);this.qB();this.ix(this.Yi.J2);0<this.options.messagesShown.length&&this.lx("messagesShown",this.options.messagesShown,
null,!0);this.widget().addClass("oj-form-control")},mv:function(a){this.r5(a)},Vr:function(a){this.c5(a)},PO:function(a,b){switch(a){case "disabled":this.QO(a,je);break;case "converter":this.r3(a);break;case "displayOptions":this.qB();break;case "help":this.yg(a,this.options[a]);break;case "messagesCustom":this.uca(b);break;case "placeholder":this.jda(b);break;case "readOnly":this.QO(a,le);break;case "required":this.s3(a);break;case "title":this.Vfa();break;case "translations":this.refresh();break;
case "value":this.t3(a,b);break;case "validators":this.Kr(a)}},r3:function(a){var b=!1;this.b5();this.jB()&&(b=!0);b?(this.jA(),this.HC(ie)):this.yg(a,this.options[a],!0)},QO:function(a,b){var c=!this.options[a];this.yg(a,this.options[a]);c&&this.yX(b)},s3:function(a){this.yg(a,this.options[a]);this.yX(ke)},t3:function(a,b){var c=b?b._context:null,d,e=!1;c&&(e=c.originalEvent?!0:!1,d=c.qo||!1);e||(d||this.iA(null),this.ix(this.Yi.m3));this.yg(a,this.options[a],!0)},Kr:function(){var a=!1;this.aQ();
this.jB()&&(a=!0);a&&(this.jA(),this.HC(ne))},np:function(){var a=this.options.readOnly||!1;return this.options.disabled||a?!1:!0},_destroy:function(){var a,b,c=this._super();this.widget();this.iA(null,!0);this.Fn().Zk();if(this.lb)for(b=this.lb.length,a=0;a<b;a++)this.lb[a]&&null!=w.Components.Pb(this.lb[a])&&$(this.lb[a])._ojLabel("destroy");return c},Focus:function(){this.Ud().focus();return!0},_setOption:function(a,b,c){var d;d=!1;if("string"===typeof a&&void 0!==b)switch(a){case "messagesHidden":d=
!0;break;case "messagesShown":d=!0;break;case "rawValue":d=!0}if(d)return w.l.error(a+" option cannot be set"),this;d=this._superApply(arguments);this.PO(a,c);return d},Ud:function(){return this.element},jP:function(){var a;a=this.ZS(this.element);if(null!==a&&0!==a.length)return a;a=this.element.prop("id");if(void 0!==a&&(a=$("label[for\x3d'"+a+"']"),0!==a.length))return a;a=this.element.closest("[aria-labelledby]");return 0!==a.length&&(a=this.ZS(a),null!==a&&0!==a.length)?a:null},Pr:function(){return this.element.val()},
_GetMessagingLauncherElement:function(){return this.Ud()},mb:function(){var a;this.Ib||(a=this.options.converter,this.Ib=w.pa.getConverterInstance(a));return this.Ib||null},hv:function(){this.SU||(this.SU={});return this.SU},Tf:function(){return this.Ud().val()},hP:function(){var a,b,c,d,e=!0,f,h,k;if(!this.wv){a=[];h=this.options.validators;c=this.hv();d=[];f=Object.keys(c);var l=f.length;if(0<l){for(b=0;b<l;b++)k=f[b],d.push(c[k]);a=a.concat(d)}if(h){c=[];for(b=0;b<h.length;b++)f=h[b],"object"===
typeof f?(f.validate&&"function"===typeof f.validate||(e=!1),e||(k=f.type)&&"string"===typeof k&&((d=w.ea.xr(k))?(f=w.Nb.Fd({},f.options)||{},f.converter=f.converter||this.mb(),f.label=f.label||this.fI(),f=d.createValidator(f)):w.l.error("Unable to locate a validatorFactory for the requested type: "+k)),c.push(f)):w.l.error("Unable to parse the validator provided:"+f);a=a.concat(c)}this.wv=a}return this.wv||[]},aQ:function(){this.wv&&(this.wv.length=0);this.wv=null;this.Fn().update(this.ai(this.nh.LO))},
b5:function(){this.Ib=null;this.Fn().update(this.ai(this.nh.$N))},Yj:function(){return this.options.required},sz:function(a){var b=this.Tf();this.rb(b,a)},Ol:function(a,b){var c={};c._context={originalEvent:b,kc:!0,Ia:!0,readOnly:!0};this.options.rawValue!==a&&this.option("rawValue",a,c)},yg:function(a,b,c){var d=this.options.help.definition,e=this.options.help.source;switch(a){case "converter":b=this.options.value;this.eK(b,c);break;case "disabled":this.aX("disabled",this.options.disabled);break;
case "help":this.lb&&(a=this.UH(),this.lb._ojLabel("option","describedById",a),this.lb._ojLabel("option","help",{definition:d,source:e}),this.SW(a));break;case "required":this.aX("required",this.Yj());this.XF(b);this.lb&&(a=this.UH(),this.lb._ojLabel("option",{describedById:a,ariaRequiredUnsupported:this.bv()}),this.lb._ojLabel("option","required",b),this.SW(a));break;case "value":this.eK(b,c)}},XF:function(a){var b=this.Ud();a&&b?b.attr("aria-required",a):b.removeAttr("aria-required")},bv:function(){return!1},
Xi:function(){this._superApply(arguments);this.Fn().close()},xg:function(){this._superApply(arguments);this.Fn().close()},$F:function(){this.lb&&this.lb._ojLabel("refresh");this.Ib=this.kJ=null;this.aQ()},Uh:function(a){var b=this.Ud();b.val()!==a&&b.val(a)},cG:function(a){"boolean"===typeof this.options.disabled&&a.prop("disabled",this.options.disabled)},mn:function(a){this.Ud().attr("placeholder",a)},dQ:function(a){this.options.placeholder=a},qp:function(){return this.options.placeholder},UO:function(){this.dQ("");
this.mn("")},rb:function(a,b,c){var d=c&&"boolean"===typeof c.Pq?c.Pq:!0;if(void 0===a)return w.l.warn("Attempt to set a value of undefined"),!1;if(d&&a===this.w9())w.l.iy>w.l.dn&&w.l.info("Validation skipped and value option not updated as submitted value '"+a.toString?a.toString():a+" same as previous.");else if(a=this.gG(a,b,c),void 0!==a&&this.isValid()){var e;c&&c._context&&(e=c._context);this.WY(a,b,c&&c.Li,e);return!0}return!1},gG:function(a,b,c){var d=c&&c.Yja?c.Yja:this.pv.fO,e=c&&c.Li?c.Li:
this.Yi.j3;c=c&&c.qo||!1;if(void 0===a)w.l.warn("Attempt to set a value of undefined");else if(this.np()){c||this.iA(b);this.QX(a);try{return this.zea(a,d,e,b)}catch(f){}}else w.l.iy>w.l.dn&&w.l.info("Validation skipped and value option not set as component state does not  allow setting value. For example if the component is readonly or disabled.")},ev:function(a,b,c){return"value"===a?oa(b,c):0===a.indexOf("messages")?this.vca(b,c):this._superApply(arguments)},_GetDefaultStyleClass:function(){w.i.Yb();
return""},nh:{Ku:1,MO:2,$N:3,LO:4,GO:5},ln:{disabled:"oj-disabled",required:"oj-required"},iA:function(a,b){b?(this.options.messagesHidden=[],this.options.messagesShown=[],this.options.messagesCustom=[]):(this.Hv("messagesHidden",a),this.Hv("messagesShown",a),this.Hv("messagesCustom",a))},jA:function(){var a=this.options.messagesShown,b=a.length,c;this.Hv("messagesHidden");for(var d=b-1;0<=d;d--)c=a[d],c instanceof jd&&a.splice(d,1);a.length!==b&&this.lx("messagesShown",a,null,!0)},lx:function(a,
b,c,d){var e={},f=0===b.length&&0===this.options[a].length;if(d||!f)e._context={originalEvent:c,kc:!0,Ia:!0},"messagesCustom"!==a&&(e._context.readOnly=!0),e.changed=d||!f,this.nea(),this.option(a,b,e),this.qga()},Hv:function(a,b){this.lx(a,[],b)},Q6:function(a){var b,c=[],d;if(a&&0<a.length)for(d=0;d<a.length;d++)b=a[d],b instanceof dd?c.push(b.clone()):(b=new dd(b.summary,b.detail,b.severity),b=Object.freeze?Object.freeze(b):b,c.push(b));return c},w7:function(){if(this.lb=this.jP()){var a=this.options.help.definition,
b=this.options.help.source,c=this.options.required,d=this.bv(),e=this.UH();this.hW(b,a,c,d)&&this.Qz(e);this.lb._ojLabel({rootAttributes:{"class":this._GetDefaultStyleClass()+"-label"},describedById:e,required:c,ariaRequiredUnsupported:d,help:{definition:a,source:b}})}},xS:function(a){var b=!1;a?(this.$F(),this.qB(),this.jB()&&(b=!0),this.jA(),b?this.HC(me):(this.Yj()&&this.ix(me.Li),this.yg("value",this.options.value,!0))):(this.yg("value",this.options.value),this.yg("required",this.options.required));
this.yg("disabled",this.options.disabled)},Rka:function(){return this.pW},w9:function(){void 0===this.QJ&&(this.QJ="");return this.QJ},ZS:function(a){a=a.attr("aria-labelledby");return void 0!==a?$("label[id\x3d'"+a+"']"):null},UH:function(){this.element.uniqueId();return this.element.prop("id")+"Icons"},hW:function(a,b,c,d){return null!=a||null!=b||c&&d},Qz:function(a){var b;this.Ud().each(function(){var c=$(this).attr("aria-describedby"),c=c?c.split(/\s+/):[];b=$.inArray(a,c);-1===b&&c.push(a);
c=$.trim(c.join(" "));$(this).attr("aria-describedby",c)})},gK:function(a){this.Ud().each(function(){var b,c;c=(b=$(this).attr("aria-describedby"))?b.split(/\s+/):[];b=$.inArray(a,c);-1!==b&&c.splice(b,1);(b=$.trim(c.join(" ")))?$(this).attr("aria-describedby",b):$(this).removeAttr("aria-describedby")})},SW:function(a){this.hW(this.options.help.source,this.options.help.definition,this.options.required,this.bv())?this.Qz(a):this.gK(a)},UA:function(){return this.options.messagesShown.concat(this.options.messagesHidden)},
fI:function(){if(this.lb)return this.lb.text()},eU:function(){this.$Y||(this.$Y=new Yd(this.isValid(),this.UA()));return this.$Y},Saa:function(){return!dd.isValid(this.UA())},jB:function(){return!this.isValid()&&0<this.options.messagesShown.length},Raa:function(){for(var a=this.options.messagesShown,b,c,d=0;d<a.length;d++)b=a[d],b instanceof jd&&b.Za&&b.Za.context&&(c=c||[],c.push(b));return void 0===c?!1:!dd.isValid(c)},qB:function(){var a=this.Fn(),b=this._GetMessagingLauncherElement(),c=this.Ud(),
d=this.ai(this.nh.Ku);this.qH||this.UO();a.lo(b,c,d)},uca:function(a){var b=this.options.messagesCustom,c=[],d,e,f=this.options.messagesShown,h=a?a._context:null;for(e=0;e<f.length;e++)d=f[e],d instanceof jd&&d.Za&&d.Za.context&&c.push(d);for(e=0;e<b.length;e++)c.push(b[e]);this.lx("messagesShown",c,h?h.originalEvent:null,a&&a.changed)},jda:function(a){a=(a&&a._context||{}).wia?!1:!0;this.mn(this.options.placeholder);a?(this.qH=!0,this.mb()&&this.qB()):this.qH=!1},Xea:function(a){this.pW=a},QX:function(a){this.QJ=
a},Vfa:function(){this.Fn().update(this.ai(this.nh.GO))},FC:function(a,b,c){var d,e,f;if("object"===typeof b&&Array.isArray(b))for(f=this.options[a],d=b.length,e=0;e<d;e++)f.push(b[e]);this.lx(a,f,c,!0)},qga:function(){this.Fn().update(this.ai())},WY:function(a,b,c,d){d=d||{};b&&(d.originalEvent=b);switch(c){case this.Yi.aO:case this.Yi.cO:case this.Yi.qO:case this.Yi.rO:case this.Yi.sO:case this.Yi.JO:case this.Yi.KO:d.kc=!0,d.qo=!0}this.option({value:a},{_context:d})},nea:function(){this.nL=void 0},
d$:function(){var a=this.UA(),b=!0;a&&0!==a.length&&(b=!this.Saa());return b},Op:function(a){var b=a,c=this.mb();c&&"object"===typeof c&&(c.format&&"function"===typeof c.format?b=c.format(a):w.l.iy>w.l.dn&&w.l.info("converter does not support the format method."));return b},Fn:function(){this.Rl||(this.Rl=new Bd(this));return this.Rl},s9:function(a){var b,c=[];b="";var d;this.Yj()&&(b=this.wT(),b.getHint&&"function"===typeof b.getHint&&(b=b.getHint())&&c.push(b));for(d=0;d<a.length;d++)b=a[d],"object"===
typeof b&&b.getHint&&"function"===typeof b.getHint&&(b=b.getHint())&&c.push(b);return c},wT:function(){var a;a={};var b;null==this.kJ&&(a=this.options.translations?this.options.translations.required||{}:{},b={hint:a.hint||null,label:this.fI(),messageSummary:a.messageSummary||null,messageDetail:a.messageDetail||null},this.kJ=(a=w.ea.xr(w.kd.VALIDATOR_TYPE_REQUIRED))?a.createValidator(b):null);return this.kJ},ai:function(a){var b={},c=this.mb(),d="",e=[];a=a||this.nh.MO;if(a===this.nh.Ku||a===this.nh.MO)e=
this.UA(),this.eU().update(this.isValid(),e),b.C2=this.eU();if(a===this.nh.Ku||a===this.nh.$N)c&&"object"===typeof c&&c.getHint&&"function"===typeof c.getHint&&(d=c.getHint()||""),b.FZ=d;if(a===this.nh.Ku||a===this.nh.LO)c=this.hP(),e=this.s9(c)||[],b.Zja=e;if(a===this.nh.Ku||a===this.nh.GO)b.title=this.options.title||"";return b},vca:function(a,b){var c=-1,d,e=!0,f=$.extend([],a),h=$.extend([],b);if(f.length!==h.length)return!1;$.each(f,function(a,b){b instanceof dd?d=b:(d=new dd(b.summary,b.detail,
b.severity),d=Object.freeze?Object.freeze(d):d);c=-1;$.each(h,function(a,b){d.ym(b)&&(c=a)});-1<c?h.splice(c,1):e=!1});return e},OB:function(a){var b=this.mb(),c=a;b&&"object"===typeof b&&(b.parse&&"function"===typeof b.parse?c=b.parse(a):w.l.iy>w.l.dn&&w.l.info("converter does not support the parse method."));return c},lG:function(a,b){var c,d,e;a instanceof oe||a instanceof pe?(c=a.St(),w.i.Pc(c,dd),e=c.severity,d=c.summary,c=c.detail):(e=fd.ERROR,d=w.ba.r("oj-message.error"),c=a.message||w.ba.r("oj-converter.detail"));
b.push({summary:d,detail:c,severity:e})},ZJ:function(a,b,c){var d={},e=[],f=a.Fw||[];d.context=b||0;d.display=c||"shown";0===f.length&&this.lG(a,f);for(b=0;b<f.length;b++)a=f[b],e.push(this.l7(a.summary,a.detail,a.severity,d));return e||null},l7:function(a,b,c,d){a=new jd(a,b,c,d);return a=Object.seal?Object.seal(a):a},eK:function(a,b){var c=a||this.options.value,d;d=this.pW;(b||c!==d)&&this.oga(c)},aX:function(a,b){-1!==Object.keys(this.ln).indexOf(a)&&this.widget().toggleClass(this.ln[a],!!b)},
ix:function(a){if(this.np())try{this.ZY(this.options.value,this.pv.tO)}catch(b){(a=this.ZJ(b,a,"hidden"))&&this.FC("messagesHidden",a)}else w.l.iy>w.l.dn&&w.l.info("Deferred validation skipped as component is readonly or disabled.")},zea:function(a,b,c,d){var e=a;try{b===this.pv.fO&&(e=this.OB(a)),this.ZY(e,b===this.pv.tO)}catch(f){throw a=this.ZJ(f,c),this.FC("messagesShown",a,d),f;}return e},yX:function(a){var b=!0;this.jB()&&(b=!1);this.jA();b?this.Yj()&&this.ix(a.Li):this.HC(a)},oga:function(a,
b){var c,d;this.Xea(a);c=a;try{c=this.Op(a)}catch(e){d=this.ZJ(e),this.FC("messagesShown",d,b)}this.Uh(c);c=this.Tf();this.QX(c);this.Ol(c,null)},HC:function(a){var b;b=this.gG(this.Tf(),null,a);void 0===b||!this.isValid()&&this.Raa()||this.WY(b,null,a.Li)},ZY:function(a,b){var c=this.hP(),d,e,f=[];if(this.Yj()){d=this.wT();try{d.validate(w.Ca.trim(a))}catch(h){this.lG(h,f)}}if(!b)for(e=0;e<c.length;e++)if(d=c[e],"object"===typeof d)if(d.validate&&"function"===typeof d.validate)try{d.validate(a)}catch(k){this.lG(k,
f)}else w.l.iy>w.l.dn&&w.l.info("validator does not support the validate method.");if(0<f.length)throw c=Error(),c.Fw=f,c;}},!0);w.Components.Rj({editableValue:{displayOptions:w.Components.ad(function(a){return{messages:0<=a.containers.indexOf("ojDataGrid")||0<=a.containers.indexOf("ojTable")?["notewindow"]:["inline"],converterHint:["placeholder","notewindow"],validatorHint:["notewindow"],title:["notewindow"]}})}});function qe(a){this.Init(a)}Ed(Cd.Su,qe);H(qe,Kd,"oj.InlineMessagingStrategy");
qe.prototype.mr=function(a){qe.o.mr.call(this,a);re(this)};qe.prototype.FN=function(a){return a&&void 0!==a.C2?!0:!1};qe.prototype.update=function(){qe.o.update.call(this);re(this)};qe.prototype.Zk=function(){se(this);qe.o.Zk.call(this)};
function re(a){var b,c=Md(a).widget();-1!==a.Ip.indexOf("messages")?(b=Md(a).document[0],b=a.yG(b)):b="";if(b&&null==a.hd){a.hd=$("\x3cdiv class\x3d'oj-messaging-inline-container'\x3e\x3c/div\x3e");a.Qz(a.hd);var d=a.hd;w.i.Pc(d,$);d.attr("aria-live","polite");c.append(a.hd)}null!=a.hd&&(b?(a=a.hd[0],a.innerHTML=b):se(a))}function se(a){if(null!=a.hd){a.gK(a.hd);var b=a.hd;w.i.Pc(b,$);b.removeAttr("aria-live");a.hd.remove();delete a.hd}}
qe.prototype.Qz=function(a){var b,c;c=Ld(this);w.i.Pc(c,$);w.i.Pc(a,$);a=a.uniqueId().attr("id");b=(b=c.attr("aria-describedby"))?b.split(/\s+/):[];b.push(a);b=$.trim(b.join(" "));c.attr("aria-describedby",b)};qe.prototype.gK=function(a){var b,c;c=Ld(this);w.i.Pc(c,$);w.i.Pc(a,$);a=a.attr("id");b=(b=c.attr("aria-describedby"))?b.split(/\s+/):[];a=$.inArray(a,b);-1!==a&&b.splice(a,1);(b=$.trim(b.join(" ")))?c.attr("aria-describedby",b):c.removeAttr("aria-describedby")};
qe.prototype.yG=function(a){var b="",c=Vd(Qd(this));Rd(this)&&(b=Sd(Qd(this)),b=w.La.pZ(a,b,c,!0));return b};
w.Components.xa("editableValue","baseComponent",{properties:{disabled:{type:"boolean"},displayOptions:{type:"Object"},help:{type:"Object\x3cstring, string\x3e"},messagesCustom:{type:"Array"},messagesHidden:{type:"Array"},messagesShown:{type:"Array"},required:{type:"boolean"},title:{type:"string"},validators:{type:"Array"},value:{type:"Object",writeback:!0}},methods:{getNodeBySubId:{},isValid:{},refresh:{},reset:{},showMessages:{},validate:{}},extension:{_widgetName:"editableValue"}});
w.sa("oj.inputBase",$.oj.editableValue,{version:"1.0.0",widgetEventPrefix:"oj",_ATTR_CHECK:[],_CLASS_NAMES:"",_WIDGET_CLASS_NAMES:"",_ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES:"",_GET_INIT_OPTIONS_PROPS:[{U:"disabled",yc:!0},{U:"pattern"},{U:"placeholder"},{U:"value"},{U:"readonly",option:"readOnly",yc:!0},{U:"required",We:!0,yc:!0},{U:"title"}],_INPUT_HELPER_KEY:"",SO:"blur",yP:"keydown",oP:"input",bP:"drop",options:{converter:void 0,placeholder:void 0,rawValue:void 0,readOnly:!1},mv:function(a){var b=
this._superApply(arguments);this.vda();return b},Vd:function(a,b){this._super(a,b);w.Uc.fl(this._GET_INIT_OPTIONS_PROPS,b,this)},_ComponentCreate:function(){var a=this._superApply(arguments),b=this.options.readOnly;this.De="rtl"===this.$b();"boolean"===typeof b&&this.element.prop("readonly",b);this.fv()?(this.zga(),this.cP()&&this.hG(),this._focusable({element:this.Pg,applyHighlight:!0})):this._focusable({element:this.element,applyHighlight:!0});this.sH={};this.md=null;return a},cf:function(){var a=
this._superApply(arguments),b=this;this._CLASS_NAMES&&this.element.addClass(this._CLASS_NAMES);this.MQ();this.sF();$.each(["disabled","readOnly"],function(a,d){b.options[d]&&b.HW(d,b.options[d])});return a},HW:function(a,b){"disabled"===a&&this.element.prop("disabled",b);"readOnly"===a&&(this.element.prop("readonly",b),this.ZB("readOnly",b));"disabled"!==a&&"readOnly"!==a||this.MQ()},_setOption:function(a,b){var c=this._superApply(arguments);"disabled"!==a&&"readOnly"!==a||this.HW(a,b);"pattern"===
a&&(this.sH[w.kd.VALIDATOR_TYPE_REGEXP]=this.vT(),this.Kr());return c},_destroy:function(){var a=this._superApply(arguments);this.element.off("blur drop keydown input");this.oJ&&this.oJ.remove();this.fv()&&(this.cP()?w.q.unwrap(this.element,this.Pg):w.q.unwrap(this.element));return a},MQ:function(){if(!this.options.readOnly&&!this.options.disabled){this.md={};var a=$.proxy(this.RJ,this),b=$.proxy(this.KB,this),c=$.proxy(this.Sca,this),d=function(){this.focus()};this.element.on("blur",a);this.element.on("keydown",
b);this.element.on("input",c);this.element.on("drop",d);this.md[this.SO]=a;this.md[this.yP]=b;this.md[this.oP]=c;this.md[this.bP]=d}else if(this.md)for(a=[this.SO,this.yP,this.oP,this.bP],b=0,c=a.length;b<c;b++)this.md[a[b]]&&(this.element.off(a[b],this.md[a[b]]),delete this.md[a[b]])},ln:{readOnly:"oj-read-only"},vda:function(){for(var a=this._ATTR_CHECK,b=0,c=a.length;b<c;b++){var d=a[b].attr;"setMandatory"in a[b]&&this.element.attr(d,a[b].setMandatory)}},RJ:function(a){this.rb(this.Tf(),a)},KB:function(a){a.keyCode===
$.ui.keyCode.ENTER&&this.rb(this.Tf(),a)},Sca:function(a){this.Ol(this.Ud().val(),a)},fv:function(){return this._WIDGET_CLASS_NAMES},cP:function(){return this._ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES},zga:function(){this.Kc?(this.Pg=$(this.Kc).addClass(this._WIDGET_CLASS_NAMES),this.Pg.append(this.element)):($(this.element).wrap($("\x3cdiv\x3e").addClass(this._WIDGET_CLASS_NAMES)),this.Pg=this.element.parent())},hG:function(){return $(this.element).wrap($("\x3cdiv\x3e").addClass(this._ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES)).parent()},
sF:function(){if(this._INPUT_HELPER_KEY&&this.fv()){var a=this.element.attr("aria-describedby")||"",b=this.Ti(this._INPUT_HELPER_KEY);this.element.attr("aria-describedby",a+(" "+b));this.oJ=$("\x3cdiv class\x3d'oj-helper-hidden-accessible' id\x3d'"+b+"'\x3e"+this.tg(this.r(this._INPUT_HELPER_KEY))+"\x3c/div\x3e");this.RO().append(this.oJ)}},tg:function(a){return $("\x3cspan\x3e"+a+"\x3c/span\x3e").text()},RO:function(){return this.widget()},hv:function(){var a=this._superApply(arguments);this.options.pattern&&
(this.sH[w.kd.VALIDATOR_TYPE_REGEXP]=this.vT());return $.extend(this.sH,a)},ZB:function(a,b){-1!=Object.keys(this.ln).indexOf(a)&&this.widget().toggleClass(this.ln[a],!!b)},vT:function(){if(!this.options.pattern)return null;var a={pattern:this.options.pattern,label:this.fI()};$.extend(a,this.options.translations.regexp||{});return w.ea.xr(w.kd.VALIDATOR_TYPE_REGEXP).createValidator(a)},Ti:function(a){return this.uuid+"_"+a},Aka:function(){return this.De},refresh:function(){var a=this._superApply(arguments);
this.De="rtl"===this.$b();return a},getNodeBySubId:function(a){return this._super(a)},widget:function(){return this.fv()?this.Pg:this.element}},!0);
w.sa("oj.ojInputPassword",$.oj.inputBase,{version:"1.0.0",defaultElement:"\x3cinput\x3e",widgetEventPrefix:"oj",_ATTR_CHECK:[{attr:"type",setMandatory:"password"}],_CLASS_NAMES:"oj-inputpassword-input",_WIDGET_CLASS_NAMES:"oj-inputpassword oj-form-control oj-component",options:{pattern:""},getNodeBySubId:function(a){var b=this._superApply(arguments),c;b||(c=a.subId,"oj-inputpassword-input"===c&&(b=this.element?this.element[0]:null));return b||null},_GetDefaultStyleClass:function(){return"oj-inputpassword"}});
w.sa("oj.ojTextArea",$.oj.inputBase,{version:"1.0.0",defaultElement:"\x3ctextarea\x3e",widgetEventPrefix:"oj",_ATTR_CHECK:[],_CLASS_NAMES:"oj-textarea-input",_WIDGET_CLASS_NAMES:"oj-textarea oj-form-control oj-component",options:{pattern:""},getNodeBySubId:function(a){var b=this._superApply(arguments),c;b||(c=a.subId,"oj-textarea-input"===c&&(b=this.element?this.element[0]:null));return b||null},_GetDefaultStyleClass:function(){return"oj-textarea"},rz:function(){return"oj-inputBase"}});
w.sa("oj.ojInputText",$.oj.inputBase,{version:"1.0.0",defaultElement:"\x3cinput\x3e",widgetEventPrefix:"oj",_ATTR_CHECK:[{attr:"type",setMandatory:"text"}],_CLASS_NAMES:"oj-inputtext-input",_WIDGET_CLASS_NAMES:"oj-inputtext oj-form-control oj-component",options:{pattern:""},getNodeBySubId:function(a){var b=this._superApply(arguments),c;b||(c=a.subId,"oj-inputtext-input"===c&&(b=this.element?this.element[0]:null));return b||null},_GetDefaultStyleClass:function(){return"oj-inputtext"},rz:function(){return"oj-inputBase"}});
w.Components.xa("inputBase","editableValue",{properties:{converter:{type:"Object"},placeholder:{type:"string"},rawValue:{type:"string",readOnly:!0,writeback:!0},readOnly:{type:"boolean"}},methods:{refresh:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"inputBase"}});w.Components.xa("ojInputPassword","inputBase",{properties:{pattern:{type:"string"},value:{type:"string",writeback:!0}},methods:{},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojInputPassword"}});
w.Components.register("oj-input-password",w.Components.getMetadata("ojInputPassword"));w.Components.xa("ojInputText","inputBase",{properties:{pattern:{type:"string"},value:{type:"string",writeback:!0}},methods:{},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojInputText"}});w.Components.register("oj-input-text",w.Components.getMetadata("ojInputText"));
w.Components.xa("ojTextArea","inputBase",{properties:{pattern:{type:"string"},value:{type:"string",writeback:!0}},methods:{},extension:{_hasWrapper:!0,_innerElement:"textarea",_widgetName:"ojTextArea"}});w.Components.register("oj-text-area",w.Components.getMetadata("ojTextArea"));w.za={};t("LocaleData",w.za,w);w.za.BN=function(a){w.za.zG=a};t("LocaleData.setBundle",w.za.BN,w);w.za.Rx=function(){return w.za.yI("firstDay")};t("LocaleData.getFirstDayOfWeek",w.za.Rx,w);w.za.Wha=function(){return w.za.yI("weekendStart")};
t("LocaleData.getWeekendStart",w.za.Wha,w);w.za.Vha=function(){return w.za.yI("weekendEnd")};t("LocaleData.getWeekendEnd",w.za.Vha,w);w.za.Ox=function(a){if(null==a||"abbreviated"!==a&&"narrow"!==a)a="wide";a=w.za.VH().days["stand-alone"][a];return[a.sun,a.mon,a.tue,a.wed,a.thu,a.fri,a.sat]};t("LocaleData.getDayNames",w.za.Ox,w);
w.za.Sx=function(a){if(null==a||"abbreviated"!==a&&"narrow"!==a)a="wide";a=w.za.VH().months["stand-alone"][a];return[a["1"],a["2"],a["3"],a["4"],a["5"],a["6"],a["7"],a["8"],a["9"],a["10"],a["11"],a["12"]]};t("LocaleData.getMonthNames",w.za.Sx,w);w.za.o0=function(){var a=w.za.VH().dateFormats["long"].toUpperCase(),b=a.indexOf("M"),a=a.indexOf("Y");return b<a};t("LocaleData.isMonthPriorToYear",w.za.o0,w);
w.za.yI=function(a){var b=w.za.Vh(),c=w.za.P9()||"001";a=b.supplemental.weekData[a];c=a[c];void 0===c&&(c=a["001"]);return c};w.za.VH=function(){var a=w.za.Vh().main,b,c;for(c in a)if(a.hasOwnProperty(c)){b=a[c];break}return b.dates.calendars.gregorian};w.za.P9=function(){var a=w.T.gg();if(a&&(a=a.toUpperCase().split(/-|_/),2<=a.length)){var b=a[1];if(4==b.length){if(3<=a.length)return a[2]}else return b}return null};
w.za.Vh=function(){var a=w.za.zG;return a?a:w.Zr()?(w.i.assert(void 0!==ojld,"LocaleElements module must be loaded"),ojld):{}};w.za.D5=function(a){ojld=a};w.ea={};t("Validation",w.ea,w);w.ea.jH={};w.ea.oL={};w.ea.fS={};w.ea.iS={};w.ea.oz={converter:{name:"oj.ConverterFactory",type:w.Pf},validator:{name:"oj.ValidatorFactory",type:w.kd}};w.ea.cg=function(a,b){var c;a&&!b?c=w.ea.PA(a,w.ea.jH):a&&b&&(c=w.ea.gt(a,b,w.ea.jH,w.ea.oz.converter));return c};t("Validation.converterFactory",w.ea.cg,w);
w.ea.xr=function(a,b){var c;a&&!b?c=w.ea.PA(a,w.ea.oL):a&&b&&(c=w.ea.gt(a,b,w.ea.oL,w.ea.oz.validator));return c};t("Validation.validatorFactory",w.ea.xr,w);w.ea.l_=function(a){return w.ea.PA(a,w.ea.fS)};t("Validation.getDefaultConverterFactory",w.ea.l_,w);w.ea.Fha=function(a){return w.ea.PA(a,w.ea.iS)};t("Validation.getDefaultValidatorFactory",w.ea.Fha,w);w.ea.tQ=function(a,b){var c=w.ea.oz.converter;w.ea.gt(a,b,w.ea.fS,c);w.ea.gt(a,b,w.ea.jH,c)};
w.ea.$r=function(a,b){var c=w.ea.oz.validator;w.ea.gt(a,b,w.ea.iS,c);w.ea.gt(a,b,w.ea.oL,c)};w.ea.i8=function(a,b,c){if(b&&!w.ea.Ada(a,b))throw Error("Factory instance does not implement the methods expected by the factory of type "+c);};w.ea.PA=function(a,b){w.i.sm(a);var c=null;a&&(a=a.toLowerCase(),c=(b[a]||{}).instance||null);return c};w.ea.Ada=function(a,b){var c=!0,d;w.i.xf(a);w.i.xf(b);for(d in b)if(b.hasOwnProperty(d)&&"function"===typeof b[d]&&!a[d]&&"function"!==typeof a[d]){c=!1;break}return c};
w.ea.gt=function(a,b,c,d){w.i.sm(a);w.i.xf(b);if(a){var e={};e.instance=b;w.ea.i8(b,d.type,d.name);c[a.toLowerCase()]=e}};w.Pf={CONVERTER_TYPE_NUMBER:"number",CONVERTER_TYPE_DATETIME:"datetime",createConverter:function(){}};t("ConverterFactory",w.Pf,w);w.kd={VALIDATOR_TYPE_REQUIRED:"required",VALIDATOR_TYPE_REGEXP:"regexp",VALIDATOR_TYPE_NUMBERRANGE:"numberRange",VALIDATOR_TYPE_LENGTH:"length",VALIDATOR_TYPE_DATETIMERANGE:"dateTimeRange",VALIDATOR_TYPE_DATERESTRICTION:"dateRestriction",createValidator:function(){}};
t("ValidatorFactory",w.kd,w);function te(a){this.Init(a)}t("Converter",te,w);H(te,x,"oj.Converter");te.prototype.Init=function(a){te.o.Init.call(this);this.Za=a};A("Converter.prototype.Init",{Init:te.prototype.Init});te.prototype.uc=function(){w.i.Yb();return null};A("Converter.prototype.getHint",{uc:te.prototype.uc});te.prototype.Gh=function(){return this.Za||{}};A("Converter.prototype.getOptions",{Gh:te.prototype.Gh});te.prototype.parse=function(){w.i.Yb();return null};
A("Converter.prototype.parse",{parse:te.prototype.parse});te.prototype.format=function(){w.i.Yb();return null};A("Converter.prototype.format",{format:te.prototype.format});te.prototype.resolvedOptions=function(){var a={};$.extend(a,this.Za);return a};A("Converter.prototype.resolvedOptions",{resolvedOptions:te.prototype.resolvedOptions});function oe(a,b){var c=new dd(a,b,fd.ERROR);this.Init(c)}t("ConverterError",oe,w);oe.prototype=Error();
oe.prototype.Init=function(a){var b=a.detail,c=a.summary;this.Zs=a;this.name="Converter Error";this.message=b||c};A("ConverterError.prototype.Init",{Init:oe.prototype.Init});oe.prototype.St=function(){return this.Zs};A("ConverterError.prototype.getMessage",{St:oe.prototype.St});function ue(){this.Init()}t("NumberConverter",ue,w);H(ue,te,"oj.NumberConverter");ue.prototype.Init=function(a){ue.o.Init.call(this,a)};A("NumberConverter.prototype.Init",{Init:ue.prototype.Init});
ue.prototype.format=function(a){return ue.o.format.call(this,a)};A("NumberConverter.prototype.format",{format:ue.prototype.format});ue.prototype.parse=function(a){return ue.o.parse.call(this,a)};A("NumberConverter.prototype.parse",{parse:ue.prototype.parse});function ve(a){this.Init(a)}t("DateTimeConverter",ve,w);H(ve,te,"oj.DateTimeConverter");ve.prototype.Init=function(a){ve.o.Init.call(this,a)};A("DateTimeConverter.prototype.Init",{Init:ve.prototype.Init});
ve.prototype.format=function(a){return ve.o.format.call(this,a)};A("DateTimeConverter.prototype.format",{format:ve.prototype.format});ve.prototype.cy=function(){w.i.Yb()};A("DateTimeConverter.prototype.isHourInDaySet",{cy:ve.prototype.cy});ve.prototype.by=function(){w.i.Yb()};A("DateTimeConverter.prototype.isHourInAMPMSet",{by:ve.prototype.by});ve.prototype.ey=function(){w.i.Yb()};A("DateTimeConverter.prototype.isMinuteSet",{ey:ve.prototype.ey});ve.prototype.gy=function(){w.i.Yb()};
A("DateTimeConverter.prototype.isSecondSet",{gy:ve.prototype.gy});ve.prototype.dy=function(){w.i.Yb()};A("DateTimeConverter.prototype.isMilliSecondSet",{dy:ve.prototype.dy});ve.prototype.hy=function(){w.i.Yb()};A("DateTimeConverter.prototype.isYearSet",{hy:ve.prototype.hy});ve.prototype.fy=function(){w.i.Yb()};A("DateTimeConverter.prototype.isMonthSet",{fy:ve.prototype.fy});ve.prototype.ay=function(){w.i.Yb()};A("DateTimeConverter.prototype.isDaySet",{ay:ve.prototype.ay});ve.prototype.$x=function(){w.i.Yb()};
A("DateTimeConverter.prototype.isDayNameSet",{$x:ve.prototype.$x});ve.prototype.oo=function(){w.i.Yb()};A("DateTimeConverter.prototype.calculateWeek",{oo:ve.prototype.oo});ve.prototype.parse=function(a){return ve.o.parse.call(this,a)};A("DateTimeConverter.prototype.parse",{parse:ve.prototype.parse});ve.prototype.Qc=function(a,b){return ve.o.Qc.call(this,a,b)};A("DateTimeConverter.prototype.compareISODates",{Qc:ve.prototype.Qc});function we(){this.Init()}t("Validator",we,w);H(we,x,"oj.Validator");
we.prototype.Init=function(){we.o.Init.call(this)};A("Validator.prototype.Init",{Init:we.prototype.Init});we.prototype.validate=function(){w.i.Yb()};A("Validator.prototype.validate",{validate:we.prototype.validate});we.prototype.uc=function(){w.i.Yb()};A("Validator.prototype.getHint",{uc:we.prototype.uc});function pe(a,b){var c=new dd(a,b,fd.ERROR);this.Init(c)}t("ValidatorError",pe,w);pe.prototype=Error();
pe.prototype.Init=function(a){var b=a.detail,c=a.summary;this.Zs=a;this.name="Validator Error";this.message=b||c};A("ValidatorError.prototype.Init",{Init:pe.prototype.Init});pe.prototype.St=function(){return this.Zs};A("ValidatorError.prototype.getMessage",{St:pe.prototype.St});function xe(a){this.Init(a)}t("RequiredValidator",xe,w);H(xe,we,"oj.RequiredValidator");xe.prototype.Init=function(a){xe.o.Init.call(this);this.Za=a};A("RequiredValidator.prototype.Init",{Init:xe.prototype.Init});
xe.prototype.validate=function(a){var b,c="",d,e={};if("number"===typeof a&&0===a||a&&0!==a.length)return!0;this.Za&&(b=this.Za.messageDetail||this.Za.message||null,d=this.Za.messageSummary||null,c=this.Za.label||"");e={label:c};a=d?w.ba.Db(d,e):w.ba.r(this.rI(),e);b=b?w.ba.Db(b,e):w.ba.r(this.ZH(),e);throw new pe(a,b);};A("RequiredValidator.prototype.validate",{validate:xe.prototype.validate});xe.prototype.uc=function(){var a="";this.Za&&this.Za.hint&&(a=w.ba.r(this.Za.hint));return a};
A("RequiredValidator.prototype.getHint",{uc:xe.prototype.uc});xe.prototype.rI=function(){return"oj-validator.required.summary"};xe.prototype.ZH=function(){return"oj-validator.required.detail"};function ye(a){this.Init(a)}t("DateRestrictionValidator",ye,w);H(ye,we,"oj.DateRestrictionValidator");ye.prototype.Init=function(a){ye.o.Init.call(this);this.Z7=a.dayFormatter;this.Ib=w.pa.getConverterInstance(a.converter);a&&(this.tca=a.messageSummary||null,this.sca=a.messageDetail||null)};
A("DateRestrictionValidator.prototype.Init",{Init:ye.prototype.Init});
ye.prototype.validate=function(a){var b="",c="",c=w.ba,b=this.tca,d=this.sca,e=a?this.Ib.format(a):a,f=a?w.pa._dateTime(a,["fullYear","month","date"],!0):null;if(null===a)return a;var h=this.Z7;f=h?(f=h({fullYear:f.fullYear,month:f.month+1,date:f.date}))&&f.disabled:!1;if(f)throw b=b?c.Db(b,{value:e}):c.r("oj-validator.restriction.date.messageSummary",{value:e}),c=d?c.Db(d,{value:e}):c.r("oj-validator.restriction.date.messageDetail",{value:e}),new pe(b,c);return a};
A("DateRestrictionValidator.prototype.validate",{validate:ye.prototype.validate});ye.prototype.uc=function(){return null};A("DateRestrictionValidator.prototype.getHint",{uc:ye.prototype.uc});function ze(a){this.Init(a)}t("DateTimeRangeValidator",ze,w);H(ze,we,"oj.DateTimeRangeValidator");
ze.prototype.Init=function(a){ze.o.Init.call(this);this.Ib=w.pa.getConverterInstance(a.converter);this.Zf=a.min||null;this.Kg=a.max||null;a&&(this.tw=a.hint||{},this.Ov=a.messageSummary||{},this.Nv=a.messageDetail||{})};A("DateTimeRangeValidator.prototype.Init",{Init:ze.prototype.Init});
ze.prototype.validate=function(a){var b=this.Ov,c=this.Nv,d=c.rangeOverflow,c=c.rangeUnderflow,e=b.rangeOverflow,b=b.rangeUnderflow,f=w.pa,h=this.Zf,k=this.Kg,l="",m="",n=w.ba,p=null,p=a?this.Ib.format(a):a,q,r;if(null===a)return a;p=this.Ib.format(a);h&&(h=f._minMaxIsoString(h,a),q=this.Ib?this.Ib.format(h):h);k&&(k=f._minMaxIsoString(k,a),r=this.Ib?this.Ib.format(k):k);if(null!==h&&null!==k){if(0<=this.Ib.Qc(a,h)&&0>=this.Ib.Qc(a,k)||0<this.Ib.Qc(h,k))return a}else if(null!==h){if(0<=this.Ib.Qc(a,
h))return a}else if(null===k||0>=this.Ib.Qc(a,k))return a;null!==k&&0<this.Ib.Qc(a,k)?(p={value:p,max:r},l=e?e:n.r("oj-validator.range.datetime.messageSummary.rangeOverflow"),m=d?n.Db(d,p):n.r("oj-validator.range.datetime.messageDetail.rangeOverflow",p)):null!==h&&0>this.Ib.Qc(a,h)&&(p={value:p,min:q},l=b?b:n.r("oj-validator.range.datetime.messageSummary.rangeUnderflow"),m=c?n.Db(c,p):n.r("oj-validator.range.datetime.messageDetail.rangeUnderflow",p));throw new pe(l,m);};
A("DateTimeRangeValidator.prototype.validate",{validate:ze.prototype.validate});
ze.prototype.uc=function(){var a=null,b=this.tw,c=b.inRange,d=b.min,b=b.max,e=this.Zf,f=this.Kg,h=e&&this.Ib?this.Ib.format(e):e,k=f&&this.Ib?this.Ib.format(f):f,l=null,m=w.ba;null!==e&&null!==f?(l={min:h,max:k},a=c?m.Db(c,l):m.r("oj-validator.range.datetime.hint.inRange",l)):null!==e?(l={min:h},a=d?m.Db(d,l):m.r("oj-validator.range.datetime.hint.min",l)):null!==f&&(l={max:k},a=b?m.Db(b,l):m.r("oj-validator.range.datetime.hint.max",l));return a};A("DateTimeRangeValidator.prototype.getHint",{uc:ze.prototype.uc});
w.b3={createConverter:function(a){return new Ae(a)}};w.ea.tQ(w.Pf.CONVERTER_TYPE_NUMBER,w.b3);w.N2={createConverter:function(a){return new Be(a)}};w.ea.tQ(w.Pf.CONVERTER_TYPE_DATETIME,w.N2);w.g3={createValidator:function(a){return new xe(a)}};w.ea.$r(w.kd.VALIDATOR_TYPE_REQUIRED,w.g3);w.f3={createValidator:function(a){return new Ce(a)}};w.ea.$r(w.kd.VALIDATOR_TYPE_REGEXP,w.f3);w.O2={createValidator:function(a){return new ze(a)}};w.ea.$r(w.kd.VALIDATOR_TYPE_DATETIMERANGE,w.O2);w.M2={createValidator:function(a){return new ye(a)}};
w.ea.$r(w.kd.VALIDATOR_TYPE_DATERESTRICTION,w.M2);w.c3={createValidator:function(a){return new De(a)}};w.ea.$r(w.kd.VALIDATOR_TYPE_NUMBERRANGE,w.c3);w.V2={createValidator:function(a){return new Ee(a)}};w.ea.$r(w.kd.VALIDATOR_TYPE_LENGTH,w.V2);
var O={xl:{latn:"0123456789",arab:"\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669",thai:"\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59"},lja:/^\s+|\s+$|\u200f|\u200e/g,mja:/\s+|\u200f|\u200e/g,nja:/0+$/g,$ja:["0","00","000"],CF:/^\d{4}(?:-?\d{2}(?:-?\d{2})?)?(?:T\d{2}:?\d{2}(?::?\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?)?$|^T\d{2}:?\d{2}(?::?\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?$/,getLocalTimeZoneOffset:function(){return O.Ut("Etc/GMT",(new Date).getTimezoneOffset(),
!1,!1)},aU:function(a){if(!a||"string"!==typeof a)return null;var b=O.CF.exec(a);null===b&&O.IY(a);return void 0!==b[1]?b[1]:null},dateToLocalIso:function(a){var b=O.qb(a.getFullYear(),4)+"-"+O.qb(a.getMonth()+1,2)+"-"+O.qb(a.getDate(),2)+"T"+O.qb(a.getHours(),2)+":"+O.qb(a.getMinutes(),2)+":"+O.qb(a.getSeconds(),2);0<a.getMilliseconds()&&(b+="."+O.JE(O.qb(a.getMilliseconds(),3)));return b},aja:function(a){var b=O.qb(a[0],4)+"-"+O.qb(a[1],2)+"-"+O.qb(a[2],2)+"T"+O.qb(a[3],2)+":"+O.qb(a[4],2)+":"+
O.qb(a[5],2);0<a[6]&&(b+="."+O.JE(O.qb(a[6],3)));return b},isoToLocalDate:function(a){return a&&"string"===typeof a?this.Uba(a):null},Uba:function(a){a=O.rp(a);return new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5],a[6])},rp:function(a){var b=a.split("T"),c=a.indexOf("T");a=new Date;var d=[a.getFullYear(),a.getMonth()+1,a.getDate(),0,0,0,0];if(""!==b[0]){var e=b[0].split("-");for(a=0;a<e.length;a++)d[a]=parseInt(e[a],10)}if(-1!==c){b=b[1].split(".");c=b[0].split(":");for(a=0;a<c.length;a++)d[3+a]=parseInt(c[a],
10);2===b.length&&b[1]&&(d[6]=parseInt(O.TN(b[1],3,!1),10))}return d},Qt:function(a){var b={format:null,dateTime:null,timeZone:"",isoStrParts:null},c=O.CF.exec(a);null===c&&O.IY(a);if(void 0===c[1]&&void 0===c[2])return b.format="local",b.dateTime=a,b.isoStrParts=O.rp(b.dateTime),b;b.timeZone=void 0!==c[1]?c[1]:c[2];b.format="Z"===b.timeZone?"zulu":"offset";b.dateTime=a.substring(0,a.indexOf(b.timeZone));b.isoStrParts=O.rp(b.dateTime);return b},nla:function(){var a;a=Error("time zone is not supported");
a.errorInfo={errorCode:"timeZoneNotSupported"};throw a;},IY:function(a){var b;b=Error("The string "+a+" is not a valid ISO 8601 string.");b.errorInfo={errorCode:"invalidISOString",parameterMap:{isoStr:a}};throw b;},trim:function(a){return(a+"").replace(O.lja,"")},JE:function(a){return(a+"").replace(O.nja,"")},Bl:function(a){return(a+"").replace(O.mja,"")},sr:function(a,b){return 0===a.indexOf(b)},rg:function(a){return a.split("\u00a0").join(" ").toUpperCase()},qb:function(a,b){var c;c=a+"";return 1<
b&&c.length<b?(c=O.$ja[b-2]+c,c.substr(c.length-b,b)):c},TN:function(a,b,c){a=""+a;var d;for(d=a.length;d<b;d+=1)a=c?"0"+a:a+"0";return a},Ut:function(a,b,c,d){c=c?0<=b:0>b;b=Math.abs(b);var e=b/60<<0;b%=60;d&&(e=O.TN(e,2,!0));a=a+(c?"-":"+")+e;if(0<b||d)a+=":"+O.TN(b,2,!0);return a},Kha:function(a,b){if(void 0===b)return"latn";var c=O.oD(b);void 0===a.numbers["symbols-numberSystem-"+c]&&(c="latn");return c},Dla:function(a){return a.split("-")[0]},c_:function(a){a=a.split("-");return 3===a.length?
a[2]:2===a.length&&2===a[1].length?a[1]:"001"},oD:function(a){a=a||"en-US";var b=a.indexOf("-u-nu-"),c="latn";-1!==b&&(c=a.substr(b+6,4));return c},Fla:function(a){var b=0,c;for(c in a)b++;return b},je:function(a){a=a.main;var b,c;for(c in a){b=c;break}return a[b]},Uq:function(a){a=a.main;var b,c;for(c in a){b=c;break}return b},Wfa:function(a){if("string"===typeof a)switch(a.toLowerCase().trim()){case "true":case "1":return!0;case "false":case "0":return!1}return a},Df:function(a,b){if(void 0===a)throw Error("Internal "+
b+" error. Default options missing.");return function(c,d,e,f){if(void 0!==a[c]){f=a[c];switch(d){case "boolean":f=O.Wfa(f);break;case "string":f=String(f);break;case "number":f=Number(f);break;default:throw Error("Internal error. Wrong value type.");}if(void 0!==e&&-1===e.indexOf(f)){d=[];for(f=0;f<e.length;f++)d.push(e[f]);e=new RangeError("The value '"+a[c]+"' is out of range for '"+b+"' options property '"+c+"'. Valid values: "+d);e.errorInfo={errorCode:"optionOutOfRange",parameterMap:{propertyName:c,
propertyValue:a[c],propertyValueValid:d,caller:b}};throw e;}}return f}},Lla:function(a,b,c,d){void 0===d&&(d={yja:"base",cma:"sort"});var e=O.Df(d,"OraI18nUtils.matchString");d.usage=e("usage","string",["sort","search"],"sort");d.sensitivity=e("sensitivity","string",["base","accent","case","variant"],"base");for(var f,h=a.length,k=b.length-1,e=0;e<h;e++)for(f=0;3>f;f++){var l=h-e,l=Math.min(l,k+f);if(0===a.substr(e,l).localeCompare(b,c,d))return[e,e+l-1]}return null}},Fe={fullYear:{Vm:0,Po:4},month:{Vm:1,
Po:2},date:{Vm:2,Po:2},hours:{Vm:3,Po:2},minutes:{Vm:4,Po:2},seconds:{Vm:5,Po:2},milliseconds:{Vm:6,Po:3},timeZone:{Vm:7}};O.isoToDate=function(a){return new Date(this._normalizeIsoString(a))};O._copyTimeOver=function(a,b){if(!a||!b)throw Error("Provided invalid arguments");b=this._normalizeIsoString(b);var c=a.indexOf("T"),d=b.indexOf("T");return b.substring(0,d)+(-1!==c?a.substring(c):"T00:00:00.000")};O._clearTime=function(a){return this._dateTime(a,{hours:0,minutes:0,seconds:0,milliseconds:0})};
O._dateTime=function(a,b,c){if(!a||!b)throw Error("Invalid argument invocation");var d,e=null,f=null,f=this.qb;a=this._normalizeIsoString(a);var h=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):?(\d{2})?\.?(\d{3})?(.*)?/.exec(a);if(!h)throw Error("Unable to capture anything");h=h.slice(1);if(Array.isArray(b))for(var e={},k=0,l=b.length;k<l;k++){if(f=b[k],f in Fe){a=Fe[f].Vm;d=h[a];if(c&&"timeZone"===f)throw Error("Dude you tried to ask timezone to be parsed");c?(d=parseInt(d,10),e[f]=1===a?d-1:d):e[f]=
d}}else if($.isPlainObject(b)){for(k in b)c=Fe[k],a=c.Vm,d=b[k],1===a&&"number"===typeof d&&d++,h[a]=c.Po?f(d,c.Po):d;e=h[0]+"-"+h[1]+"-"+h[2]+"T"+h[3]+":"+h[4]+":"+h[5]+(6<h.length&&h[6]?"."+h[6]+(8===h.length&&h[7]?h[7]:""):"")}return e};
O._normalizeIsoString=function(a){if(!a)throw Error("Provided invalid arguments");var b=(new Date).toISOString(),b=b.substring(0,b.indexOf("T")),c=a.indexOf("T"),d=-1===c?a:a.substring(0,c);-1!==c?(a=a.substring(c),a=1<a.split(":").length?a:a+":00"):a="T00:00:00.000";return(d||b)+a};O.formatHM=function(a){a=a.replace(/\'[^']*\'/g,"").replace(/[^hHma]*/g,"");return a=a.replace(/(h|H)+/,"h").replace(/m+/,"m")};
O.extractHourCode=function(a,b){var c;"h"===a?(c=b.match(/([hH]+)/),c=c[1]):"m"===a&&(c=b.match(/(m+)/),c=c[1]);return c};O.hFormat=function(a){return 0===a?"12":""+a};O.hhFormat=function(a){return 0===a?"12":("0"+a).slice(-2)};O.HFormat=function(a){return""+a};O.HHFormat=function(a){return("0"+a).slice(-2)};O.mmFormat=function(a){return("0"+a).slice(-2)};O.tla=function(a){return["AM","PM"][a]};O.bka={h:O.hFormat,hh:O.hhFormat,H:O.HFormat,HH:O.HHFormat,mm:O.mmFormat};
O.numberParser=function(a){return a.match(/^\d+$/)?parseInt(a,10):-1};O.hour12Parser=function(a){return a.match(/^\d+$/)?(a=parseInt(a,10),0===a&&(a=-1),12===a&&(a=0),a):-1};O.ampmParser=function(a){a=a.toLowerCase().charAt(0);return"a"===a?0:"p"===a?1:-1};O.eka={h:O.hour12Parser,hh:O.hour12Parser,H:O.numberParser,HH:O.numberParser,mm:O.numberParser};O.isoToMinutes=function(a){a=O.isoToLocalDate(a);return 60*a.getHours()+a.getMinutes()};
O.minutesToIso=function(a){a=Math.floor(a);var b=Math.floor(a/60);a%=60;return"T"+O.HHFormat(b)+":"+O.mmFormat(a)};function Be(a){this.Init(a)}t("IntlDateTimeConverter",Be,w);H(Be,ve,"oj.IntlDateTimeConverter");var Ge=new Date(1998,10,29,15,45,31);Be.prototype.Init=function(a){Be.o.Init.call(this,a)};A("IntlDateTimeConverter.prototype.Init",{Init:Be.prototype.Init});Be.prototype.yk=function(){this.Dx||(this.Dx=Me.Rt());return this.Dx};
Be.prototype.format=function(a){var b=w.za.Vh(),c=w.T.gg(),d=this.resolvedOptions();if(null==a||"string"===typeof a&&0===w.Ca.trim(""+a).length)return"";try{return this.yk().format(a,b,d,c)}catch(e){throw a=this.Xn(e,a),a;}};A("IntlDateTimeConverter.prototype.format",{format:Be.prototype.format});Be.prototype.jD=function(a,b){var c=w.za.Vh(),d=w.T.gg();try{return this.yk().jD(a,c,b,d)}catch(e){throw c=this.Xn(e,a),c;}};A("IntlDateTimeConverter.prototype.formatRelative",{jD:Be.prototype.jD});
Be.prototype.uc=function(){var a=this.resolvedOptions().patternFromOptions||this.Gh().pattern;return a?a.toLowerCase():""};A("IntlDateTimeConverter.prototype.getHint",{uc:Be.prototype.uc});Be.prototype.RA=function(){var a="";try{a=this.format(w.pa.dateToLocalIso(Ge))}catch(b){b instanceof oe&&(a="")}finally{return a}};Be.prototype.Gh=function(){return Be.o.Gh.call(this)};A("IntlDateTimeConverter.prototype.getOptions",{Gh:Be.prototype.Gh});
Be.prototype.resolvedOptions=function(){var a,b=w.T.gg(),c=this.Gh();if(b!==this.Vs||!this.hx){a=w.za.Vh();try{if(!a)return w.l.error("locale bundle for the current locale %s is unavailable",b),{};this.hx=this.yk().resolvedOptions(a,c,b);this.Vs=b}catch(d){throw a=this.Xn(d),a;}}return this.hx};A("IntlDateTimeConverter.prototype.resolvedOptions",{resolvedOptions:Be.prototype.resolvedOptions});Be.prototype.cy=function(){var a=this.resolvedOptions(),b=a.hour12;return a.hour&&!b?!0:!1};
A("IntlDateTimeConverter.prototype.isHourInDaySet",{cy:Be.prototype.cy});Be.prototype.by=function(){var a=this.resolvedOptions(),b=a.hour12;return a.hour&&b?!0:!1};A("IntlDateTimeConverter.prototype.isHourInAMPMSet",{by:Be.prototype.by});Be.prototype.ey=function(){return this.resolvedOptions().minute?!0:!1};A("IntlDateTimeConverter.prototype.isMinuteSet",{ey:Be.prototype.ey});Be.prototype.gy=function(){return this.resolvedOptions().second?!0:!1};A("IntlDateTimeConverter.prototype.isSecondSet",{gy:Be.prototype.gy});
Be.prototype.dy=function(){return this.resolvedOptions().millisecond?!0:!1};A("IntlDateTimeConverter.prototype.isMilliSecondSet",{dy:Be.prototype.dy});Be.prototype.hy=function(){return this.resolvedOptions().year?!0:!1};A("IntlDateTimeConverter.prototype.isYearSet",{hy:Be.prototype.hy});Be.prototype.fy=function(){return this.resolvedOptions().month?!0:!1};A("IntlDateTimeConverter.prototype.isMonthSet",{fy:Be.prototype.fy});Be.prototype.ay=function(){return this.resolvedOptions().day?!0:!1};
A("IntlDateTimeConverter.prototype.isDaySet",{ay:Be.prototype.ay});Be.prototype.$x=function(){return this.resolvedOptions().weekday?!0:!1};A("IntlDateTimeConverter.prototype.isDayNameSet",{$x:Be.prototype.$x});Be.prototype.oo=function(a){return this.yk().oo(a,w.za.Vh(),w.T.gg())};A("IntlDateTimeConverter.prototype.calculateWeek",{oo:Be.prototype.oo});
Be.prototype.parse=function(a){var b,c;if(null==a||""===a)return null;var d=w.za.Vh(),e=w.T.gg(),f=this.resolvedOptions();try{return b=this.yk().parse(a,d,f,e),(c=b.value)&&b.warning&&w.l.warn("The value "+a+" was leniently parsed to represent a date "+c.toString?c.toString():c),c}catch(h){throw a=this.Xn(h,a),a;}};A("IntlDateTimeConverter.prototype.parse",{parse:Be.prototype.parse});
Be.prototype.Qc=function(a,b){var c=w.Ca.ed;if(!c(a)||!c(b))throw Error("Invalid arguments for compareISODates ",a,b);return this.yk().Qc(a,b,w.za.Vh())};A("IntlDateTimeConverter.prototype.compareISODates",{Qc:Be.prototype.Qc});
Be.prototype.Xn=function(a,b){var c=a.errorInfo,d,e,f,h;if(c)if(d=c.errorCode,c=c.parameterMap||{},w.i.xf(c),f=c.propertyName,a instanceof TypeError){if("optionTypesMismatch"===d||"optionTypeInvalid"===d)e=w.pa.Yr(d,c)}else a instanceof RangeError?"optionOutOfRange"===d?e=w.pa.Yr(d,c):"datetimeOutOfRange"===d&&(d=w.ba.r("oj-converter.datetime.datetimeOutOfRange.summary",{propertyName:f,value:c.value}),e=w.ba.r("oj-converter.datetime.datetimeOutOfRange.detail",{minValue:c.minValue,maxValue:c.maxValue}),
e=new oe(d,e)):a instanceof SyntaxError?"optionValueInvalid"===d&&(e=w.pa.Yr(d,c)):a instanceof Error&&("dateFormatMismatch"===d?h="oj-converter.datetime.dateFormatMismatch.summary":"timeFormatMismatch"===d?h="oj-converter.datetime.timeFormatMismatch.summary":"datetimeFormatMismatch"===d?h="oj-converter.datetime.datetimeFormatMismatch.summary":"invalidTimeZoneID"===d?(d=w.ba.r("oj-converter.datetime.invalidTimeZoneID.summary",{timeZoneID:c.timeZoneID}),e=w.ba.r("oj-converter.hint.detail",{exampleValue:this.RA()}),
e=new oe(d,e)):"nonExistingTime"===d?h="oj-converter.datetime.nonExistingTime.summary":"missingTimeZoneData"===d?h="oj-converter.datetime.missingTimeZoneData.summary":"dateToWeekdayMismatch"===d&&(d=w.ba.r("oj-converter.datetime.dateToWeekdayMismatch.summary",{date:c.date,weekday:c.weekday}),e=w.ba.r("oj-converter.datetime.dateToWeekdayMismatch.detail"),e=new oe(d,e)),h&&(d=w.ba.r(h,{value:b||c.value,format:c.format}),e=w.ba.r("oj-converter.hint.detail",{exampleValue:this.RA()}),e=new oe(d,e)));e||
(e=d=a.message,e=new oe(d,e));return e};function De(a){this.Init(a)}t("NumberRangeValidator",De,w);H(De,we,"oj.NumberRangeValidator");De.prototype.Init=function(a){De.o.Init.call(this);a&&(this.Zf=a.min,this.Kg=a.max,this.Ib=w.pa.getConverterInstance(a.converter),this.tw=a.hint||{},this.Ov=a.messageSummary||{},this.Nv=a.messageDetail||{})};A("NumberRangeValidator.prototype.Init",{Init:De.prototype.Init});
De.prototype.validate=function(a){var b=a?a.toString():a,c=parseFloat(b),d=this.Ov,e=this.Nv,f=e.rangeOverflow,e=e.rangeUnderflow,h=d.rangeOverflow,d=d.rangeUnderflow,k=void 0!==this.Zf?parseFloat(this.Zf):null,l=void 0!==this.Kg?parseFloat(this.Kg):null,m=k&&this.Ib?this.Ib.format(k):k,n=l&&this.Ib?this.Ib.format(l):l,p="",q="",r=null,s=w.ba;if(null===a)return a;if(null!==k&&null!==l){if(c>=k&&c<=l||k>l)return b}else if(null!==k){if(c>=k)return b}else if(null===l||c<=l)return b;null!==l&&c>l?(r=
{value:a,max:n},p=h?h:s.r("oj-validator.range.number.messageSummary.rangeOverflow"),q=f?s.Db(f,r):s.r("oj-validator.range.number.messageDetail.rangeOverflow",r)):null!==k&&c<k&&(r={value:a,min:m},p=d?d:s.r("oj-validator.range.number.messageSummary.rangeUnderflow"),q=e?s.Db(e,r):s.r("oj-validator.range.number.messageDetail.rangeUnderflow",r));throw new pe(p,q);};A("NumberRangeValidator.prototype.validate",{validate:De.prototype.validate});
De.prototype.uc=function(){var a=null,b=this.tw,c=b.inRange,d=b.min,b=b.max,e=w.ba,f=void 0!==this.Zf?parseFloat(this.Zf):null,h=void 0!==this.Kg?parseFloat(this.Kg):null,k=f&&this.Ib?this.Ib.format(f):f,l=h&&this.Ib?this.Ib.format(h):h;null!==f&&null!==h?a=c?e.Db(c,{min:k,max:l}):e.r("oj-validator.range.number.hint.inRange",{min:k,max:l}):null!==f?a=d?e.Db(d,{min:k}):e.r("oj-validator.range.number.hint.min",{min:k}):null!==h&&(a=b?e.Db(b,{max:l}):e.r("oj-validator.range.number.hint.max",{max:l}));
return a};A("NumberRangeValidator.prototype.getHint",{uc:De.prototype.uc});function Ae(a){this.Init(a)}t("IntlNumberConverter",Ae,w);H(Ae,ue,"oj.IntlNumberConverter");Ae.prototype.Init=function(a){Ae.o.Init.call(this,a)};A("IntlNumberConverter.prototype.Init",{Init:Ae.prototype.Init});Ae.prototype.yk=function(){this.Dx||(this.Dx=Ne.Rt());return this.Dx};
Ae.prototype.format=function(a){var b,c,d;if(null==a||"string"===typeof a&&0===w.Ca.trim(""+a).length||"number"===typeof a&&isNaN(a))return"";b=w.T.gg();c=w.za.Vh();d=this.resolvedOptions();try{return this.yk().format(a,c,d,b)}catch(e){throw a=this.Xn(e,a),a;}};A("IntlNumberConverter.prototype.format",{format:Ae.prototype.format});Ae.prototype.uc=function(){return null};A("IntlNumberConverter.prototype.getHint",{uc:Ae.prototype.uc});Ae.prototype.Gh=function(){return Ae.o.Gh.call(this)};
A("IntlNumberConverter.prototype.getOptions",{Gh:Ae.prototype.Gh});Ae.prototype.parse=function(a){var b,c,d;if(null==a||""===a)return null;b=w.T.gg();c=w.za.Vh();d=this.resolvedOptions();try{return this.yk().parse(w.Ca.trim(a),c,d,b)}catch(e){throw a=this.Xn(e,a),a;}};A("IntlNumberConverter.prototype.parse",{parse:Ae.prototype.parse});
Ae.prototype.resolvedOptions=function(){var a;a=w.T.gg();var b;if(a!==this.Vs||!this.hx){b=w.za.Vh();try{if(!b)return w.l.error("locale bundle for the current locale %s is unavailable",a),{};this.hx=this.yk().resolvedOptions(b,this.Gh(),a);this.Vs=a}catch(c){throw a=this.Xn(c),a;}}return this.hx};A("IntlNumberConverter.prototype.resolvedOptions",{resolvedOptions:Ae.prototype.resolvedOptions});
Ae.prototype.Xn=function(a,b){var c,d,e=a.errorInfo,f;if(e){d=e.errorCode;e=e.parameterMap;w.i.xf(e);switch(d){case "optionTypesMismatch":case "optionTypeInvalid":c=w.pa.Yr(d,e);break;case "optionOutOfRange":c=w.pa.Yr(d,e);break;case "optionValueInvalid":c=w.pa.Yr(d,e);break;case "decimalFormatMismatch":f="oj-converter.number.decimalFormatMismatch.summary";break;case "currencyFormatMismatch":f="oj-converter.number.currencyFormatMismatch.summary";break;case "percentFormatMismatch":f="oj-converter.number.percentFormatMismatch.summary";
break;case "unsupportedParseFormat":d=w.ba.r("oj-converter.number.decimalFormatUnsupportedParse.summary"),c=w.ba.r("oj-converter.number.decimalFormatUnsupportedParse.detail"),c=new oe(d,c)}f&&(d=w.ba.r(f,{value:b||e.value,format:e.format}),c=w.ba.r("oj-converter.hint.detail",{exampleValue:this.RA()}),c=new oe(d,c))}c||(c=d=a.message,c=new oe(d,c));return c};Ae.prototype.RA=function(){var a="";try{a=this.format(12345.98765)}catch(b){b instanceof oe&&(a="",w.l.error("error retrieving hint value in format"))}finally{return a}};
var Oe;
Oe=function(){function a(a,b){var c=b.zones[a];if(z.test(a)){var d=0,e=a.replace(z,"").split(":"),c=60*parseInt(e[0],10);if(isNaN(c)||2===e.length&&(d=parseInt(e[1],10),isNaN(d)))return;c+=0<=c?d:-d;if(c<B||c>C)return;c=n(c,1);c=a.replace("/etc//i","").toUpperCase()+"|"+c+"|0|"}void 0!==c&&this.Iea(m(a,c))}function b(){return{M_:function(a,b){var c=b.supplemental.timeZoneData;void 0===c&&y();var d=r(a,c);if(!d){var e=c.links[a];e&&(d=r(e,c))}d||u(a);return d}}}var c={},d,e,f,h,k,l,m,n,p,q,r,s,u,v,
y,z=/^Etc\/GMT/i,B=-840,C=720;p=function(a,b){for(var c=".",d="",e;0<b;)b-=1,a*=60,e=Math.floor(a+1E-6),c+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX"[e],a-=e,e&&(d+=c,c="");return d};n=function(a,b){for(var c="",d=Math.abs(a),e=Math.floor(d),d=p(d-e,Math.min(~~b,10));0<e;)c="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX"[e%60]+c,e=Math.floor(e/60);0>a&&(c="-"+c);return c&&d?c+d:d||"-"!==c?c||d||"0":"0"};e=function(a){return 96<a?a-87:64<a?a-29:a-48};f=function(a){var b=
0,c=a.split("."),d=c[0],c=c[1]||"",f=1,h=0,k=1;45===a.charCodeAt(0)&&(b=1,k=-1);for(;b<d.length;b++)a=e(d.charCodeAt(b)),h=60*h+a;for(b=0;b<c.length;b++)f/=60,a=e(c.charCodeAt(b)),h+=a*f;return h*k};h=function(a){for(var b=0;b<a.length;b++)a[b]=f(a[b])};k=function(a,b){for(var c=0;c<b;c++)a[c]=Math.round((a[c-1]||0)+6E4*a[c]);a[b-1]=Infinity};l=function(a,b){var c=[],d;for(d=0;d<b.length;d++)c[d]=a[b[d]];return c};m=function(a,b){var c=b.split("|"),d=c[1].split(" "),e=c[2].split(""),f=c[3].split(" ");
h(d);h(e);h(f);k(f,e.length);return{name:a,eZ:l(c[0].split(" "),e),vu:l(d,e),NN:f}};u=function(a){var b;b=Error("invalid timeZone ID: "+a);b.errorInfo={errorCode:"invalidTimeZoneID",parameterMap:{timeZoneID:a}};throw b;};v=function(){var a;a=Error("The input time does not exist because it falls during the transition to daylight saving time.");a.errorInfo={errorCode:"nonExistingTime"};throw a;};y=function(){var a;a=Error("TimeZone data is missing. Please call require 'ojs/ojtimezonedata' in order to load the TimeZone data.");
a.errorInfo={errorCode:"missingTimeZoneData"};throw a;};a.prototype={Iea:function(a){this.name=a.name;this.eZ=a.eZ;this.NN=a.NN;this.vu=a.vu},parse:function(a,b,c,d){var e=this.vu,f=this.NN,h=f.length-1,k,r,l,s,m,u,q;for(l=0;l<h;l++){k=e[l];r=e[l+1];q=f[l];s=q-6E4*k;m=s+36E5;u=s-36E5;if(a>=s&&a<m&&k>r)if(!0===d)v();else return l+1;if(a>=u&&a<s&&k<r)return b?l:l+1;if(a<q-6E4*k){if(!1===c){if(b)return k<r?l:l+1;if(k<r)return l+1}return l}}return h},yl:function(a){var b=this.vu.length;return 0<=a&&a<
b?parseInt(this.vu[a],10):parseInt(this.vu[b-1],10)}};q=function(a){return(a||"").toLowerCase().replace(/\//g,"_")};s=function(b,d){var e,f;e=new a(b,d);f=q(e.name);c[f]=e};r=function(a,b){var d=q(a);void 0===c[d]&&s(a,b);return c[q(a)]||null};return{Rt:function(){d||(d=b());return d}}}();var Ne;
Ne=function(){function a(){return{format:function(a,b,d,e){if(2>=arguments.length||void 0===d)d={useGrouping:!0,style:"decimal"};q(d,"OraNumberConverter.format");var f={};p(b,f,d,e);return c(a,d,b,f,e)},parse:function(a,b,c,e){if("number"===typeof a)return a;if("[object Number]"===Object.prototype.toString.call(a))return Number(a);if(2>=arguments.length||void 0===c)c={useGrouping:!0,style:"decimal"};q(c,"OraNumberConverter.parse");return d(a,b,c,e)},resolvedOptions:function(a,b,c){if(3>arguments.length||
void 0===c)c=O.Uq(a);if(2>arguments.length||void 0===b)b={useGrouping:!0,style:"decimal"};var d=Aa(a,b,c);return fa(d,b,c)}}}var b,c,d,e,f,h,k,l,m,n,p,q,r,s,u,v,y,z,B,C,F,I,G,E,D,J,Q,P,U,K,ha,ra,ia,Aa,fa,Nb=/^[+\-]?infinity$/i,Qa=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,Xb=/([^+-.0-9]*)([+\-]?\d*\.?\d*(E[+\-]?\d+)?).*$/,Fa=/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,na=/(^0\.0*)([^0].*$)/,$a={trillion:[1E14,1E13,1E12],billion:[1E11,1E10,1E9],million:[1E8,1E7,1E6],thousand:[1E5,1E4,1E3]},Hc={trillion:1E12,billion:1E9,
million:1E6,thousand:1E3},kc={HALF_UP:"ceil",HALF_DOWN:"floor",DEFAULT:"round"};b=function(a,b,c){var d;for(d=a.length;d<b;d+=1)a=c?"0"+a:a+"0";return a};y=function(a,b,c,d){var e=new RangeError(a+" is out of range.  Enter a value between "+b+" and "+c+" for "+d);e.errorInfo={errorCode:"numberOptionOutOfRange",parameterMap:{value:a,minValue:b,maxValue:c,propertyName:d}};throw e;};F=function(a,b,c,d,e){a=a[b];return void 0!==a?(a=Number(a),(isNaN(a)||a<c||a>d)&&y(a,c,d,b),Math.floor(a)):e};u=function(a,
b){if(void 0===b)return"latn";var c=I(b);void 0===a.numbers["symbols-numberSystem-"+c]&&(c="latn");return c};v=function(a){return a.split("-")[0]};I=function(a){a=a||"en-US";var b=a.indexOf("-u-nu-"),c="latn";-1!==b&&(c=a.substr(b+6,4));return c};p=function(a,b,c,d){var e=O.je(a);d=u(e,d);b.numberingSystemKey=d;b.numberingSystem="symbols-numberSystem-"+d;if(void 0!==c.pattern&&0<c.pattern.length)d=c.pattern;else{switch(c.style){case "decimal":d="decimalFormats-numberSystem-";break;case "currency":d=
"currencyFormats-numberSystem-";break;case "percent":d="percentFormats-numberSystem-";break;default:d="decimalFormats-numberSystem-"}d+=b.numberingSystemKey;d=e.numbers[d].standard;var f=c.decimalFormat;void 0!==f&&"decimal"===c.style&&(b.shortDecimalFormat=e.numbers["decimalFormats-numberSystem-latn"][f].decimalFormat)}f=v(O.Uq(a));b.plurals=a.supplemental.plurals;b.lang=f;b.pat=d;b.minusSign=e.numbers[b.numberingSystem].minusSign;b.decimalSeparator=e.numbers[b.numberingSystem].decimal;b.exponential=
e.numbers[b.numberingSystem].exponential;b.groupingSeparator=e.numbers[b.numberingSystem].group;b.currencyDisplay=c.currencyDisplay;void 0!==c.currency&&(b.currencyCode=c.currency.toUpperCase());b.style=c.style;k(c,d,e,b);void 0===c.pattern&&(b.minimumIntegerDigits=F(c,"minimumIntegerDigits",1,21,b.minimumIntegerDigits),void 0!==c.maximumFractionDigits&&(b.maximumFractionDigits=F(c,"maximumFractionDigits",0,20,b.maximumFractionDigits),b.maximumFractionDigits<b.minimumFractionDigits&&(b.minimumFractionDigits=
b.maximumFractionDigits)),void 0!==c.minimumFractionDigits&&(b.minimumFractionDigits=F(c,"minimumFractionDigits",0,20,b.minimumFractionDigits)),b.maximumFractionDigits<b.minimumFractionDigits&&(b.maximumFractionDigits=b.minimumFractionDigits))};s=function(a){var b=new TypeError('The property "currency" is required whenthe property "'+a+'" is "currency". An accepted value is a three-letter ISO 4217 currency code.');b.errorInfo={errorCode:"optionTypesMismatch",parameterMap:{propertyName:a,propertyValue:"currency",
requiredPropertyName:"currency",requiredPropertyValueValid:"a three-letter ISO 4217 currency code"}};throw b;};D=function(){var a;a=Error("long and short decimalFormats are not supported for parsing");a.errorInfo={errorCode:"unsupportedParseFormat",parameterMap:{value:"decimal"}};throw a;};q=function(a,b){var c=O.Df(a,b),d=c("style","string",["currency","decimal","percent","perMill"],"decimal");"decimal"===d&&(d=c("decimalFormat","string",["standard","short","long"]),"OraNumberConverter.parse"===
b&&void 0!==d&&"standard"!==d&&D());var e=c("currency","string");"currency"===d&&void 0===e&&s("style");c("roundingMode","string",["HALF_UP","HALF_DOWN","HALF_EVEN"],"DEFAULT")};P=function(a,b,c){function d(a){var b=0,c=0,e=0,f="";if("0"!==a[0]){for(;"0"!==a[b]&&b<a.length;)b++;f=a.substr(0,b);e=b}for(b=e;b<a.length;b++)if("0"===a[b])c++;else break;return[f,c]}var e=function(a){var b,c,d;for(b in $a)for(d=$a[b].length,c=0;c<d;c++)if($a[b][c]<=a)return[b,$a[b][c]];return[a,null]}(a),f="";if(null!==
e[1]){var f=c.plurals[c.lang](Math.floor(a/Hc[e[0]])),h=""+e[1]+"-count-"+f,h=c.shortDecimalFormat[h];void 0===h&&(h=""+e[1]+"-count-other",h=c.shortDecimalFormat[h]);var k=d(h),r=k[1],f=k[0];if(r<h.length){var l=1*Math.pow(10,r),l=e[1]/l*10;a/=l}}e="";void 0!==h&&(e=h.substr(r+k[0].length));a=J(a,b,c);return f+a+e};Q=function(a,c){var d=a+"",e=0,f=d.split(/e/i),h=f[0];na.lastIndex=0;var k=na.exec(h);null!==k?(e=k[1].length-1,h=k[2]):h=h.replace(".","");var k=1<f.length?parseInt(f[1],10):0,f=parseInt(h,
10),r=c.minimumIntegerDigits+c.maximumFractionDigits;h.length>r&&(r-=h.length,f=Math.round(f*Math.pow(10,r)));r=c.minimumIntegerDigits+c.minimumFractionDigits;f=b(f+"",r,!1);k=-1!==d.indexOf(".")?k-(c.minimumIntegerDigits-d.indexOf(".")+e):k-(r-h.length-c.minimumFractionDigits);d=Math.abs(k);d=b(d+"",c.minExponentDigits,!0);0>k&&(d=c.minusSign+d);e=f.slice(0,c.minimumIntegerDigits);return e=0<f.slice(c.minimumIntegerDigits).length?e+(c.decimalSeparator+f.slice(c.minimumIntegerDigits)+c.exponential+
d):e+(c.exponential+d)};J=function(a,c,d){var e=d.groupingSize,f=d.groupingSize0,h,k=(a+"").split(/e/i),r=1<k.length?parseInt(k[1],10):0;h=k[0];var k=h.split("."),l=1<k.length?k[1]:"";if(1<k.length&&l.length>r){var s=Math.min(d.maximumFractionDigits,l.length-r);a=z(a,s,c.roundingMode||"DEFAULT")}k=(a+"").split(/e/i);r=1<k.length?parseInt(k[1],10):0;h=k[0];k=h.split(".");h=k[0];l=1<k.length?k[1]:"";0<r?(l=b(l,r,!1),h+=l.slice(0,r),l=l.substr(r)):0>r&&(r=-r,h=b(h,r+1,!0),l=h.slice(-r,h.length)+l,h=
h.slice(0,-r));l=0<s?d.decimalSeparator+(l.length>s?l.slice(0,s):b(l,s,!1)):0<d.minimumFractionDigits?d.decimalSeparator:"";l=b(l,d.decimalSeparator.length+d.minimumFractionDigits,!1);a=d.groupingSeparator;k="";!1===c.useGrouping&&void 0===c.pattern&&(a="");h=b(h,d.minimumIntegerDigits,!0);c=h.length-1;for(l=1<l.length?l:"";0<=c;){if(0===e||e>c)return e=h.slice(0,c+1)+(k.length?a+k+l:l);k=h.slice(c-e+1,c+1)+(k.length?a+k:"");c-=e;0<f&&(e=f)}return e=h.slice(0,c+1)+a+k+l};G=function(a,b,c){if("HALF_DOWN"===
c||"HALF_EVEN"===c)a=a.substr(b),a=parseInt(a,10),5<a&&(c="HALF_UP");return c};z=function(a,b,c){var d=a.toString().split(".");if(void 0===d[1])return a;if("5"===d[1][b]&&"DEFAULT"!==c)return c=G(d[1],b,c),c=C(d,c,b),B(a,-b,c,d);b=Math.pow(10,b);b=Math.round(a*b)/b;return isFinite(b)?b:a};C=function(a,b,c){var d=kc[b];"HALF_EVEN"===b&&(d=0==(0===c?parseInt(a[0][a[0].length-1],10):parseInt(a[1][c-1],10))%2?kc.HALF_DOWN:kc.HALF_UP);return d};B=function(a,b,c,d){if(0===b)return"5"===d[1][0]?Math[c](a):
Math.round(a);d=a.toString().split("e");a=d[0];d=d[1];a=a+"e"+(d?parseInt(d,10)-b:-b);a=parseFloat(a);a=Math[c](a);d=a.toString().split("e");a=d[0];d=d[1];a=a+"e"+(d?parseInt(d,10)+b:b);return a=parseFloat(a)};c=function(a,b,c,d,e){c=O.je(c);if(!isFinite(a))return Infinity===a||-Infinity===a?c.numbers[d.numberingSystem].infinity:c.numbers[d.numberingSystem].nan;c=Math.abs(a);!0===d.isPercent||"percent"===b.style?c*=100:!0===d.isPerMill&&(c*=1E3);c="decimal"===b.style&&void 0!==b.decimalFormat&&"standard"!==
b.decimalFormat?P(c,b,d):!0===d.useExponentialNotation?Q(c,d):J(c,b,d);b="";b=0>a?b+(d.negativePrefix+c+d.negativeSuffix):b+(d.positivePrefix+c+d.positiveSuffix);a=I(e);void 0===O.xl[a]&&(a="latn");if("latn"!==a){e=[];for(d=0;d<b.length;d++)"0"<=b[d]&&"9">=b[d]?e.push(O.xl[a][b[d]]):e.push(b[d]);return e.join("")}return b};l=function(a,b,c,d){a=O.Bl(a);var e="",f=!1,h=new RegExp("^"+d.numbers[c.numberingSystem].plusSign.replace(Fa,"\\$1"));a=a.replace(h,"");var k=O.Bl(c.positivePrefix),r=O.Bl(c.positiveSuffix),
l=O.Bl(c.negativePrefix),h=O.Bl(c.negativeSuffix),s=new RegExp("^"+(k||"").replace(Fa,"\\$1")),u=new RegExp((r||"").replace(Fa,"\\$1")+"$"),q=new RegExp("^"+(l||"").replace(Fa,"\\$1")),n=new RegExp((h||"").replace(Fa,"\\$1")+"$");if(!0===q.test(a)&&!0===n.test(a))a=a.replace(q,""),a=a.replace(n,""),e="-",f=!0;else if(!0===s.test(a)&&!0===u.test(a))a=a.replace(s,""),a=a.replace(u,""),e="+",f=!0;else if("currency"===b.style){b=s=c.currencyCode;var v;void 0!==d.numbers.currencies[s]&&(b=d.numbers.currencies[s].symbol);
void 0===c.currencyDisplay||"symbol"===c.currencyDisplay?v=b:"code"===c.currencyDisplay&&(v=s);void 0!==v&&(s=(k||"").replace(v,""),r=(r||"").replace(v,""),l=(l||"").replace(v,""),v=(h||"").replace(v,""),s=new RegExp(("^"+s).replace(Fa,"\\$1")),u=new RegExp(r.replace(Fa,"\\$1")+"$"),q=new RegExp(("^"+l).replace(Fa,"\\$1")),n=new RegExp(v.replace(Fa,"\\$1")+"$"),!0===q.test(a)&&!0===n.test(a)?(a=a.replace(q,""),a=a.replace(n,""),e="-",f=!0):!0===s.test(a)&&!0===u.test(a)&&(a=a.replace(s,""),a=a.replace(u,
""),e="+",f=!0))}f?c=[e,a]:(c=m(a,c,d),c[2]=!0);return c};m=function(a,b,c){var d=c.numbers[b.numberingSystem].group,e=c.numbers[b.numberingSystem].decimal,f=c.numbers[b.numberingSystem].minusSign,h="",k="";b=O.rg(c.numbers[b.numberingSystem].exponential);a=O.rg(a);a=a.split(b).join("E");a=a.split(d).join("");b=d.replace(/\u00A0/g," ");d!==b&&(a=a.split(b).join(""));a=a.split(e).join(".");"."===a.charAt(0)&&(a=a.substr(1),k=".");a=a.replace(f,"-");d=Xb.exec(a);k+=d[2];O.sr(k,"-")?(k=k.substr(1),h=
"-"):O.sr(a,"+")&&(k=k.substr(1),h="+");return[h,k]};n=function(a,b,c){var d=b.numbers[c.numberingSystem].minusSign;b=b.numbers[c.numberingSystem].plusSign;var e;a=O.Bl(a);d=O.Bl(d);b=O.Bl(b);O.sr(a,d)?e=["-",a.substr(d.length)]:O.sr(a,O.Bl(b))&&(e=["+",a.substr(b.length)]);return e||["",a]};e=function(a,b){var c=I(b);if(void 0===O.xl[c])return a;var d,e=[];for(d=0;d<a.length;d++){var f=O.xl[c].indexOf(a[d]);-1!==f?e.push(f):e.push(a[d])}return e.join("")};f=function(a,b,c){var d={},e=c.numbers[b.numberingSystem].decimal;
c=c.numbers[b.numberingSystem].group;a=a.replace(/ /g,"");var f=b.exponential,h=a.indexOf(f.toLowerCase());0>h&&(h=a.indexOf(O.rg(f)));0>h?(b=a,d.exponent=null):(b=a.substr(0,h),d.exponent=a.substr(h+f.length));f=b.indexOf(e);0>f?(a=b,d.fraction=null):(a=b.substr(0,f),d.fraction=b.substr(f+e.length));a=a.split(c).join("");e=c.replace(/\u00A0/g," ");c!==e&&(a=a.split(e).join(""));d.integer=a;return d};E=function(a,b,c,d){isNaN(a)&&h(b.style,c,d);!0===c.isPercent||"percent"===b.style?a/=100:!0===c.isPerMill&&
(a/=1E3);O.Df(b,"OraNumberConverter.parse")("roundDuringParse","boolean",[!0,!1],!1)&&(a=r(a,c,b));return a};h=function(a,b,c){var d,e;d="Unparsable number "+c+" The expected number pattern is "+b.pat;switch(a){case "decimal":e="decimalFormatMismatch";break;case "currency":e="currencyFormatMismatch";break;case "percent":e="percentFormatMismatch"}a=Error(d);a.errorInfo={errorCode:e,parameterMap:{value:c,format:b.pat}};throw a;};d=function(a,b,c,d){var h=O.je(b),k={},r=e(a,d);p(b,k,c,d);b=NaN;b=r.replace(/ /g,
"");if(Nb.test(b))return b=parseFloat(r);d=l(r,c,k,h);b=d[0];var s=d[1];b=b||"+";if(d[2])return b=parseFloat(b+s),E(b,c,k,a);var u=f(s,k,h);d=u.fraction;s=u.exponent;b+=u.integer;null!==d&&(b+="."+d);null!==s&&(d=n(s,h,k),b+="e"+(d[0]||"+")+d[1]);Qa.test(b)?b=parseFloat(b):(b=m(r,k,h),b=parseFloat(b[0]+b[1]));return E(b,c,k,a)};var zb,rb,Ga,sb;ia=function(a){var b;b=new SyntaxError('Unexpected character(s) encountered in the pattern "'+a+' An example of a valid pattern is "#,##0.###".');b.errorInfo=
{errorCode:"optionValueInvalid",parameterMap:{propertyName:"pattern",propertyValue:a,propertyValueHint:"#,##0.###"}};throw b;};K=function(a,b,c){return null!==(new RegExp(c,"i")).exec(a.substr(b,c.length))};ra=function(a,b){var c={};null!==zb&&(b.positivePrefix=ha(zb,a,b,c));null!==rb&&(b.positiveSuffix=ha(rb,a,b,c));null!==Ga&&(b.negativePrefix=ha(Ga,a,b,c));null!==sb&&(b.negativeSuffix=ha(sb,a,b,c));void 0!==c.name&&(b.positiveSuffix="\u00a0"+c.name,b.positivePrefix="","ar"===b.lang?(b.negativeSuffix=
a.numbers[b.numberingSystem].minusSign+"\u00a0"+c.name,b.negativePrefix=""):(b.negativeSuffix="\u00a0"+c.name,b.negativePrefix=a.numbers[b.numberingSystem].minusSign))};ha=function(a,b,c,d){for(var e="",f=0;f<a.length;){var h=a.charAt(f++);if("'"!==h){switch(h){case "\u00a4":var k=h=c.currencyCode,r=h;void 0!==b.numbers.currencies[h]&&(k=b.numbers.currencies[h].displayName,r=b.numbers.currencies[h].symbol);void 0===c.currencyDisplay||"symbol"===c.currencyDisplay?h=r:"code"!==c.currencyDisplay&&(h=
k,d.name=h);break;case "%":h=b.numbers[c.numberingSystem].percentSign;break;case "\u2030":h=b.numbers[c.numberingSystem].perMille;break;case "-":h=b.numbers[c.numberingSystem].minusSign}e=e.concat(h)}}return e};k=function(a,b,c,d){for(var e=!1,f=!1,h=0,k=0,r=!0,l=1;0<=l&&k<b.length;--l){for(var m=!1,u="",q="",n=-1,v=1,p=0,y=0,z=0,I=-1,G=-1,D,E=0,r=!0,B=k;B<b.length;++B){var C=b.charAt(B);switch(E){case 0:case 2:if(m){if("'"===C){B+1<b.length&&"'"===b.charAt(B+1)?(++B,r?u=u.concat("''"):q=q.concat("''")):
m=!1;continue}}else if("#"===C||"0"===C||","===C||"."===C){E=1;--B;continue}else if("\u00a4"===C){void 0===a.currency&&s("pattern");a.style="currency";(C=B+1<b.length&&"\u00a4"===b.charAt(B+1))&&++B;r?u=u.concat(C?"'\u00a4\u00a4":"'\u00a4"):q=q.concat(C?"'\u00a4\u00a4":"'\u00a4");continue}else if("'"===C){if("'"===C){B+1<b.length&&"'"===b.charAt(B+1)?(++B,r?u=u.concat("''"):q=q.concat("''")):m=!0;continue}}else if(";"===C){0!==E&&0!==l||ia(b);k=B+1;B=b.length;continue}else if("%"===C){a.style="percent";
1!==v&&ia(b);d.isPercent=!0;v=100;r?u=u.concat("'%"):q=q.concat("'%");continue}else if("\u2030"===C){1!==v&&ia(b);a.style="perMill";d.isPerMill=!0;v=1E3;r?u=u.concat("'\u2030"):q=q.concat("'\u2030");continue}else if("-"===C){r?u=u.concat("'-"):q=q.concat("'-");continue}r?u=u.concat(C):q=q.concat(C);break;case 1:if(1===l)++h;else{0===--h&&(E=2,r=!1);continue}if("#"===C)0<y?++z:++p,0<=I&&0>n&&++I;else if("0"===C)0<z&&ia(b),++y,0<=I&&0>n&&++I;else if(","===C)G=I,I=0;else if("."===C)0<=n&&ia(b),n=p+y+
z;else if(K(b,B,"E")){f&&ia(b);f=!0;D=0;for(B+=1;B<b.length&&"0"===b.charAt(B);)++D,++h,++B;(1>p+y||1>D)&&ia(b);E=2;r=!1;--B}else E=2,r=!1,--B,--h}}0===y&&0<p&&0<=n&&(y=n,0===y&&++y,z=p-y,p=y-1,y=1);(0>n&&0<z||0<=n&&(n<p||n>p+y)||0===I||m)&&ia(b);1===l?(zb=u,rb=q,Ga=zb,sb=rb,m=p+y+z,d.minimumIntegerDigits=(0<=n?n:m)-p,d.maximumIntegerDigits=f?p+d.minimumIntegerDigits:2147483647,d.maximumFractionDigits=0<=n?m-n:0,d.minimumFractionDigits=0<=n?p+y-n:0,d.groupingSize=0<I?I:0,d.groupingSize0=G):(Ga=u,
sb=q,e=!0)}0===b.length&&(zb=rb="",d.minimumIntegerDigits=0,d.maximumIntegerDigits=2147483647,d.minimumFractionDigits=0,d.maximumFractionDigits=2147483647);d.useExponentialNotation=f;d.minExponentDigits=D;if(!e||0===Ga.localeCompare(zb)&&0===sb.localeCompare(rb))"currency"===a.style&&"ar"===d.lang?(sb=rb+"'\u200f-",Ga=zb):(sb=rb,Ga="'-"+zb);ra(c,d)};r=function(a,b,c){var d=0>a;a=z(Math.abs(a),b.maximumFractionDigits,c.roundingMode||"DEFAULT");return d?-a:a};Aa=function(a,b,c){var d={};q(b,"OraNumberConverter.resolvedOptions");
p(a,d,b,c);d.numberingSystemKey=I(c);void 0===O.xl[d.numberingSystemKey]&&(d.numberingSystemKey="latn");return d};fa=function(a,b,c){c={locale:c,style:void 0===b.style?"decimal":b.style,useGrouping:void 0===b.useGrouping?!0:b.useGrouping,numberingSystem:a.numberingSystemKey};c.minimumIntegerDigits=a.minimumIntegerDigits;c.minimumFractionDigits=a.minimumFractionDigits;c.maximumFractionDigits=a.maximumFractionDigits;"decimal"===b.style&&void 0!==b.decimalFormat&&(c.decimalFormat=b.decimalFormat);"currency"===
b.style&&(c.currency=b.currency,c.currencyDisplay=void 0===b.currencyDisplay?"symbol":b.currencyDisplay);void 0!==b.pattern&&(c.pattern=b.pattern);a=b.roundingMode;b=b.roundDuringParse;void 0!==a&&(c.roundingMode=a);void 0!==b&&(c.roundDuringParse=b);return c};return{Rt:function(){U||(U=a());return U}}}();function Ce(a){this.Init(a)}t("RegExpValidator",Ce,w);H(Ce,we,"oj.RegExpValidator");Ce.prototype.Init=function(a){Ce.o.Init.call(this);this.Za=a};A("RegExpValidator.prototype.Init",{Init:Ce.prototype.Init});
Ce.prototype.validate=function(a){var b,c,d=this.Za&&this.Za.pattern||"",e;if(null===a||void 0===a||""===a)return!0;a=a||0===a?a.toString():a;var f;f=a.match("^("+d+")$");if(null===f||f[0]!==a)throw this.Za&&(e=this.Za.messageSummary||null,b=this.Za.messageDetail||null,c=this.Za&&this.Za.label||""),a={label:c,pattern:d,value:a},e=e?w.ba.Db(e,a):w.ba.r(this.rI(),a),b=b?w.ba.Db(b,a):w.ba.r(this.ZH(),a),new pe(e,b);return!0};A("RegExpValidator.prototype.validate",{validate:Ce.prototype.validate});
Ce.prototype.uc=function(){var a=null,b={};this.Za&&this.Za.hint&&(b={pattern:this.Za.pattern},a=w.ba.Db(this.Za.hint,b));return a};A("RegExpValidator.prototype.getHint",{uc:Ce.prototype.uc});Ce.prototype.rI=function(){return"oj-validator.regExp.summary"};Ce.prototype.ZH=function(){return"oj-validator.regExp.detail"};w.pa={};t("IntlConverterUtils",w.pa,w);w.pa.isoToDate=function(a){return O.isoToDate(a)};w.pa.isoToLocalDate=function(a){return O.isoToLocalDate(a)};w.pa.dateToLocalIso=function(a){return O.dateToLocalIso(a)};
w.pa.aU=function(a){return O.aU(a)};w.pa.getLocalTimeZoneOffset=function(){return O.getLocalTimeZoneOffset()};w.pa.getConverterInstance=function(a){var b="",c={},d=null;a&&("object"===typeof a&&(a instanceof te||a.parse&&"function"===typeof a.parse||a.format&&"function"===typeof a.format?d=a:(b=a.type,c=a.options||{})),d||(b=b||a)&&"string"===typeof b&&(a=w.ea.cg(b),d=a.createConverter(c)));return d};
w.pa._minMaxIsoString=function(a,b){if(a){b=b||this.dateToLocalIso(new Date);var c=b.indexOf("T");0===a.indexOf("T")&&0<c&&(a=b.substring(0,c)+a)}return a};
w.pa.Yr=function(a,b){w.i.xf(b);var c="",d="",e=b.propertyName,f;"optionTypesMismatch"===a?(d=b.requiredPropertyName,f=b.requiredPropertyValueValid,c=w.ba.r("oj-converter.optionTypesMismatch.summary",{propertyName:e,propertyValue:b.propertyValue,requiredPropertyName:d}),d=w.pa.XA(d,f)):"optionTypeInvalid"===a?(e=b.propertyName,f=b.propertyValueValid,c=w.ba.r("oj-converter.optionTypeInvalid.summary",{propertyName:e}),d=w.pa.XA(e,f)):"optionOutOfRange"===a?(c=w.ba.r("oj-converter.optionOutOfRange.summary",
{propertyName:e,propertyValue:b.propertyValue}),f=b.propertyValueValid,d=w.pa.XA(e,f)):"optionValueInvalid"===a&&(c=w.ba.r("oj-converter.optionValueInvalid.summary",{propertyName:e,propertyValue:b.propertyValue}),f=b.propertyValueHint,d=w.pa.XA(e,f));return new oe(c,d)};
w.pa.XA=function(a,b){var c;return b?("string"===typeof b?c="oj-converter.optionHint.detail":(c="oj-converter.optionHint.detail-plural",b=b.join(w.ba.r("oj-converter.plural-separator"))),w.ba.r(c,{propertyName:a,propertyValueValid:b})):""};w.pa.Fka=function(){return""};w.pa._copyTimeOver=function(a,b){return O._copyTimeOver(a,b)};w.pa._clearTime=function(a){return O._clearTime(a)};w.pa._dateTime=function(a,b,c){return O._dateTime(a,b,c)};w.pa._normalizeIsoString=function(a){return O._normalizeIsoString(a)};
var Me;
Me=function(){function a(){return{format:function(a,b,c,d){var e;if("number"===typeof a)e=O.dateToLocalIso(new Date(a));else if("string"===typeof a){if(e=O.trim(a),""===e)return null}else return null;if(2>=arguments.length||void 0===c)c={year:"numeric",month:"numeric",day:"numeric"};e=O.Qt(e);e=f(b,c,e,d);var h=O.oD(d);void 0===O.xl[h]&&(h="latn");if("latn"!==h){var k,r=[];for(k=0;k<e.length;k++)"0"<=e[k]&&"9">=e[k]?r.push(O.xl[h][e[k]]):r.push(e[k]);return r.join("")}return e},jD:function(a,b,c){return k(a,
b,c)},parse:function(a,b,c,d){return h(a,b,c,d)},resolvedOptions:function(a,b,c){if(3>arguments.length||void 0===c)c=O.Uq(a);if(2>arguments.length||void 0===b)b={year:"numeric",month:"numeric",day:"numeric"};var d,e,f,h=O.Df(b,"OraDateTimeConverter.resolvedOptions");void 0!==b&&(e=h("isoStrFormat","string",[he,Ie,io,md,Sg],Sg),f=h("dst","boolean",[!0,!1],!1),d=b.timeZone);var k=O.oD(c);void 0===O.xl[k]&&(k="latn");return void 0!==b&&void 0!==b.pattern?He(e,d,f,c,k,b):void 0!==b?Pg(b,h,d,f,e,a,k,c):
Ga(a,c,k)},oo:function(a){a=O.isoToLocalDate(a);var b=new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));a=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((a-b)/864E5)/7)+1},Cla:function(a){return go(a)},Qc:function(a,b,c){var d=mi(a,b);a=h(a,c,d,"en-US");b=h(b,c,d,"en-US");c=a.value.replace("Z","");b=b.value.replace("Z","");c=O.rp(c);c=Date.UTC(c[0],c[1]-1,c[2],c[3],c[4],c[5],c[6]);b=O.rp(b);b=Date.UTC(b[0],b[1]-1,b[2],b[3],b[4],b[5],b[6]);return c-b},Ila:function(a){return r(a)}}}
var b,c,d,e,f,h,k,l,m,n,p,q,r,s,u,v={},y={},z,B,C,F,I,G,E,D,J,Q,P,U,K,ha,ra,ia,Aa,fa,Nb,Qa,Xb,Fa,na,$a,Hc,kc,zb,rb,Ga,sb,Df,Pg,Ef,He,Qg,Rg,db,mi,uk,fo,co,ki,tk,li,eo,vk,wk,xk,yk,go,ho,zk,Ak,Bk,Tg,Ck,Je,Ke,jo,Dk,Ek,lo,mo,Jd,no,oo,po,Fk=/(\d{1,4})\D+?(\d{1,4})/g,Gk=/(\d{1,4})\D+?(\d{1,4})\D+?(\d{1,4})/g,qo=/^[M][^M]|[^M]M[^M]|[^M]M$|^M$/g,Qt=/^[L][^L]|[^L]L[^L]|[^L]L$|^L$/g,ro=/^[d][^d]|[^d]d[^d]|[^d]d$|^d$|^d[^d]/,so=/(?:^|[^h])h[^h]|[^H]H[^H]|[^k]k[^k]|[^K]K[^K]|^H[^H]|^H$|[^h]h$/,to=/'.*'/,uo=/'[^d]*d[^d]*'/,
vo=/(\d{1,2})(?:\D+?(\d{1,2}))?(?:\D+?(\d{1,2}))?(?:\D+?(\d{1,3}))?/g,ni=/h|H|K|k/g,wo=/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,Le=/ccccc|cccc|ccc|cc|c|EEEEE|EEEE|EEE|EE|E|dd|d|MMMMM|MMMM|MMM|MM|M|LLLLL|LLLL|LLL|LL|L|yyyy|yy|y|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|aa|a|SSS|SS|S|zzzz|zzz|zz|z|v|ZZZ|ZZ|Z|XXX|XX|X|VV|GGGGG|GGGG|GGG|GG|G/g,xo={0:"sun",1:"mon",2:"tue",3:"wed",4:"thu",5:"fri",6:"sat"},he="zulu",md="local",Sg="auto",io="invariant",Ie="offset",Vc={MMM:{token:"months",style:"format",mLen:"abbreviated",matchIndex:0,
key:"month",value:"short",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},MMMM:{token:"months",style:"format",mLen:"wide",matchIndex:0,key:"month",value:"long",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},MMMMM:{token:"months",style:"format",mLen:"narrow",matchIndex:0,key:"month",value:"narrow",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLL:{token:"months",style:"stand-alone",mLen:"abbreviated",matchIndex:1,key:"month",value:"short",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLLL:{token:"months",
style:"stand-alone",mLen:"wide",matchIndex:1,key:"month",value:"long",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLLLL:{token:"months",style:"stand-alone",mLen:"narrow",matchIndex:1,key:"month",value:"narrow",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},E:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},EE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},
EEE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},EEEE:{token:"days",style:"format",dLen:"wide",matchIndex:0,key:"weekday",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},EEEEE:{token:"days",style:"format",dLen:"narrow",matchIndex:0,key:"weekday",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},c:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},cc:{token:"days",style:"stand-alone",
dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},ccc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},cccc:{token:"days",style:"stand-alone",dLen:"wide",matchIndex:1,key:"weekday",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},ccccc:{token:"days",style:"stand-alone",dLen:"narrow",matchIndex:1,key:"weekday",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},h:{token:"time",timePart:"hour",start1:0,
end1:11,start2:1,end2:12,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},hh:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},K:{token:"time",timePart:"hour",start1:0,end1:11,start2:0,end2:11,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},KK:{token:"time",timePart:"hour",start1:0,end1:11,start2:0,end2:11,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},H:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"numeric",
regExp:"(\\d\\d?)"},HH:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},k:{token:"time",timePart:"hour",start1:0,end1:23,start2:1,end2:24,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},kk:{token:"time",timePart:"hour",start1:0,end1:23,start2:1,end2:24,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},m:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"numeric",regExp:"(\\d\\d?)"},mm:{token:"time",timePart:"minute",
start1:0,end1:59,start2:0,end2:59,key:"minute",value:"2-digit",regExp:"(\\d\\d?)"},s:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"numeric",regExp:"(\\d\\d?)"},ss:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"2-digit",regExp:"(\\d\\d?)"},S:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},SS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,
end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},SSS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},d:{token:"dayOfMonth",key:"day",value:"numeric",getPartIdx:2,regExp:"(\\d\\d?)"},dd:{token:"dayOfMonth",key:"day",value:"2-digit",getPartIdx:2,regExp:"(\\d\\d?)"},M:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:"(\\d\\d?)"},MM:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,
regExp:"(\\d\\d?)"},L:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:"(\\d\\d?)"},LL:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:"(\\d\\d?)"},y:{token:"year",key:"year",value:"numeric",regExp:"(\\d{1,4})"},yy:{token:"year",key:"year",value:"2-digit",regExp:"(\\d\\d?)"},yyyy:{token:"year",key:"year",value:"numeric",regExp:"(\\d{1,4})"},a:{token:"ampm",key:"hour12",value:!0,regExp:"(\\D*)"},z:{token:"tzAbbrev",regExp:"(.+?)"},v:{token:"tzAbbrev",key:"timeZoneName",
value:"short",regExp:"(.+?)"},zz:{token:"tzAbbrev",regExp:"(.+?)"},zzz:{token:"tzAbbrev",regExp:"(.+?)"},zzzz:{token:"tzFull",regExp:"(.+?)"},Z:{token:"tzhm",regExp:"([+-]?\\d{1,4})"},ZZ:{token:"tzhm",regExp:"([+-]?\\d{1,4})"},ZZZ:{token:"tzhm",regExp:"([+-]?\\d{1,4})"},X:{token:"tzh",regExp:"([+-]?\\d{1,2})"},XX:{token:"tzhm",key:"XX",regExp:"([+-]?\\d{1,4})"},XXX:{token:"tzhsepm",regExp:"([+-]?\\d{1,2}:\\d{1,2})"},VV:{token:"tzid",regExp:"(.+?)"},G:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},
GG:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GGG:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GGGG:{token:"era",key:"era",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},GGGGG:{token:"era",key:"era",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},"/":{token:"slash",regExp:"(\\/)"}};q=function(a){a=a["two-digit-year-start"];if(void 0===a||isNaN(a))a=1950;return a=parseInt(a,10)};r=function(a){return"h"===a.supplemental.prefferedHours[O.c_(a._ojLocale_)]};z=function(a){return 0===
a%400?!0:0===a%100?!1:0===a%4?!0:!1};B=function(a,b){switch(b){case 0:case 2:case 4:case 6:case 7:case 9:case 11:return 31;case 1:return z(a)?29:28;default:return 30}};u=function(a,b,c){b=O.je(b);var d=O.Df(a,c);a=d("formatType","string",["date","time","datetime"],"date");c=d("dateFormat","string",["short","medium","long","full"],"short");var d=d("timeFormat","string",["short","medium","long","full"],"short"),e=b.dates.calendars.gregorian;b=e.dateFormats;var e=e.timeFormats,f,h,k;switch(c){case "full":f=
b.full;break;case "long":f=b["long"];break;case "medium":f=b.medium;break;case "short":f=b["short"]}switch(d){case "full":h=e.full;break;case "long":h=e["long"];break;case "medium":h=e.medium;break;case "short":h=e["short"]}void 0===f||"datetime"!==a&&"date"!==a||(k=f);void 0===h||"datetime"!==a&&"time"!==a||(k=k?k+" "+h:h);return k};c=function(a,b){for(var c=0,d=!1,e=0,f=a.length;e<f;e++){var h=a.charAt(e);switch(h){case "'":d?b.push("'"):c++;d=!1;break;case "\\":d&&b.push("\\");d=!d;break;default:b.push(h),
d=!1}}return c};l=function(a,b,c){var d;d=void 0!==b.year||void 0!==b.month||void 0!==b.weekday||void 0!==b.day;b=void 0!==b.hour||void 0!==b.minute||void 0!==b.second;d=d&&b?"MM/dd/yy hh:mm:ss a":d?"MM/dd/yy":"hh:mm:ss a";c=new SyntaxError("Unexpected character(s) "+c+' encountered in the pattern "'+a+' An example of a valid pattern is "'+d+'".');c.errorInfo={errorCode:"optionValueInvalid",parameterMap:{propertyName:"pattern",propertyValue:a,"propertyValueHint ":d}};throw c;};G=function(a,b,c,d){b=
O.je(b).dates.calendars.gregorian.dateTimeFormats.availableFormats;c="weekday era year month day hour minute second timeZoneName".split(" ");var e={"2-digit":0,numeric:1,narrow:2,"short":3,"long":4},f=-Infinity,h=void 0,k,r,l;for(l in b){r=!1;var s={};s.pattern=b[l];for(var m=0;null!==(k=Le.exec(l));)k=k[0],"h"!==k&&"hh"!==k||d?"H"!==k&&"HH"!==k||!d?void 0!==Vc[k]&&(s[Vc[k].key]=Vc[k].value):r=!0:r=!0;if(!r){for(var u in c)r=a[c[u]],k=s[c[u]],void 0===r&&void 0!==k?m-=20:void 0!==r&&void 0===k?m-=
120:void 0!==r&&void 0!==k&&(r=Math.max(Math.min(e[k]-e[r],2),-2),2===r?m-=6:1===r?m-=3:-1===r?m-=6:-2===r&&(m-=8));m>f&&(f=m,h=s)}}return void 0!==h?h.pattern:null};C=function(a,b,c){var d="",e="",f={},h={};a=O.Df(a,c);c=a("era","string",["narrow","short","long"]);d+=E(f,"era",c,{narrow:"GGGGG","short":"GGG","long":"GGGG"});c=a("year","string",["2-digit","numeric"]);d+=E(f,"year",c,{"2-digit":"yy",numeric:"y"});c=a("month","string",["2-digit","numeric","narrow","short","long"]);d+=E(f,"month",c,
{"2-digit":"MM",numeric:"M",narrow:"MMMMM","short":"MMM","long":"MMMM"});c=a("weekday","string",["narrow","short","long"]);d+=E(f,"weekday",c,{narrow:"EEEEE","short":"E","long":"EEEE"});c=a("day","string",["2-digit","numeric"]);var d=d+E(f,"day",c,{"2-digit":"dd",numeric:"d"}),k=a("hour12","boolean",[!0,!1]);void 0===k&&(k=r(b));c=a("hour","string",["2-digit","numeric"]);e=!0===k?e+E(h,"hour",c,{"2-digit":"hh",numeric:"h"}):e+E(h,"hour",c,{"2-digit":"HH",numeric:"H"});c=a("minute","string",["2-digit",
"numeric"]);e+=E(h,"minute",c,{"2-digit":"mm",numeric:"m"});c=a("second","string",["2-digit","numeric"]);e+=E(h,"second",c,{"2-digit":"ss",numeric:"s"});c=a("timeZoneName","string",["short","long"]);e+=E(h,"timeZoneName",c,{"short":"v","long":"v"});return[d,e,f,h]};E=function(a,b,c,d){return void 0!==c?(a[b]=c,d[c]):""};F=function(a,b,c){var d=a;b=O.Df(b,c);c=b("year","string",["2-digit","numeric"]);var e={"2-digit":"yy",numeric:"yyyy"};void 0!==c&&(d=d.replace(/y{1,4}/,e[c]));c=b("month","string",
["2-digit","numeric","narrow","short","long"]);if(void 0!==c){var e={"2-digit":"MM",numeric:"M",narrow:"MMMMM","short":"MMM","long":"MMMM"},f={"2-digit":"LL",numeric:"L",narrow:"LLLLL","short":"LLL","long":"LLLL"};void 0!==e[c]&&2<e[c].length?(d=d.replace(/M{3,5}/,e[c]),d=d.replace(/L{3,5}/,f[c])):"2-digit"===c&&(qo.lastIndex=0,(c=qo.test(a))&&(d=d.replace("M","MM")),(c=Qt.test(a))&&(d=d.replace("L","LL")))}c=b("weekday","string",["narrow","short","long"]);void 0!==c&&(d=d.replace(/E{1,5}/,{narrow:"EEEEE",
"short":"EEE","long":"EEEE"}[c]),d=d.replace(/c{1,5}/,{narrow:"ccccc","short":"ccc","long":"cccc"}[c]));c=b("day","string",["2-digit","numeric"]);void 0!==c&&"2-digit"===c&&(ro.lastIndex=0,uo.lastIndex=0,b=uo.test(a),c=ro.test(a),!0==c&&!1===b&&(d=d.replace("d","dd")));return d};I=function(a,b,c){var d=a;"2-digit"===O.Df(b,c)("hour","string",["2-digit","numeric"])&&(so.lastIndex=0,to.lastIndex=0,b=a.replace(to,""),b=so.exec(b),null!==b&&(ni.lastIndex=0,d=ni.exec(b[0]),d=a.replace(d[0],d[0]+d[0])));
return d};tk=function(a,b,c){var d,e=0;for(d in b)e++;if(1<e)return null;for(d=a.length;0<d;d--)if(b=c[a.substr(0,d)],void 0!==b)return b;return a};fo=function(a,b){var c="symbols-numberSystem-"+O.Kha(a,b);return a.numbers[c].decimal};d=function(a,b,c,d){function e(b){if(void 0!==p){var d=fo(f,c),d=void 0===m&&void 0===q&&void 0===n?"S":"ss"+d+"SSS";b=b.replace("ss",d);void 0===n&&(a.second=void 0)}var d=k("timeZoneName","string",["short","long"]),h={"short":"z","long":"zzzz"};void 0!==d&&(b=b.replace(/v/,
h[d]));return b}var f=O.je(b),h=O.Uq(b),k=O.Df(a,d),l=k("formatMatcher","string",["basic","munger"],"munger"),s=0;for(s in a)s++;0===s&&(a={year:"numeric",month:"numeric",day:"numeric"});var m,q,n,p;p=k("millisecond","string",["numeric","2-digit"]);n=k("second","string",["numeric","2-digit"]);void 0!==p&&(m=k("hour","string",["numeric","2-digit"]),q=k("minute","string",["numeric","2-digit"]),a.second="2-digit");s=C(a,b,d);if(void 0!==v[h]){var y=v[h].dates.calendars.gregorian.dateTimeFormats[s[0]+
s[1]];if(void 0!==y)return y=e(y)}if(""===s[0]&&""===s[1])return u(a,b,d);var z=f.dates.calendars.gregorian.dateTimeFormats.availableFormats,D=z[s[0]],E=k("hour12","boolean",[!0,!1]);void 0===E&&(E=r(b));void 0===D&&""!==s[0]&&(D=tk(s[0],s[2],z),null===D&&(D=G(s[2],b,0,E)),null!==D?"basic"!==l&&(D=F(D,a,d)):D=s[0]);y=z[s[1]];void 0===y&&""!==s[1]&&(y=tk(s[1],s[3],z),null===y&&(y=G(s[3],b,0,E)),null!==y?"basic"!==l&&(y=I(y,a,d)):y=s[1]);b=D||"";void 0!==y&&(b=""!==b?b+(" "+y):y);void 0===v[h]&&(v[h]=
{},v[h].dates={},v[h].dates.calendars={},v[h].dates.calendars.gregorian={},v[h].dates.calendars.gregorian.dateTimeFormats={});v[h].dates.calendars.gregorian.dateTimeFormats[s[0]+s[1]]=b;return b=e(b)};Tg=function(a){a=a.split(" ");var b=a[0].split("-"),c=new Date(b[0],b[1]-1,b[2]);1<a.length&&(b=a[1].split(":"),c.setHours(b[0]),c.setMinutes(b[1]));return c.getTime()};Bk=function(a,b,c){a=new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5]);a=a.getTime();b=b.split("/");c=c[b[0]];if(void 0===c)return null;c=c[b[1]];
if(void 0===c)return null;var d=c.length,e,f,h,k,r;for(b=0;b<d;b++)if(h=c[b].usesMetazone._from,k=c[b].usesMetazone._to,r=c[b].usesMetazone._mzone,void 0===h&&void 0===k||void 0===h&&void 0!==k&&(f=Tg(k),a<=f)||void 0!==h&&void 0===k&&(e=Tg(h),a>=e)||void 0!==h&&void 0!==k&&(e=Tg(h),f=Tg(k),a>=e&&a<f))return r};Ck=function(a,b,c,d,e){var f=O.je(a),h="",k=c.timeZone;c=O.Df(c,"OraDateTimeConverter")("dst","boolean",[!0,!1],!1);if(void 0===k)return h;var r=Bk(b,k,a.supplemental.metazones),l,h="standard";
e=e?!1:!0;a=Je(k,a);b=Ke(a,b,c,e,!0);void 0!==f.dates.timeZoneNames.metazone&&(l=f.dates.timeZoneNames.metazone[r]);if(void 0===l)return O.Ut("UTC",a.yl(b),!0,!0);f=1===d?l["long"]:l["short"];d=a.yl(b);d<a.yl(b+1)&&(h="daylight");return void 0!==f&&(h=f[h],void 0!==h)?h:O.Ut("UTC",d,!0,!0)};Je=function(a,b){return Oe.Rt().M_(a,b)};Ke=function(a,b,c,d,e){return a.parse(Date.UTC(b[0],b[1]-1,b[2],b[3],b[4],b[5]),c,d,e)};f=function(a,b,e,f){function h(a,b){switch(b){case 0:return a[0];case 1:return a[1];
case 2:return a[2];case 3:return xo[(new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5])).getDay()]}}function k(a,b,c,d){b=h(b,c);a.push(1<d?O.qb(b,d):b)}function r(a,c,d,e,f){var h;switch(e.timePart){case "hour":h=11===e.end1?c[3]%12:c[3];"h"===f||"hh"===f?0===h&&(h=12):"k"!==f&&"kk"!==f||0!==h||(h=24);break;case "minute":h=c[4];break;case "second":h=void 0===b.second&&void 0!==b.millisecond?0:c[5];break;case "millisec":h=c[6]}a.push(1<d?O.qb(h,d):h)}function s(b,c,d){var f,h=c.timeZone;c=v("dst","boolean",
[!0,!1],!1);d=d?!1:!0;if(void 0!==h)f=Je(h,a),b=Ke(f,b,c,d,!0),f=-f.yl(b);else if(e.format!==md)switch(e.format){case Ie:f=e.timeZone.split(":");b=parseInt(f[1],10);f=60*parseInt(f[0],10)+(O.sr(e.timeZone,"-")?-b:b);break;case he:f=0;break;default:f=0}return f}var m,u=e.isoStrParts,q=0===e.dateTime.indexOf("T"),n=O.je(a),v=O.Df(b,"OraDateTimeConverter.format");m=b.pattern||d(b,a,f,"OraDateTimeConverter.format");f=[];var p,y=0,n=n.dates.calendars.gregorian,z=b.timeZone;for(e.format!==md&&void 0!==
z&&xk(e,b,a);;){var I=Le.lastIndex,G=Le.exec(m),I=m.slice(I,G?G.index:m.length),y=y+c(I,f);if(!G)break;if(y%2)f.push(G[0]);else switch(p=G[0],G=p.length,I=Vc[p],I.token){case "days":p=n[I.token][I.style][I.dLen];f.push(p[h(u,3)]);break;case "months":p=n[I.token][I.style][I.mLen];f.push(p[h(u,1)]);break;case "dayOfMonth":case "monthIndex":f.push(k(f,u,I.getPartIdx,G));break;case "year":p=u[0];2===G&&(p%=100);f.push(O.qb(p,G));break;case "time":r(f,u,G,I,p);break;case "ampm":p=12>u[3]?n.dayPeriods.format.wide.am:
n.dayPeriods.format.wide.pm;f.push(p);break;case "tzhm":p=s(u,b,q);0===p?"XX"===I.key?f.push("Z"):f.push("+0000"):f.push((0>=p?"-":"+")+O.qb(Math.floor(Math.abs(p/60)),2)+O.qb(Math.floor(Math.abs(p%60)),2));break;case "tzhsepm":p=s(u,b,q);0===p?f.push("Z"):f.push((0>=p?"-":"+")+O.qb(Math.floor(Math.abs(p/60)),2)+":"+O.qb(Math.floor(Math.abs(p%60)),2));break;case "tzh":p=s(u,b,q);0===p?f.push("Z"):f.push((0>=p?"-":"+")+O.qb(Math.floor(Math.abs(p/60)),2));break;case "tzid":p=void 0!==z?z:e.format===
he?"UTC":"";f.push(p);break;case "tzAbbrev":p=Ck(a,u,b,0,q);f.push(p);break;case "tzFull":p=Ck(a,u,b,1,q);f.push(p);break;case "era":p=n.eras.eraAbbr;f.push(p["1"]);break;case "slash":f.push("/");break;default:l(m,b,p)}}return f.join("")};Q=function(a,b){return a.getFullYear()===b.getFullYear()};P=function(a,b){return 1===b.getFullYear()-a.getFullYear()};U=function(a,b){return P(b,a)};K=function(a,b){return Q(a,b)&&a.getMonth()===b.getMonth()};ha=function(a,b){return Q(a,b)?1===b.getMonth()-a.getMonth():
P(a,b)?11===a.getMonth()&&0===b.getMonth():!1};ra=function(a,b){return ha(b,a)};D=function(a,b){var c=a.getDate(),d=b.getDate();ha(a,b)&&(d+=B(a.getFullYear,a.getMonth()));return d-c};J=function(a,b){var c=a.supplemental.weekData.firstDay,d=c[O.c_(a._ojLocale_)];void 0===d&&(d=c["001"]);c=b-d;0>c&&(c+=7);return c};ia=function(a,b,c){if(b>c){var d=b;b=c;c=d}if(!K(b,c)&&!ha(b,c))return!1;a=D(b,c)+J(a,b.getDay());return 0<=a&&6>=a};Aa=function(a,b,c){if(!K(b,c)&&!ha(b,c))return!1;a=D(b,c)+J(a,b.getDay());
return 7<=a&&13>=a};fa=function(a,b,c){return Aa(a,c,b)};Nb=function(a,b){return Q(a,b)&&K(a,b)&&a.getDate()===b.getDate()};Qa=function(a,b){return K(a,b)||ha(a,b)?1===D(a,b):!1};Xb=function(a,b){return Qa(b,a)};jo=function(a,b,c){var d=c.timeZone;if(O.Qt(a).format===md&&void 0===d)return a;c={FM:"zulu"};void 0!==d&&(c.timeZone=d,c.dst=!0);a=h(a,b,c,"en-US");c={bma:O.getLocalTimeZoneOffset(),FM:"local"};return h(a.value,b,c,"en-US").value};Dk=function(a,b,c){a=O.rp(a);b=O.rp(b);c?(a=Date.UTC(a[0],
a[1]-1,a[2],0,0,0,0),b=Date.UTC(b[0],b[1]-1,b[2],0,0,0,0)):(a=Date.UTC(a[0],a[1]-1,a[2],a[3],a[4],a[5],a[6]),b=Date.UTC(b[0],b[1]-1,b[2],b[3],b[4],b[5],b[6]));return a-b};Ek=function(a,b){return a.replace(/\{(\d+)\}/g,function(a,c){return b[c]})};lo=function(a,b,c,d){var e,h;e={fma:"numeric",Pla:"numeric",wla:"numeric"};var k=O.je(c),r=k.dates.calendars.gregorian.dateTimeFormats["long"],l=k.dates.calendars.gregorian.days.format.wide,s=k.dates.fields;h=O.isoToLocalDate(b);var m=O.isoToLocalDate(a),
k=O.Qt(b);if(Nb(m,h))e=s.day["relative-type-0"];else if(Qa(m,h))e=s.day["relative-type-1"];else if(Xb(m,h))e=s.day["relative-type--1"];else if(h=h.getDay(),h=xo[h],a=Dk(b,a,!0),a/=864E5,-1>a&&-7<a)e=s[h]["relative-type--1"];else if(1<a&&7>a)e=l[h];else return f(c,e,k,"en-US");if(d)return e;c=f(c,{Gla:"numeric",Nla:"numeric"},k,"en-US");r=r.replace(/'/g,"");return r=Ek(r,[c,e])};mo=function(a,b,c,d){var e=O.je(d).dates.fields;c=O.Df(c,"OraDateTimeConverter.formatRelative")("dateField","string","day week month year hour minute second".split(" "));
var f=O.isoToLocalDate(a),h=O.isoToLocalDate(b);switch(c){case "day":return Nb(f,h)?e.day["relative-type-0"]:Qa(f,h)?e.day["relative-type-1"]:Xb(f,h)?e.day["relative-type--1"]:Jd(a,b,d,"day");case "week":return ia(d,f,h)?e.week["relative-type-0"]:Aa(d,f,h)?e.week["relative-type-1"]:fa(d,f,h)?e.week["relative-type--1"]:Jd(a,b,d,"week");case "month":return K(f,h)?e.month["relative-type-0"]:ha(f,h)?e.month["relative-type-1"]:ra(f,h)?e.month["relative-type--1"]:Jd(a,b,d,"month");case "year":return Q(f,
h)?e.year["relative-type-0"]:P(f,h)?e.year["relative-type-1"]:U(f,h)?e.year["relative-type--1"]:Jd(a,b,d,"year");case "hour":return Jd(a,b,d,"hour");case "minute":return Jd(a,b,d,"minute");case "second":return Jd(a,b,d,"second")}return null};po=function(a){return 4800*a/146097};oo=function(a){var b=po(a/864E5);return{year:Math.round(b/12),month:Math.round(b),week:Math.round(a/6048E5),day:Math.round(a/864E5),hour:Math.round(a/36E5),minute:Math.round(a/6E4),second:Math.round(a/1E3),millisecond:a}};
no=function(a){return a.split("-")[0]};Jd=function(a,b,c,d){var e=no(O.Uq(c)),f=c.supplemental.plurals;c=O.je(c).dates.fields;b=Dk(b,a,!1);a=oo(Math.abs(b));null===d&&(d=46>a.second&&"second"||46>a.minute&&"minute"||23>a.hour&&"hour"||7>a.day&&"day"||4>a.week&&"week"||12>a.month&&"month"||"year");if("second"===d&&46>a.second)return c[d]["relative-type-0"];e="relativeTimePattern-count-"+f[e](a[d]);f=0>b?"relativeTime-type-past":"relativeTime-type-future";e=c[d][f][e];void 0===e&&(e=c[d][f]["relativeTimePattern-count-other"]);
return e=Ek(e,[a[d]])};k=function(a,b,c){var d=O.dateToLocalIso(new Date);if("number"===typeof a)a=O.dateToLocalIso(new Date(a));else if("string"===typeof a){if(""===O.trim(a))return null}else return null;void 0===c&&(c={formatUsing:"displayName"});var e=O.Df(c,"OraDateTimeConverter.formatRelative"),f=e("relativeTime","string",["fromNow","toNow"],"fromNow"),h=e("dateField","string","day week month year hour minute second".split(" "));a=jo(a,b,c);"toNow"===f&&(f=d,d=a,a=f);return"calendar"===e("formatUsing",
"string",["displayName","calendar"],"displayName")?(c=e("dateOnly","boolean",[!0,!1],!1),lo(d,a,b,c)):void 0!==h?mo(d,a,c,b):Jd(d,a,b,null)};li=function(a,b){var c;c=Error("The weekday "+a+" does not match the date "+b);c.errorInfo={errorCode:"dateToWeekdayMismatch",parameterMap:{weekday:a,date:b}};throw c;};ki=function(a,b,c){var d;2===c?(d='The value "'+a+'" does not match the expected date-time format "'+b+'"',c="datetimeFormatMismatch"):0===c?(d='The value "'+a+'" does not match the expected date format "'+
b+'"',c="dateFormatMismatch"):(d='The value "'+a+'" does not match the expected time format "'+b+'"',c="timeFormatMismatch");d=Error(d);d.errorInfo={errorCode:c,parameterMap:{value:a,format:b}};throw d;};Fa=function(a,b){100>b&&(b+=100*Math.floor(a/100)+(b<a%100?100:0));return b};uk=function(a,b){var c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},d;for(d in a)if(O.trim(O.rg(a[d]))===O.trim(b))return c[d];return-1};co=function(a,b){for(var c in a)if(O.trim(O.rg(a[c]))===O.trim(b))return c-1;return-1};
rb=function(a,b,c){var d=O.je(a),e;a=d.dates.calendars.gregorian.days.format;d=d.dates.calendars.gregorian.days["stand-alone"];switch(c){case 0:e=[a.abbreviated,a.wide];break;case 1:e=[d.abbreviated,d.wide]}b=O.rg(b);c=uk(e[0],b);-1===c&&(c=uk(e[1],b));return c};sb=function(a,b,c){var d=-1,e=O.je(a);a=e.dates.calendars.gregorian.months.format;e=e.dates.calendars.gregorian.months["stand-alone"];switch(c){case 0:c=[a.wide,a.abbreviated];break;case 1:c=[e.wide,e.abbreviated];break;case 2:c=[a.wide,a.abbreviated,
e.wide,e.abbreviated];break;default:return-1}b=O.rg(b);for(var f in c)if(d=co(c[f],b),-1!==d)break;return d};Ef=function(a,b){for(var d=a.replace(wo,"\\\\$1"),e=["^"],f=[],h=0,k=0,r;null!==(r=Le.exec(d));){var s=d.slice(h,r.index),h=Le.lastIndex,k=k+c(s,e);if(k%2)e.push(r[0]);else{var s=r[0],m;void 0!==Vc[s]?m=Vc[s].regExp:l(a,b,s);m&&e.push(m);f.push(r[0])}}c(d.slice(h),e);e.push("$");d={regExp:e.join("").replace(/\s+/g,"\\s+"),groups:f};return{}[a]=d};db=function(a,b,c,d,e,f,h){if(b<c||b>d)throw b=
new RangeError(e+" is out of range.  Enter a value between "+f+" and "+h+" for "+a),b.errorInfo={errorCode:"datetimeOutOfRange",parameterMap:{value:e,minValue:f,maxValue:h,propertyName:a}},b;};na=function(a,b){for(var c=0;c<a.length;c++)for(var d in a[c])if(d===b)return parseInt(c,10);return 0};zb=function(a,b,c,d,e){var f=O.je(d).dates.calendars.gregorian.dayPeriods.format.wide.pm,h=d=vo.lastIndex=0,k=0,r=0,l=vo.exec(b);null===l&&ki(b,c,e);void 0!==l[1]&&(d=parseInt(l[1],10));void 0!==l[2]&&(h=parseInt(l[2],
10));void 0!==l[3]&&(k=parseInt(l[3],10));void 0!==l[4]&&(r=parseInt(l[4],10));ni.lastIndex=0;l=ni.exec(c);switch(l[0]){case "h":12===d&&(d=0);db("hour",d,0,11,d,1,12);b=O.rg(b).indexOf(O.rg(f));-1!==b&&12>d&&(d+=12);break;case "K":db("hour",d,0,11,d,0,11);b=O.rg(b).indexOf(O.rg(f));-1!==b&&12>d&&(d+=12);break;case "H":db("hour",d,0,23,d,0,23);break;case "k":24===d&&(d=0),db("hour",d,0,23,d,1,24)}db("minute",h,0,59,h,0,59);db("second",k,0,59,k,0,59);db("millisec",r,0,999,r,0,999);a.setHours(d,h,k,
r)};Ak=function(a,b){var c=O.je(b),d=c.dates.calendars.gregorian.days.format,c=c.dates.calendars.gregorian.days["stand-alone"],d=[d.wide,d.abbreviated,c.wide,c.abbreviated],c=!1,e,f,h;for(f in d){for(h in d[f])if(e=d[f][h],(new RegExp(e+"\\b","i")).test(a)){c=!0;break}if(c)break;e=null}return e};Hc=function(a,b,c,d,e){Gk.lastIndex=0;var f=Gk.exec(a);null===f&&ki(a,b,e?2:0);var h=[{y:b.indexOf("y")},{M:b.indexOf("M")},{d:b.indexOf("d")}];h.sort(function(a,b){for(var c in a)break;for(var d in b)break;
return a[c]-b[d]});var k,r,l,s,m,u,n=na(h,"d"),p=!1,v=!1;for(u=1;3>=u;u++){var y=f[u];if(2<y.length||31<y)k=y,p=!0,s=u-1}p||(s=na(h,"y"),k=f[na(h,"y")+1]);for(u=0;3>u;u++)if(u!==s&&12<f[u+1]){l=f[u+1];v=!0;m=u;break}if(v){for(u=0;3>u;u++)if(u!==m&&u!==s){r=f[u+1];break}void 0===r&&(r=f[na(h,"M")+1])}else s===na(h,"d")?(l=f[na(h,"y")+1],r=f[na(h,"M")+1]):s===na(h,"M")?(l=f[na(h,"d")+1],r=f[na(h,"y")+1]):(l=f[na(h,"d")+1],r=f[na(h,"M")+1]);r-=1;f=B(k,r);v&&n!==m&&12<r&&db("month",l,0,11,l,1,12);db("month",
r,0,11,r+1,1,12);db("day",l,1,f,l,1,f);k=Fa(q(c),parseInt(k,10));db("year",k,0,9999,k,0,9999);c=new Date(k,r,l);k=Ak(a,d);null!==k&&(r=rb(d,k,0),c.getDay()!==r&&li(k,c.getDate()));c={value:c,offset:"",warning:"lenient parsing was used"};e&&(a=a.substr(Gk.lastIndex),0===a.length?c.value.setHours(0,0,0,0):zb(c.value,a,b,d,2));c.value=O.dateToLocalIso(c.value);return c};kc=function(a,b,c,d,e){var f=a;a=O.rg(a);var h=O.je(d),k=h.dates.calendars.gregorian.months.format,h=h.dates.calendars.gregorian.months["stand-alone"],
k=[k.wide,k.abbreviated,h.wide,h.abbreviated],h=!1,r,l,s,m;for(l in k){r=[];for(s in k[l])m=O.rg(k[l][s]),r.push({idx:s,name:m});r.sort(function(a,b){return b.idx-a.idx});for(s in r)if(m=r[s].name,-1!==a.indexOf(m)){h=!0;a=a.replace(m,"");break}if(h)break}if(!h)return Hc(f,b,c,d,e);s=sb(d,m,2);db("month",s,0,11,s,1,12);m=Ak(f,d);l=new RegExp(m+"\\W","i");null!==m&&(a=a.replace(l,""));Fk.lastIndex=0;k=Fk.exec(a);null===k&&ki(f,b,e?2:0);f=[{y:b.indexOf("y")},{d:b.indexOf("d")}];f.sort(function(a,b){for(var c in a)break;
for(var d in b)break;return a[c]-b[d]});var u,n,h=!1;for(l=1;2>=l;l++)if(r=k[l],2<r.length||31<r)u=r,h=!0,n=l-1;h||(n=na(f,"y"),u=k[na(f,"y")+1]);n=n===na(f,"d")?k[na(f,"y")+1]:k[na(f,"d")+1];u=Fa(q(c),parseInt(u,10));db("year",u,0,9999,u,0,9999);c=new Date(u,s,n);null!==m&&(l=rb(d,m,0),c.getDay()!==l&&li(m,c.getDate()));u=B(u,s);db("day",n,1,u,n,1,u);u={value:c,offset:"",warning:"lenient parsing was used"};e&&(a=a.substr(Fk.lastIndex),0===a.length?u.value.setHours(0,0,0,0):zb(u.value,a,b,d,2));u.value=
O.dateToLocalIso(u.value);return u};$a=function(a,b,c,d){switch(n(c,"OraDateTimeConverter.parse")){case 0:return kc(a,b,c,d,!1);case 1:return c=new Date,zb(c,a,b,d,1),{value:O.dateToLocalIso(c),offset:"",warning:"lenient parsing was used"};case 2:return kc(a,b,c,d,!0)}return null};zk=function(a,b,c,d,e,f,h,k,r,l,s){e=O.je(a).dates.calendars.gregorian[b][e];a="months"===b?sb(a,c,f):rb(a,c,f);db(s,a,h,k,c,e[d][r],e[d][l]);return a};ho=function(a,b,c,d){b[c.timePart]=a;"h"===d||"hh"===d?12===a&&(b[c.timePart]=
0):"k"!==d&&"kk"!==d||24!==a||(b[c.timePart]=0);db(c.timePart,b[c.timePart],c.start1,c.end1,a,c.start2,c.end2)};e=function(a,b,c,d){var e=O.je(d),f=e.dates.calendars.gregorian.eras.eraAbbr["1"],h=O.Bl(f);a=a.replace(f,h);var f=Ef(b,c),k=(new RegExp(f.regExp)).exec(a);if(null===k)return $a(a,b,c,d);for(var r=f.groups,l=null,s=null,m=null,u=null,f="",h=null,n=!1,p,v={hour:0,minute:0,second:0,millisec:0},e=e.dates.calendars.gregorian.dayPeriods.format.wide.pm,y=q(c),z=0,I=r.length;z<I;z++){var G=k[z+
1];if(G){var D=r[z],E=parseInt(G,10),C=Vc[D];switch(C.token){case "months":s=zk(d,C.token,G,C.mLen,C.style,C.matchIndex,0,11,"1","12","month name");break;case "days":p=G;u=zk(d,C.token,G,C.dLen,C.style,C.matchIndex,0,6,"sun","sat","weekday");break;case "time":ho(E,v,C,D);break;case "dayOfMonth":m=E;if(31<m)return $a(a,b,c,d);break;case "monthIndex":s=E-1;if(11<s)return $a(a,b,c,d);break;case "year":l=Fa(y,E);db("year",l,0,9999,l,0,9999);break;case "ampm":n=-1!==O.rg(G).indexOf(O.rg(e));break;case "tzhm":f=
G.substr(-2);f=G.substr(0,3)+":"+f;break;case "tzhsepm":f=G;break;case "tzh":f=G+":00";break;case "tzid":h=G}}}a=new Date;null===l&&(l=a.getFullYear());null===s&&null===m?(s=a.getMonth(),m=a.getDate()):null===m&&(m=1);b=B(l,s);db("day",m,1,b,m,1,b);a.setFullYear(l,s,m);null!==u&&a.getDay()!==u&&li(p,a.getDate());n&&12>v.hour&&(v.hour+=12);a=[l,s+1,m,v.hour,v.minute,v.second,v.millisec];p=O.aja(a);null!==h&&(d=Je(h,d),f=Ke(d,a,!1,!0,!0),f=-d.yl(f),f=O.Ut("",f,!1,!0));""!==f&&(p+=f);return{value:p}};
m=function(a,b,d){var e=d.replace(wo,"\\\\$1"),f=["^"],h=0,k=0;for(a={locale:a,numberingSystem:b,calendar:"gregorian"};null!==(b=Le.exec(e));){var r=e.slice(k,b.index),k=Le.lastIndex,h=h+c(r,f);if(!(h%2)&&(b=b[0],"/"!==b&&"zzzz"!==b&&"zzz"!==b&&"zz"!==b&&"z"!==b))if(void 0!==Vc[b])if(void 0!==Vc[b].key&&(a[Vc[b].key]=Vc[b].value),"kk"===b||"HH"===b||"H"===b||"k"===b)a.hour12=!1;else{if("KK"===b||"hh"===b||"h"===b||"K"===b)a.hour12=!0}else l(d,a,b)}return a};s=function(a){a=m("","",a);var b=void 0!==
a.hour||void 0!==a.minute||void 0!==a.second||void 0!==a.millisecond;return void 0===a.year&&void 0===a.month&&void 0===a.weekday&&void 0===a.day||!b?b?1:0:2};p=function(a){a=a.indexOf("T");return-1===a?0:0<a?2:1};n=function(a,b){if(void 0!==a.pattern)return s(a.pattern);var c=O.Df(a,b),d=void 0!==c("hour","string",["2-digit","numeric"])||void 0!==c("minute","string",["2-digit","numeric"])||void 0!==c("second","string",["2-digit","numeric"])||void 0!==c("millisecond","string",["numeric"]),e=void 0!==
c("year","string",["2-digit","numeric"])||void 0!==c("month","string",["2-digit","numeric","narrow","short","long"])||void 0!==c("day","string",["2-digit","numeric"])||void 0!==c("weekday","string",["narrow","short","long"]);if(e&&d)return 2;if(d)return 1;if(e)return 0;c=c("formatType","string",["date","time","datetime"],"date");return"datetime"===c?2:"time"===c?1:0};yk=function(a,b){var c=Ke(a,b,!1,!0,!1);return Math.max(a.yl(c),a.yl(c+1))};xk=function(a,b,c){var d=a.isoStrParts,e=a.format,f=b.timeZone;
O.Df(b,"OraDateTimeConverter.parse");b=Je(f,c);var h;c=Date.UTC(d[0],d[1]-1,d[2],d[3],d[4],d[5]);switch(e){case Ie:a=a.timeZone;h=a.split(":");e=parseInt(h[1],10);h=60*parseInt(h[0],10)+(O.sr(a,"-")?-e:e);break;case he:h=0}a=yk(b,d);a=b.parse(c-6E4*(a+h),!1,!0,!1);a=-b.yl(a);b=new Date(Date.UTC(d[0],d[1]-1,d[2],d[3],d[4],d[5]));h=b.getUTCMinutes()+(a-h);b.setUTCHours(b.getUTCHours()+(h/60<<0),h%60);d[0]=b.getUTCFullYear();d[1]=b.getUTCMonth()+1;d[2]=b.getUTCDate();d[3]=b.getUTCHours();d[4]=b.getUTCMinutes();
d[5]=b.getUTCSeconds()};wk=function(a,b){var c,d="";switch(a){case 0:d=O.qb(b[0],4)+"-"+O.qb(b[1],2)+"-"+O.qb(b[2],2);break;case 1:d="T"+O.qb(b[3],2)+":"+O.qb(b[4],2)+":"+O.qb(b[5],2);c=b[6];0<c&&(d+="."+O.JE(O.qb(c,3)));break;default:d=O.qb(b[0],4)+"-"+O.qb(b[1],2)+"-"+O.qb(b[2],2)+"T"+O.qb(b[3],2)+":"+O.qb(b[4],2)+":"+O.qb(b[5],2),c=b[6],0<c&&(d+="."+O.JE(O.qb(c,3)))}return d};vk=function(a,b,c,d,e,f){a=Je(a,e);b=Ke(a,b,c,d,f);return O.Ut("",a.yl(b),!0,!0)};eo=function(a,b,c,d){var e,f=O.Df(c,"OraDateTimeConverter.parse"),
h=f("isoStrFormat","string",[he,Ie,io,md,Sg],Sg);e=f("dst","boolean",[!0,!1],!1);var k=!0,f=b.isoStrParts,r=b.timeZone,l=c.timeZone;b=b.format;var s=c.isoStrFormat;c=wk(a,f);if(0===a||"local"===s)return c;1===a&&(k=!1);switch(h){case Ie:void 0===l&&b===Ie?c+=r:void 0===l&&b===md?c+="":void 0===l&&b===he?c+="+00:00":void 0!==l&&(d=vk(l,f,e,k,d,!0),c+=d);break;case he:h=0;void 0===l?b===Ie&&(d=r.split(":"),e=parseInt(d[1],10),h=60*parseInt(d[0],10)+(O.sr(d[0],"-")?-e:e),h=-h):(d=Je(l,d),e=Ke(d,f,e,
k,!0),h=d=d.yl(e));0!==h&&(c=new Date(Date.UTC(f[0],f[1]-1,f[2],f[3],f[4],f[5],f[6])),h=c.getUTCMinutes()+h,c.setUTCHours(c.getUTCHours()+(h/60<<0),h%60),f[0]=c.getUTCFullYear(),f[1]=c.getUTCMonth()+1,f[2]=c.getUTCDate(),f[3]=c.getUTCHours(),f[4]=c.getUTCMinutes(),f[5]=c.getUTCSeconds(),c=wk(a,f));c+="Z";break;case Sg:void 0!==l?(d=vk(l,f,e,k,d,!0),c+=d):(d=r)&&(c+=d)}return c};h=function(a,b,c,f){var h=O.oD(f);void 0===O.xl[h]&&(h="latn");if("latn"!==h){var k,r=[];for(k=0;k<a.length;k++){var l=O.xl[h].indexOf(a[k]);
-1!==l?r.push(l):r.push(a[k])}a=r.join("")}if(2>=arguments.length||void 0===c)c={year:"numeric",month:"numeric",day:"numeric"};k={};!0===O.CF.test(a)?(r=a,h=p(a)):(k=c.pattern||d(c,b,f,"OraDateTimeConverter.parse"),h=n(c,"OraDateTimeConverter.parse"),k=e(a,k,c,b),r=k.value);r=O.Qt(r);void 0!==c.timeZone&&r.format!==md&&xk(r,c,b);r=eo(h,r,c,b);k.value=r;return k};mi=function(a,b){var c={isoStrFormat:md},d=O.Qt(a),e=O.Qt(b).format;if(d.format===md||e===md)return c;c.isoStrFormat=he;return c};He=function(a,
b,c,d,e,f){d=m(d,e,f.pattern);d.pattern=f.pattern;void 0!==a&&(d.isoStrFormat=a);void 0!==b&&(d.timeZone=b);void 0!==c&&(d.dst=c);d["two-digit-year-start"]=q(f);return d};Qg=function(a,b,c,d){var e=!1;void 0!==c&&(b.dst=c);c=a("year","string",["2-digit","numeric"]);void 0!==c&&(b.year=c,e=!0);c=a("era","string",["narrow","short","long"]);void 0!==c&&(b.era=c,e=!0);c=a("month","string",["2-digit","numeric","narrow","short","long"]);void 0!==c&&(b.month=c,e=!0);c=a("day","string",["2-digit","numeric"]);
void 0!==c&&(b.day=c,e=!0);c=a("weekday","string",["narrow","short","long"]);void 0!==c&&(b.weekday=c,e=!0);c=a("hour","string",["2-digit","numeric"]);void 0!==c&&(b.hour=c,e=!0,c=a("hour12","boolean",[!0,!1]),void 0===c&&(c=r(d)),b.hour12=c);c=a("minute","string",["2-digit","numeric"]);void 0!==c&&(b.minute=c,e=!0);c=a("second","string",["2-digit","numeric"]);void 0!==c&&(b.second=c,e=!0);c=a("millisecond","string",["numeric"]);void 0!==c&&(b.millisecond=c,e=!0);return e};Df=function(a,b,c,d){b=
u(b,c,Me.resolvedOptions);c=d("formatType","string",["date","time","datetime"],"date");var e=d("dateFormat","string",["short","medium","long","full"],"short");d=d("timeFormat","string",["short","medium","long","full"],"short");a.formatType=c;if("datetime"===c||"date"===c)a.dateFormat=e;if("datetime"===c||"time"===c)a.timeFormat=d;a.patternFromOptions=b};Rg=function(a,b){var c=a("formatUsing","string",["displayName","calendar"]);void 0!==c&&(b.formatUsing=c);c=a("dateField","string","day week month year hour minute second".split(" "));
void 0!==c&&(b.dateField=c);c=a("relativeTime","string",["fromNow","toNow"]);void 0!==c&&(b.relativeTime=c);c=a("dateOnly","boolean",[!0,!1]);void 0!==c&&(b.dateOnly=c)};Pg=function(a,b,c,e,f,h,k,r){k={locale:r,numberingSystem:k,calendar:"gregorian"};var l,s=0;for(l in a)s++;if(0===s)return k.year="numeric",k.month="numeric",k.day="numeric",k;void 0!==c&&(k.timeZone=c,void 0!==f&&(k.isoStrFormat=f));Rg(b,k);e=Qg(b,k,e,h);k["two-digit-year-start"]=q(a);if(!e)return Df(k,a,h,b),k;void 0!==c&&(l=b("timeZoneName",
"string",["short","long"]),void 0!==l&&(k.timeZoneName=l));k.patternFromOptions=d(k,h,r,"OraDateTimeConverter.resolvedOptions");return k};Ga=function(a,b,c){a=d({year:"numeric",month:"numeric",day:"numeric"},a,b,"OraDateTimeConverter.resolvedOptions");return{calendar:"gregorian",locale:b,numberingSystem:c,year:"numeric",month:"numeric",day:"numeric",patternFromOptions:a}};go=function(a){function b(c){for(var d in c){c=e.M_(d,a);c=yk(c,m);var f;var h=d;f=c;var u=k,q=h.split("/"),h=q[0],n=q[1],p=q=
"",v={},y=r[h];void 0!==y&&(q=y[n],void 0!==q&&(q=q.exemplarCity,void 0!==q&&(q=" "+q)));h=h+"/"+n;h=Bk(m,h,a.supplemental.metazones);void 0!==u&&(h=u[h]);void 0!==h&&null!==h&&void 0!==h["long"]&&(p=h["long"].generic,void 0===p&&(p=h["long"].standard),void 0!==p&&(p=" - "+p));u="(UTC)";0!==f&&(u=O.Ut("UTC",f,!0,!0),u="("+u+")");void 0===q||void 0===p?f=null:(v.offsetLocName=u+q+p,v.locName=q+p,f=v);null!==f&&(l.push({id:d,displayName:f}),s[d]=c)}}var c=O.Uq(a);if(void 0!==y[c]){var d=y[c].availableTimeZones;
if(void 0!==d)return d}var e=Oe.Rt(),f={yja:"variant"},h=O.Uq(a),d=O.je(a),k=d.dates.timeZoneNames.metazone,r=d.dates.timeZoneNames.zone,l=[],s={},d=new Date,m=[d.getFullYear(),d.getMonth()+1,d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds()],d=a.supplemental.timeZoneData;b(d.zones);b(d.links);l.sort(function(a,b){return s[b.id]-s[a.id]+a.displayName.locName.localeCompare(b.displayName.locName,h,f)});for(var d=l.length,u=0;u<d;u++)l[u].displayName=l[u].displayName.offsetLocName;void 0===y[c]&&
(y[c]={},y[c].availableTimeZones=l);return l};return{Rt:function(){b||(b=a());return b}}}();function Ee(a){this.Init(a)}t("LengthValidator",Ee,w);var Pe={countBy:"codeUnit"};t("LengthValidator.defaults",Pe,w);H(Ee,we,"oj.LengthValidator");
Ee.prototype.Init=function(a){var b=a.countBy;Ee.o.Init.call(this);this.Zf=void 0!==a.min?parseInt(a.min,10):null;this.Kg=void 0!==a.max?parseInt(a.max,10):null;if(isNaN(this.Zf))throw Error("length validator's min option is not a number. min option is "+a.min);if(isNaN(this.Kg))throw Error("length validator's max option is not a number. max option is "+a.min);if(null!==this.Zf&&0>this.Zf)throw Error("length validator's min option cannot be less than 0. min option is "+a.min);if(null!==this.Kg&&1>
this.Kg)throw Error("length validator's max option cannot be less than 1. max option is "+a.max);this.h7=void 0===b?Pe.countBy:b;a&&(this.tw=a.hint||{},this.Ov=a.messageSummary||{},this.Nv=a.messageDetail||{})};A("LengthValidator.prototype.Init",{Init:Ee.prototype.Init});
Ee.prototype.uc=function(){var a=null,b=this.tw,c=b.exact,d=b.inRange,e=b.max,b=b.min,f=this.Kg,h=this.Zf,k=w.ba;null!==h&&null!==f?h!==f?(a={min:h,max:f},a=d?k.Db(d,a):k.r("oj-validator.length.hint.inRange",a)):(a={length:h},a=c?k.Db(c,a):k.r("oj-validator.length.hint.exact",a)):null!==h?(a={min:h},a=b?k.Db(b,a):k.r("oj-validator.length.hint.min",a)):null!==f&&(a={max:f},a=e?k.Db(e,a):k.r("oj-validator.length.hint.max",a));return a};
Ee.prototype.validate=function(a){var b=this.Nv,c=this.Ov,d="",e,f=this.Kg,d=c.tooLong,c=c.tooShort,h=b.tooLong,b=b.tooShort,k=this.Zf,l;e="";var m=w.ba;l=""+a;e=this.Bd(l);if((null===k||e>=this.Zf)&&(null===f||e<=this.Kg))return l;e<this.Zf?(a={value:a,min:k},e=c?m.Db(c,a):m.r("oj-validator.length.messageSummary.tooShort"),d=b?m.Db(b,a):m.r("oj-validator.length.messageDetail.tooShort",a)):(a={value:a,max:f},e=d?m.Db(d,a):m.r("oj-validator.length.messageSummary.tooLong"),d=h?m.Db(h,a):m.r("oj-validator.length.messageDetail.tooLong",
a));throw new pe(e,d);};A("LengthValidator.prototype.validate",{validate:Ee.prototype.validate});Ee.prototype.Bd=function(a){var b=a.length,c,d=0;switch(this.h7.toLowerCase()){case "codepoint":for(c=0;c<b;c++)55296===(a.charCodeAt(c)&63488)&&d++;w.i.assert(0===d%2,"the number of surrogate chars must be an even number.");a=b-d/2;break;default:a=b}return a};function Qe(){this.Init()}H(Qe,x,"ComponentBinding.GlobalChangeQueue");Qe.prototype.Init=function(){Qe.o.Init.call(this);this.zC=[];this.Vw=[]};
Qe.prototype.kS=function(){var a;this.rA=null;var b=this.zC;this.zC=[];for(a=0;a<b.length;a++){var c=b[a];this.Vw.push({MN:c,po:Re(c)})}for(;0<this.Vw.length;){b=this.Vw.shift();a=b.MN;var d=b.po;if(!a.wS)for(d in b=Se(d),c={changed:!0},a.ca("option",d,c),d=void 0,b)a.ca("option",d,b[d],c)}};function va(a,b){this.Init(a,b)}t("ComponentBinding",va,w);H(va,x,"oj.ComponentBinding");
va.create=function(a,b){if(null==a)throw"Binding name is required!";var c=new va(a,b),d=ko.bindingHandlers,e,f=Array.isArray(a)?a:[a];for(e=0;e<f.length;e++){var h=f[e];Te.push(h);d[h]=c}return c};t("ComponentBinding.create",va.create,w);t("ComponentBinding.getDefaultInstance",function(){return Ue},w);va.prototype.Le=function(a){var b=a["for"],b=null==b?"@global":b,c=this.FB[b]||[];c.push(a);this.FB[b]=c};A("ComponentBinding.prototype.setupManagedAttributes",{Le:va.prototype.Le});
t("ComponentBinding.deliverChanges",function(){var a=Ve;a.rA&&clearTimeout(a.rA);a.kS()},w);va.prototype.Init=function(a,b){va.o.Init.call(this);"string"===typeof b&&(b={componentName:b});this.vG=b||{};Array.isArray(a);this.init=this._init.bind(this);this.update=this.Bt.bind(this);this.FB={}};va.prototype._init=function(a,b,c,d,e){ko.applyBindingsToDescendants(e,a);return{controlsDescendantBindings:!0}};
va.prototype.Bt=function(a,b,c,d,e){function f(a){k.forEach(function(a){a.dispose()});k=[];a&&m&&(m("destroy"),m=null);n&&(n.Nt(),n=null);p.off(We)}function h(b,d,f){if(null!=b){var h=p[b];if("function"!==typeof h)w.l.error("Component %s is not found",b);else{h=h.bind(p);n=new Xe(h,Ve);var l=Object.keys(f).filter(function(a){return!(null==a||a===d)});m=Ye(this,a,{u:h,Ix:n,AZ:b,Ry:l,aha:k,Zo:function(){return f},Ft:c,Lq:e,jha:function(){m=null},J1:{}})}}}var k=[],l=0,m,n,p=$(a);ko.ignoreDependencies(function(){ko.computed(function(){var a=
ko.utils.unwrapObservable(b());"object"!==typeof a&&w.l.error("ojComponent binding should evaluate to an object");var c=this.vG.componentName,d,e=!1;if(null==c&null!=a){for(var k=[Ze,"role"],m=0;!e&&m<k.length;m++)d=k[m],d in a&&(e=!0,c=a[d]);e||w.l.error("component attribute is required for the ojComponent binding");c=ko.utils.unwrapObservable(c)}0==l?l=1:ko.ignoreDependencies(f,this,[!0]);ko.ignoreDependencies(h,this,[c,d,a])},this,{disposeWhenNodeIsRemoved:a})},this);ko.utils.domNodeDisposal.addDisposeCallback(a,
f.bind(this,!1))};
function Ye(a,b,c){function d(){var a=this.yda,d;d=c.Zo()[a];d=ko.utils.unwrapObservable(d);(Array.isArray(d)||w.Nb.isPlainObject(d))&&d.ojConvertToJS&&(d=ko.toJS(d));if(0===h){var e=p[a];null!=e?(k[a]=e,e=e.Gm,null!=e&&(a=e(a,d,b,m,c.Zo,c.Ft,c.Lq)||{},w.Nb.Fd(r,a))):r[a]=d}else if(!f)if(null!=p[a]){if(e=p[a].update,null!=e)for(a=e(a,d,b,m,c.Zo,c.Ft,c.Lq)||{},d=Object.keys(a),e=0;e<d.length;e++){var l=d[e];$e(c.Ix,l,a[l])}}else c.J1[a]||$e(c.Ix,a,d)}function e(d){d.target&&d.target==b&&(c.jha(),(d=
a.vG.beforeDestroy)&&d(b,m,c.Zo,c.Ft,c.Lq),af(!1,k,b,m,c.Zo,c.Ft,c.Lq),f=!0,c.Ix.Nt(),b.removeEventListener("_ojDestroy",e))}var f=!1,h=0,k={},l=$(b),m=c.u,n=c.AZ;b.addEventListener("_ojDestroy",e);var p=bf(a.FB,c.Ry,n),q=Ue;a!==q&&(n=bf(q.FB,c.Ry,n),w.Nb.Fd(n,p),p=n);for(var r={},n=0;n<c.Ry.length;n++)c.aha.push(ko.computed(d,{yda:c.Ry[n]}));h=1;cf(l,c);var s=Se(r);m(r);Object.keys(s).forEach(function(a){m("option",a,s[a])});(l=a.vG.afterCreate)&&l(b,m,c.Zo,c.Ft,c.Lq);af(!0,k,b,m,c.Zo,c.Ft,c.Lq);
r=null;return m}function df(a){return new Function("$context","with($context){with($data||{}){return "+a+";}}")}function ef(a,b){var c={};c.value=b.value;return c}function ff(a,b,c){b={};var d=c.optionMetadata;if(d&&"shouldWrite"===d.writeback){var e=c.option;b[e]=c.value;d.readOnly&&(a.J1[e]=!0)}return b}
function bf(a,b,c){function d(b,c){var e=a[b];if(null!=e)for(var h=e.length-1;0<=h;h--){var k=e[h];null!=k.attributes&&f.push(k);if(c&&(k=k.use,null!=k))for(var k=Array.isArray(k)?k:[k],l=0;l<k.length;l++)d(k[l],!0)}}var e={},f=[];d(c,!0);c=$.oj[c];if(null!=c)for(c=Object.getPrototypeOf(c.prototype);null!=c&&"oj"===c.namespace;)d(c.widgetName,!0),c=Object.getPrototypeOf(c);d("@global",!1);if(0<f.length)for(c=0;c<b.length;c++)for(var h=b[c],k=0;k<f.length;k++){var l=f[k];if(0<=l.attributes.indexOf(h)){e[h]=
{Gm:l.init,update:l.update,Dt:l.afterCreate,Rga:l.beforeDestroy};break}}return e}var We=".oj_ko";
function cf(a,b){for(var c={"^slider$":[{event:"slidechange",getter:ef}],"^oj*":[{event:"ojoptionchange",getter:ff.bind(void 0,b)}]},d={},e=Object.keys(c),f=0;f<e.length;f++){var h=e[f];if(b.AZ.match(h)){c=c[h];for(e=0;e<c.length;e++)f=c[e],a.on(f.event+We,{Xha:f.getter},function(c,e){if(c.target===a[0]){var f=c.data.Xha(c,e),h=b.Zo(),p;for(p in f){var q=b.Ix;q.rt[p]=(q.rt[p]||0)+1;try{if(0<=b.Ry.indexOf(p)){var r=h[gf],q=p,s=h[p],u=f[p],v=null==r?null:r[p],y=b.Lq,z=d;if(null!=s&&ko.isObservable(s))ko.isWriteableObservable(s)&&
s(u);else{if(!(q in z)){var B=null,C=w.Mz.B_(v);null!=C&&(B=df(C));z[q]=B}var F=z[q];F&&F(y)(u)}}}finally{q=b.Ix,z=p,B=q.rt[z]||0,B--,0>B?w.l.error("ComponentChangeTracker suspendCount underflow"):0==B?delete q.rt[z]:q.rt[z]=B}}}});break}}}function Se(a){for(var b={},c=Object.keys(a),d=0;d<c.length;d++){var e=c[d];0<=e.indexOf(".")&&(b[e]=a[e],delete a[e])}return b}function af(a,b,c,d,e,f,h){for(var k=Object.keys(b),l=0;l<k.length;l++){var m=k[l],n=b[m];(n=a?n.Dt:n.Rga)&&n(m,c,d,e,f,h)}}
var Ve=new Qe,Te=[],Ze="component",gf="_ojOptions";(function(){var a=ko.removeNode;ko.removeNode=function(b){var c=w.Components;c&&w.q.V1(b);try{a(b)}finally{c&&w.q.V1(null)}}})();var Ue=va.create(["ojComponent","jqueryUI"]);$.widget("oj._ojDetectCleanData",{_destroy:function(){var a,b;a=ko.utils.domNodeDisposal;b=a.cleanExternalData;a.cleanExternalData=function(){};try{ko.cleanNode(this.element[0])}finally{a.cleanExternalData=b}}});
function hf(a,b,c){"pieCenter"===a&&b.template&&(b.renderer=jf(c,b.template));return{pieCenter:b}}Ue.Le({attributes:["pieCenter"],init:function(a,b,c,d,e,f,h){return hf(a,b,h)},update:function(a,b,c,d,e,f,h){return hf(a,b,h)},"for":"ojChart"});function kf(a,b){return function(c){var d,e;d=c.parentElement;e=a.createChildContext(c.data,null,function(a){a.$optionContext=c});ko.renderTemplate(b,e,null,d);return null}}
function lf(a,b,c){return"optionTemplate"===a&&null!==b?{optionRenderer:kf(c,String(b))}:null}Ue.Le({attributes:["optionTemplate"],init:function(a,b,c,d,e,f,h){a=lf(a,b,h);if(null!==a)return a},update:function(a,b,c,d,e,f,h){return lf(a,b,h)},"for":"ComboboxOptionRenderer"});Ue.Le({"for":"ojCombobox",use:"ComboboxOptionRenderer"});Ue.Le({"for":"ojSelect",use:"ComboboxOptionRenderer"});Ue.Le({"for":"ojInputSearch",use:"ComboboxOptionRenderer"});function Xe(a,b){this.Init(a,b)}H(Xe,x,"ComponentBinding.ComponentChangeTracker");
Xe.prototype.Init=function(a,b){Xe.o.Init.call(this);this.ca=a;this.Vw=b;this.SG={};this.rt={}};function $e(a,b,c){1<=(a.rt[b]||0)||a.wS||(a.SG[b]=c,b=a.Vw,-1===b.zC.indexOf(a)&&(b.zC.push(a),b.rA||(b.rA=setTimeout(la(b,b.kS),1))))}Xe.prototype.Nt=function(){this.wS=!0};function Re(a){var b=a.SG;a.SG={};return b}
ko.bindingHandlers.ojContextMenu={update:function(a,b){function c(a,b,c){m=c;var d=e();if(m)k.one("touchend.ojContextMenu",function(){d.Xr(!0);setTimeout(function(){d.Xr(!1)},50)});"touchstart"===q&&"contextmenu"===a.type||"contextmenu"===q&&"touchstart"===a.type?(q=null,clearTimeout(p)):!a.isDefaultPrevented()&&(b={launcher:k,initialFocus:"menu",position:{mouse:{my:"start top",at:"start bottom",of:a},touch:{my:"start\x3e40 center",at:"start bottom",of:a,collision:"flipfit"},keyboard:{my:"start top",
at:"start bottom",of:"launcher"}}[b]},d.Oz=!0,d.open(a,b),d.Oz=!1,d.widget().is(":visible")&&(a.preventDefault(),document.addEventListener("keyup",f),"touchstart"===a.type||"contextmenu"===a.type))&&(q=a.type,p=setTimeout(function(){q=null},300))}function d(a,b){return b?$(document.getElementById(b)):$(a).first()}function e(){var a=w.Components.Pb(d(u,v)[0],"ojMenu"),a=a&&a("instance");if(!a)throw Error('ojContextMenu binding bound to "'+(v?v:u)+'", which does not reference a valid JET Menu.');s||
(a.widget().on("ojclose.ojContextMenu",function(){document.removeEventListener("keyup",f)}),s=!0);return a}function f(a){121==a.which&&a.shiftKey&&d(u,v).is(":visible")&&a.preventDefault()}function h(a){if(m)return a.preventDefault(),a.stopPropagation(),m=!1}var k=$(a),l,m=!1,n=!1,p,q=null;k.off(".ojContextMenu").removeClass("oj-menu-context-menu-launcher")[0].removeEventListener("click",h,!0);clearTimeout(l);var r=k.data("_ojLastContextMenu");r&&d(r.xja,r.id).off(".ojContextMenu");var s=!1,u=ko.utils.unwrapObservable(b()),
v=$.isPlainObject(u)?a.getAttribute("contextmenu"):null;k.data("_ojLastContextMenu",{xja:u,id:v});a.addEventListener("click",h,!0);k.on("touchstart.ojContextMenu mousedown.ojContextMenu keydown.ojContextMenu ",function(a){if("mousedown"!==a.type||!e().Xr())return m=!1,"touchstart"===a.type&&(n=!0,l=setTimeout(c.bind(void 0,a,"touch",!0),750)),!0}).on("touchend.ojContextMenu touchcancel.ojContextMenu",function(){n=!1;clearTimeout(l);return!0}).on("keydown.ojContextMenu contextmenu.ojContextMenu",function(a){("contextmenu"===
a.type||121==a.which&&a.shiftKey)&&c(a,n?"touch":"keydown"===a.type?"keyboard":"mouse",!1);return!0}).addClass(w.q.ud()?"oj-menu-context-menu-launcher":"")}};
w.jG=(new function(){function a(a,d,e){var f=a[e];d[e]=function(){var d=f?f.apply(a,arguments):null,k=b[e];if(null!=k){var l=arguments;k.forEach(function(b){var e=Array.prototype.slice.call(l);e.push(d,a);d=b.apply(null,e)})}return d}}this.yM=function(){var b=ko.bindingProvider,d=b.instance;if(!d.getBindingAccessors)return w.l.error("JET's Knockout bindings are not compatible with the current binding provider since it does not implement getBindingAccessors()"),this;var e=b.instance={},b=[];b.push("getBindingAccessors",
"nodeHasBindings","getBindings","preprocessNode");b.forEach(function(b){a(d,e,b)});return this};this.tL=function(a){Object.keys(a).forEach(function(d){b[d]=b[d]||[];b[d].push(a[d])})};var b={}}).yM();w.jG.tL({getBindingAccessors:mf});function mf(a,b,c,d){if(null==c)return null;var e;a:{e=Object.keys(c);for(var f=-0;f<e.length;f++){var h=e[f];if(0<=Te.indexOf(h)){e=h;break a}}e=null}null!=e&&(c=nf(a,e,d,b,c));return c}
function nf(a,b,c,d,e){a=of(a,b,c,d);c=a.Pga;if(null==c)return e;var f={};pf(c,function(a,b){f[a]=b});e=w.Nb.Fd({},e);e[b]=qf(d,f,a.Sga);return e}function qf(a,b,c){function d(){var c={};Object.keys(b).forEach(function(d){var h=df(b[d]).bind(null,a);Object.defineProperty(c,d,{get:h,enumerable:!0})});Object.defineProperty(c,gf,{value:b});return c}d.toString=function(){return c};return d}
function rf(a,b,c){var d=b.getBindingsString;if(d)return d.call(b,a,c);switch(a.nodeType){case 1:return a.getAttribute("data-bind");case 8:return(a=a.nodeValue.match(/^\s*ko(?:\s+([\s\S]+))?\s*$/))?a[1]:null}return null}function of(a,b,c,d){var e=null;a=rf(a,c,d);a=ko.jsonExpressionRewriting.parseObjectLiteral(a);var f=null;pf(a,function(a,c){return a===b?(f=c,!0):!1});null!=f&&0===f.indexOf("{")&&(e=ko.jsonExpressionRewriting.parseObjectLiteral(f));return{Pga:e,Sga:f}}
function pf(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=d.key,d=d.value;if(null!=e&&null!=d&&b(e.trim(),d.trim()))break}}w.jG.tL({nodeHasBindings:function(a,b){return b||1===a.nodeType&&w.Components&&w.Components.r0(a.nodeName)},getBindingAccessors:function(a,b,c){1===a.nodeType&&(a=a.nodeName,w.Components&&w.Components.r0(a)&&(c=c||{},c._ojCustomElement=function(){}));return c}});
function sf(a,b){return function(c){var d,e,f;d=c.parentElement;e=a.createChildContext(c.data,null,function(a){a.$key=c.key;a.$metadata=c.metadata;a.$headerContext=c});f=tf(b,c);ko.renderTemplate(f,e,{afterRender:function(a){$(a)._ojDetectCleanData()}},d);return null}}
function uf(a,b){return function(c){var d,e,f;d=c.parentElement;e=a.createChildContext(c.data,null,function(a){a.$keys=c.keys;a.$metadata=c.metadata;a.$cellContext=c;a.$cell=c.cell});f=tf(b,c);ko.renderTemplate(f,e,{afterRender:function(a){$(a)._ojDetectCleanData()}},d);return null}}function tf(a,b){return"function"===typeof a?a(b):a}
Ue.Le({attributes:["header","cell"],init:function(a,b,c,d,e,f,h){if("header"===a)return a=b.row,null!=a&&(c=a.template,null!=c&&(a.renderer=sf(h,c))),a=b.column,null!=a&&(c=a.template,null!=c&&(a.renderer=sf(h,c))),a=b.rowEnd,null!=a&&(c=a.template,null!=c&&(a.renderer=sf(h,c))),a=b.columnEnd,null!=a&&(c=a.template,null!=c&&(a.renderer=sf(h,c))),{header:b};if("cell"===a)return a=b.template,null!=a&&(b.renderer=uf(h,a)),{cell:b}},update:function(a,b,c,d,e,f,h){return"header"===a?(a=b.row,null!=a&&
(c=a.template,null!=c&&(a.renderer=sf(h,c))),a=b.column,null!=a&&(c=a.template,null!=c&&(a.renderer=sf(h,c))),a=b.rowEnd,null!=a&&(c=a.template,null!=c&&(a.renderer=sf(h,c))),a=b.columnEnd,null!=a&&(c=a.template,null!=c&&(a.renderer=sf(h,c))),{header:b}):"cell"===a?(a=b.template,null!=a&&(b.renderer=uf(h,a)),{cell:b}):null},"for":"ojDataGrid"});
function vf(a,b){return function(c){var d=a.createChildContext(c.data);ko.renderTemplate(b,d,{afterRender:function(a){$(a)._ojDetectCleanData()}},c.parentElement);return null}}Ue.Le({attributes:["template"],init:function(a,b,c,d,e,f,h){return"template"===a?{_templateFunction:vf(h,b)}:null},update:function(a,b,c,d,e,f,h){return"template"===a?{_templateFunction:vf(h,b)}:null},"for":"ojDiagram"});
(function(){w.Mz={};w.Mz.Px=function(c){var e={};if(c){var f=a.exec(c),f=f?f[1]:null;f||(e.LZ=!0,f=(f=b.exec(c))?f[1]:null);e.expr=f}return e};w.Mz.B_=function(a){var b=["true","false","null","undefined"];if(null==a||0<=b.indexOf(a))return null;b=a.match(c);return null===b?null:"function(v){"+(b[1]?"Object("+b[1]+")"+b[2]:a)+"\x3dv;}"};var a=/(?:\{\{\s*)([^\s]+)(?:\s*\}\})/,b=/(?:\[\[\s*)([^\s]+)(?:\s*\]\])/,c=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i})();
function wf(a,b){function c(c,d,e,p){function q(a){var k=!1;h[c]||(p&&ko.ignoreDependencies(function(){var c=a.detail.value,f=e(b);ko.isWriteableObservable(f)?(k=!0,f(c)):(f=w.Mz.B_(d),null!=f&&(df(f)(b)(c),k=!0))}),k||(f[c]=!0))}a.addEventListener(c+k,q);return q}this.EN=function(l,m,n){l=w.yd.Px(l);f[m]&&(f[m]=null);var p=d[m];p&&(p.dispose(),d[m]=null);if(p=e[m])a.removeEventListener(m+k,p),e[m]=null;var p=n.readOnly,q=l.expr;if(q){var r=df(q);p||ko.ignoreDependencies(function(){d[m]=ko.computed(function(){if(!f[m]){var c=
r(b),c=ko.utils.unwrapObservable(c),d=h[m]||0;d++;h[m]=d;try{a[m]=c}finally{(c=h[m])?(c--,h[m]=0===c?null:c):w.l.error("Property count undefrlow")}}})});e[m]=c(m,q,r,n.writeback&&!l.LZ);return!0}return!1};this.HE=function(){for(var b=Object.keys(d),c=0;c<b.length;c++)d[b[c]].dispose();d={};b=Object.keys(e);for(c=0;c<b.length;c++){var f=b[c];a.removeEventListener(f+k,e[f])}e={}};var d={},e={},f={},h={},k="-changed"}w.Wj={};t("ResponsiveKnockoutUtils",w.Wj,w);
w.Wj.Lt=function(a){if(null==a)throw Error("oj.ResponsiveKnockoutUtils.createMediaQueryObservable: aborting, queryString is null");a=window.matchMedia(a);var b=ko.observable(a.matches);a.addListener(function(a){b(a.matches)});-1!=navigator.userAgent.indexOf("WebKit")&&-1==navigator.userAgent.indexOf("Chrome")&&$(window).resize(function(){0===$("body").has(".oj-webkit-bug-123293").length&&$("body").append('\x3cdiv aria-hidden\x3d"true" class\x3d"oj-helper-hidden-accessible oj-webkit-bug-123293"\x3e');
$(".oj-webkit-bug-123293").text((new Date).getMilliseconds().toString())});return b};t("ResponsiveKnockoutUtils.createMediaQueryObservable",w.Wj.Lt,w);
w.Wj.eha=function(){var a=w.Ld.Ot(xa.XXL_UP),b=w.Ld.Ot(xa.XL_UP),c=w.Ld.Ot(xa.LG_UP),d=w.Ld.Ot(xa.MD_UP),e=w.Ld.Ot(xa.SM_UP),f=null==a?null:w.Wj.Lt(a),h=null==b?null:w.Wj.Lt(b),k=null==c?null:w.Wj.Lt(c),l=null==d?null:w.Wj.Lt(d),m=null==e?null:w.Wj.Lt(e);return ko.computed(function(){if(f&&f())return wa.XXL;if(h&&h())return wa.XL;if(k&&k())return wa.LG;if(l&&l())return wa.MD;if(m&&m())return wa.SM;throw Error(" NO MATCH in oj.ResponsiveKnockoutUtils.createScreenRangeObservable");})};
t("ResponsiveKnockoutUtils.createScreenRangeObservable",w.Wj.eha,w);function xf(a,b){return function(c){var d=a.createChildContext(c.data);ko.renderTemplate(b,d,{afterRender:function(a){$(a)._ojDetectCleanData()}},c.parentElement);return null}}
function yf(a,b,c){if("areaLayers"===a){for(a=0;a<b.length;a++){var d=b[a].areaDataLayer;if(d){var e=d.template;null!=e&&(d._templateRenderer=xf(c,e))}}return{areaLayers:b}}if("pointDataLayers"===a){for(a=0;a<b.length;a++)e=b[a].template,null!=e&&(b[a]._templateRenderer=xf(c,e));return{pointDataLayers:b}}return null}Ue.Le({attributes:["areaLayers","pointDataLayers"],init:function(a,b,c,d,e,f,h){return yf(a,b,h)},update:function(a,b,c,d,e,f,h){return yf(a,b,h)},"for":"ojThematicMap"});
function zf(a,b){return function(c){var d=document.createElement("div");d.style.display="none";c=a.createChildContext(c);ko.renderTemplate(b,c,{afterRender:function(a){$(a)._ojDetectCleanData()}},d);return(c=d.children[0])?(d.removeChild(c),$(d).remove(),c):null}}function Af(a,b,c){"tooltip"===a&&b.template&&(b.renderer=zf(c,b.template));return{tooltip:b}}Ue.Le({attributes:["tooltip"],init:function(a,b,c,d,e,f,h){return Af(a,b,h)},update:function(a,b,c,d,e,f,h){return Af(a,b,h)},"for":"tooltipOptionRenderer"});
for(var Bf="ojChart ojDiagram ojNBox ojPictoChart ojSunburst ojTagCloud ojThematicMap ojTreemap ojDialGauge ojLedGauge ojRatingGauge ojSparkChart ojStatusMeterGauge ojGantt".split(" "),Cf=0;Cf<Bf.length;Cf++)Ue.Le({"for":Bf[Cf],use:"tooltipOptionRenderer"});w.IM={};t("koStringTemplateEngine",w.IM,w);
w.IM.yM=function(){if(!ko.templates){var a={},b={},c=new ko.nativeTemplateEngine,d=function(c){this.ut=c;this.text=function(b){if(!b)return a[this.ut];a[this.ut]=b};this.data=function(a,c){b[this.ut]||(b[this.ut]={});if(1===arguments.length)return b[this.ut][a];b[this.ut][a]=c}};c.makeTemplateSource=function(a,b){if("string"==typeof a){b=b||document;var c=b.getElementById(a);return c?new ko.templateSources.domElement(c):new d(a)}if(a&&1==a.nodeType||8==a.nodeType)return new ko.templateSources.anonymousTemplate(a)};
ko.templates=a;ko.setTemplateEngine(c)}};t("koStringTemplateEngine.install",w.IM.yM,w);
(function(){ko.bindingHandlers._ojCustomElement={update:function(b,c,d,e,f){function h(){m&&(m.HE(),m=null);n&&(b.removeEventListener(a,n),n=null)}function k(){var c=w.Components.getMetadata(b.tagName);if(c){var d=c.properties;d&&(c=Object.keys(d),0!==c.length&&(m=new wf(b,f),c.forEach(function(a){var c=w.yd.Cu(a);b.hasAttribute(a)&&(c=b.getAttribute(c),m.EN(c,a,d[a]))}),n=function(a){a=a.detail;var b=w.yd.yL(a.attribute);m.EN(a.value,b,d[b])},b.addEventListener(a,n),b.classList.add("oj-complete")))}}
var l=0,m,n,p=w.Components.Eha(b);ko.ignoreDependencies(function(){ko.computed(function(){function a(b,c){return function(a,b){a===l&&c(b)}.bind(void 0,b)}c();ko.computedContext.isInitial()||h();l++;p.then(a(l,function(){k()}),a(l,function(a){w.l.error("Component create Promise rejected. Reason: %o",a)}))},null,{disposeWhenNodeIsRemoved:b})});ko.utils.domNodeDisposal.addDisposeCallback(b,h)}};var a="attribute-changed"})();
function jf(a,b){return function(c){var d=document.createElement("div");d.style.display="none";c=a.createChildContext(c);ko.renderTemplate(b,c,{afterRender:function(a){$(a)._ojDetectCleanData()}},d);return(c=d.children[0])?(d.removeChild(c),$(d).remove(),c):null}}function Ff(a,b,c){"center"===a&&b.template&&(b.renderer=jf(c,b.template));return{center:b}}Ue.Le({attributes:["center"],init:function(a,b,c,d,e,f,h){return Ff(a,b,h)},update:function(a,b,c,d,e,f,h){return Ff(a,b,h)},"for":"ojStatusMeterGauge"});
function Gf(a,b,c){var d={};(function(b,c){d=function(d){var k=null,l=null;"header"==c?(k=a.createChildContext(null,null,function(a){a.$columnIndex=d.columnIndex;a.$headerContext=d.headerContext;a.$data=d.data}),l=d.headerContext.parentElement):"cell"==c&&(k=a.createChildContext(d.row,null,function(a){a.$columnIndex=d.columnIndex;a.$cellContext=d.cellContext}),l=d.cellContext.parentElement);"footer"==c&&(k=a.createChildContext(null,null,function(a){a.$columnIndex=d.columnIndex;a.$footerContext=d.footerContext}),
l=d.footerContext.parentElement);ko.renderTemplate(b,k,{afterRender:function(a){$(a)._ojDetectCleanData()}},l,"replaceNode")}})(c,b);return d}function Hf(a,b){return function(c){var d=a.createChildContext(c.row,null,function(a){a.$rowContext=c.rowContext});ko.renderTemplate(b,d,{afterRender:function(a){$(a)._ojDetectCleanData()}},c.rowContext.parentElement,"replaceNode")}}
Ue.Le({attributes:["columns","columnsDefault","rowTemplate"],init:function(a,b,c,d,e,f,h){if("columns"==a||"columnsDefault"==a){for(c=0;c<b.length;c++){var k=b[c];d=k.template;e=k.footerTemplate;f=k.headerTemplate;null!=d&&(k.renderer=Gf(h,"cell",d));null!=e&&(k.footerRenderer=Gf(h,"footer",e));null!=f&&(k.headerRenderer=Gf(h,"header",f))}return"columns"==a?{columns:b}:{columnsDefault:b}}if("rowTemplate"==a)return{rowRenderer:Hf(h,b)}},update:function(a,b,c,d,e,f,h){if("columns"==a||"columnsDefault"==
a){var k;for(c=0;c<b.length;c++){var l=b[c];e=l.template;f=l.footerTemplate;k=l.headerTemplate;null!=e&&(l.renderer=Gf(h,"cell",e));null!=f&&(l.footerRenderer=Gf(h,"footer",f));null!=k&&(l.headerRenderer=Gf(h,"header",k))}"columns"==a?d({columns:b}):d({columnsDefault:b})}else if("rowTemplate"==a)return{rowRenderer:Hf(h,b)};return null},"for":"ojTable"});
function If(a,b){return function(c){var d,e;d=c.parentElement;e=a.createChildContext(c.data,null,function(a){a.$itemContext=c});ko.renderTemplate(b,e,{afterRender:function(a){$(a)._ojDetectCleanData()}},d,"replaceNode");return null}}function Jf(a,b,c){return"item"==a?(a=b.template,null!=a&&(b.renderer=If(c,a)),{item:b}):null}Ue.Le({attributes:["item"],init:function(a,b,c,d,e,f,h){a=Jf(a,b,h);if(null!=a)return a},update:function(a,b,c,d,e,f,h){return Jf(a,b,h)},"for":"ojListViewRenderer"});
Ue.Le({"for":"ojListView",use:"ojListViewRenderer"});Ue.Le({"for":"ojNavigationList",use:"ojListViewRenderer"});function Kf(a,b){var c=a.data.MN,d,e=a.data.u,f=b.option,h=b.value;("messagesShown"===f||"messagesHidden"===f)&&c&&ko.isWriteableObservable(c)&&(d=c.peek())&&d.Bt.call(d,e,f,h)&&c.valueHasMutated()}
Ue.Le({"for":"editableValue",attributes:["invalidComponentTracker","disabled","readOnly"],init:function(a,b){var c={};c[a]=b;return c},update:function(a,b,c,d,e){c={};e=e.call().invalidComponentTracker;var f;if("disabled"===a||"readOnly"===a)return f=e&&e.peek()||null,null!==f&&ko.isWriteableObservable(e)&&f.Bt.call(f,d,a,b)&&e.valueHasMutated(),c[a]=b,c},afterCreate:function(a,b,c,d){d=d.call();var e;if("invalidComponentTracker"===a&&(e=d[a]?!0:!1)){a=d[a];var f;b=$(b);if(ko.isObservable(a))f=a.peek(),
null==f&&(f=new Lf,a(f));else throw Error("Binding attribute invalidComponentTracker should be bound to a ko observable.");null!==f&&(ko.isWriteableObservable(a)&&(d=c.call(c,"option","messagesShown"),e=c.call(c,"option","messagesHidden"),f.Bt.call(f,c,"messagesShown",d),f.Bt.call(f,c,"messagesHidden",e),a.valueHasMutated()),c={MN:a,u:c},b.on("ojoptionchange",c,Kf))}return{}},beforeDestroy:function(a,b,c,d){b=$(b);d=d.call()[a];"invalidComponentTracker"===a&&b&&(b.off("ojoptionchange",Kf),d&&ko.isWriteableObservable(d)&&
(a=d.peek(),a.rc.call(a,c)&&d.valueHasMutated()))}});function Lf(){this.Init()}t("InvalidComponentTracker",Lf,w);H(Lf,x,"oj.InvalidComponentTracker");Lf.prototype.Init=function(){Lf.o.Init.call(this);this.xt=[];this.Qn=[];this.Os=[];this.invalidHidden=this.invalidShown=!1};Lf.prototype.VZ=function(){var a=null,b=this,c=this.EC;this.invalidShown&&(a=Mf(this));setTimeout(function(){(a=c===b.EC?a||Mf(b):Mf(b))&&a.call(a,"Focus")},1);return a?!0:!1};
A("InvalidComponentTracker.prototype.focusOnFirstInvalid",{VZ:Lf.prototype.VZ});Lf.prototype.showMessages=function(){var a,b,c;if(this.invalidHidden)for(b=this.Os.length,c=0;c<b;c++)this.Os[c]&&(a=this.xt[c].call(a,"showMessages"))};A("InvalidComponentTracker.prototype.showMessages",{showMessages:Lf.prototype.showMessages});function Mf(a){for(var b,c=0,d=a.Qn.length,c=0;c<d;c++)if(b=a.Qn[c])return a.xt[c];return null}
Lf.prototype.rc=function(a){var b=-1,c=!1;$.each(this.xt,function(c,e){0>b&&e===a&&(b=c)});0<=b&&(this.xt.splice(b,1),this.Qn.splice(b,1),this.Os.splice(b,1),Nf(this),c=!0);return c};
Lf.prototype.Bt=function(a,b,c){var d=a.call(a,"isValid"),e=-1,f=!0,h;$.each(this.xt,function(b,c){0>e&&c===a&&(e=b)});switch(b){case "messagesShown":case "messagesHidden":h=!1;c&&(0>e&&(e=this.xt.push(a)-1,Of(this,e,h)),d||dd.isValid(c)||(h=!0,"messagesShown"===b&&(c=a.call(a,"option","disabled"),d=a.call(a,"option","readOnly"),h=c||d?!1:!0)),f=Pf(this,b,e||0,h),Nf(this),f&&(void 0===this.EC&&(this.EC=0),this.EC++));break;case "disabled":case "readOnly":f=!1,c&&(f=Pf(this,"messagesShown",e||0,!1),
f=Pf(this,"messagesHidden",e||0,!1)||f,Nf(this))}return f};function Of(a,b,c){void 0===a.Qn[b]&&Pf(a,"messagesShown",b,c);void 0===a.Os[b]&&Pf(a,"messagesHidden",b,c)}function Nf(a){a.invalidShown=0<=a.Qn.indexOf(!0);a.invalidHidden=0<=a.Os.indexOf(!0)}function Pf(a,b,c,d){var e=!1;a="messagesShown"===b?a.Qn:"messagesHidden"===b?a.Os:[];0<=c&&void 0!==a[c]?(e=a[c]!==d?!0:!1)&&a.splice(c,1,d):(a.push(d),e=!0);return e}function Qf(a){this.data=a;this.Init()}t("DataSource",Qf,w);H(Qf,ua,"oj.DataSource");
Qf.prototype.Init=function(){Qf.o.Init.call(this)};A("DataSource.prototype.Init",{Init:Qf.prototype.Init});function Rf(a){Rf.o.constructor.call(this,a)}t("TreeDataSource",Rf,w);H(Rf,Qf,"oj.TreeDataSource");function Sf(a,b){if(this.constructor==Sf)throw Error(Tf.vka+"\n"+Tf.uka);this.data=a;this.options=b;this.W=0;this.Init()}t("TableDataSource",Sf,w);H(Sf,Qf,"oj.TableDataSource");Sf.prototype.Init=function(){Sf.o.Init.call(this)};A("TableDataSource.prototype.Init",{Init:Sf.prototype.Init});
Sf.prototype.sortCriteria=null;A("TableDataSource.prototype.sortCriteria",{sortCriteria:Sf.prototype.sortCriteria});Sf.prototype.totalSizeConfidence=function(){return"actual"};A("TableDataSource.prototype.totalSizeConfidence",{totalSizeConfidence:Sf.prototype.totalSizeConfidence});var R={ADD:"add",REMOVE:"remove",RESET:"reset",REFRESH:"refresh",SORT:"sort",CHANGE:"change",REQUEST:"request",SYNC:"sync",ERROR:"error"};t("TableDataSource.EventType",R,w);
var Tf={_ERR_TABLE_DATASOURCE_INSTANTIATED_SUMMARY:"oj.TableDataSource constructor called.",_ERR_TABLE_DATASOURCE_INSTANTIATED_DETAIL:"Please do not instantiate oj.TableDataSource. Please use one of the subclasses instead such as oj.ArrayTableDataSource or oj.CollectionTableDataSource.",_ERR_DATA_INVALID_TYPE_SUMMARY:"Invalid data type.",_ERR_DATA_INVALID_TYPE_DETAIL:"Please specify the appropriate data type."};function Uf(a){Uf.o.constructor.call(this,a)}t("DataGridDataSource",Uf,w);H(Uf,Qf,"oj.DataGridDataSource");
w.sa("oj.ojPagingControl",$.oj.baseComponent,{version:"1.0.0",defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{data:null,overflow:"fit",pageSize:25,pageOptions:{layout:["auto"],type:"numbers",maxPageLinks:6,orientation:"horizontal"},loadMoreOptions:{maxCount:500},mode:"page",ready:null},ma:{g4:"labelAccPaging",b4:"labelAccNavFirstPage",c4:"labelAccNavLastPage",d4:"labelAccNavNextPage",f4:"labelAccNavPreviousPage",e4:"labelAccNavPage",h4:"labelLoadMore",i4:"labelLoadMoreMaxRows",AP:"labelNavInputPage",
GF:"labelNavInputPageMax",Bka:"labelNavInputPageSummary",EP:"msgItemRangeCurrent",KF:"msgItemRangeCurrentSingle",FP:"msgItemRangeItems",v4:"msgItemRangeOfAtLeast",u4:"msgItemRangeOfApprox",w4:"msgItemRangeOf",iQ:"tipNavInputPage",s5:"tipNavPageLink",kQ:"tipNavNextPage",lQ:"tipNavPreviousPage",hQ:"tipNavFirstPage",jQ:"tipNavLastPage",op:"pageInvalid.summary",tka:"pageInvalid.detail",eP:"dataInvalidType.summary",dP:"dataInvalidType.detail",J3:"maxPageLinksInvalid.summary",I3:"maxPageLinksInvalid.detail"},
ya:{y5:"oj-component",Rf:"oj-active",nz:"oj-clickable-icon-nocontext",Mc:"oj-disabled",Xj:"oj-enabled",wka:"oj-focus",yka:"oj-hover",aG:"oj-selected"},C:{I4:"oj-pagingcontrol",RP:"oj-pagingcontrol-acc-label",SP:"oj-pagingcontrol-content",TP:"oj-pagingcontrol-loadmore",Ez:"oj-pagingcontrol-loadmore-link",QF:"oj-pagingcontrol-loadmore-max-rows",Fz:"oj-pagingcontrol-loadmore-range",RF:"oj-pagingcontrol-loadmore-range-current",SF:"oj-pagingcontrol-loadmore-range-max",WP:"oj-pagingcontrol-nav",Gz:"oj-pagingcontrol-nav-arrow",
VP:"oj-pagingcontrol-nav-arrow-section",VF:"oj-pagingcontrol-nav-page",V4:"oj-pagingcontrol-nav-page-ellipsis",K4:"oj-pagingcontrol-nav-dot",J4:"oj-pagingcontrol-nav-dot-bullet",U4:"oj-pagingcontrol-nav-page-acc-label",YP:"oj-pagingcontrol-nav-label",XP:"oj-pagingcontrol-nav-input-section",vp:"oj-pagingcontrol-nav-input",iv:"oj-pagingcontrol-nav-input-max",jv:"oj-pagingcontrol-nav-input-summary",TF:"oj-pagingcontrol-nav-input-summary-current",UF:"oj-pagingcontrol-nav-input-summary-max",$P:"oj-pagingcontrol-nav-pages-section",
ZP:"oj-pagingcontrol-nav-pages-links",Rr:"oj-pagingcontrol-nav-first",L4:"oj-pagingcontrol-nav-first-acc-label",Ur:"oj-pagingcontrol-nav-previous",W4:"oj-pagingcontrol-nav-previous-acc-label",Tr:"oj-pagingcontrol-nav-next",R4:"oj-pagingcontrol-nav-next-acc-label",Sr:"oj-pagingcontrol-nav-last",O4:"oj-pagingcontrol-nav-last-acc-label",M4:"oj-pagingcontrol-nav-first-icon",X4:"oj-pagingcontrol-nav-previous-icon",S4:"oj-pagingcontrol-nav-next-icon",P4:"oj-pagingcontrol-nav-last-icon",N4:"oj-pagingcontrol-nav-first-vertical-icon",
Y4:"oj-pagingcontrol-nav-previous-vertical-icon",T4:"oj-pagingcontrol-nav-next-vertical-icon",Q4:"oj-pagingcontrol-nav-last-vertical-icon",Lz:"oj-component-icon",R3:"oj-helper-hidden-accessible"},VO:"data-oj-pagenum",tp:"enabled",E4:"disabled",zg:"tabindex",Wi:{hn:"loadMore",OF:"page"},ef:{mp:"auto",av:"all",Z3:"input",a5:"rangeText",G4:"pages",GP:"nav"},H4:6,Wr:{Cka:"numbers",B3:"dots"},firstPage:function(){return null!=this.Va()?this.gi(0,!1):this.Ds()},previousPage:function(){if(null!=this.Va()){var a=
this.ye();if(0<a)return this.gi(a-1,!1)}return this.Ds()},nextPage:function(){if(null!=this.Va()){var a=this.ye();if(this.pd()&&a+1<=this.nd()-1||0>this.nd()||!this.pd())return this.gi(a+1,!1)}return this.Ds()},lastPage:function(){return null!=this.Va()&&0<this.nd()?this.gi(this.nd()-1,!1):this.Ds()},page:function(a){return null!=this.Va()&&(this.pd()&&a<=this.nd()-1||0>this.nd()||!this.pd())?this.gi(a,!1):this.Ds()},loadNext:function(){return null!=this.Va()?this.Aba():this.Ds()},refresh:function(){this._super();
this.Pd()},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;var b=a.subId,c=null;"oj-pagingcontrol-nav-input"===b?c=this.Nd().find("."+this.C.vp)[0]:"oj-pagingcontrol-nav-input-max"===b?c=this.Nd().find("."+this.C.iv)[0]:"oj-pagingcontrol-nav-input-summary"===b?c=this.Nd().find("."+this.C.jv)[0]:"oj-pagingcontrol-nav-input-summary-current"===b?c=this.Nd().find("."+this.C.TF)[0]:"oj-pagingcontrol-nav-input-summary-max"===b?c=this.Nd().find("."+this.C.UF)[0]:"oj-pagingcontrol-nav-first"===
b?c=this.Nd().find("."+this.C.Rr)[0]:"oj-pagingcontrol-nav-next"===b?c=this.Nd().find("."+this.C.Tr)[0]:"oj-pagingcontrol-nav-previous"===b?c=this.Nd().find("."+this.C.Ur)[0]:"oj-pagingcontrol-nav-last"===b?c=this.Nd().find("."+this.C.Sr)[0]:"oj-pagingcontrol-nav-page"===b?(a=a.index,c=this.Nd().find("["+this.VO+"\x3d"+a+"]")[0]):"oj-pagingcontrol-load-more-link"===b?c=this.Nd().find("."+this.C.Ez)[0]:"oj-pagingcontrol-load-more-range"===b?c=this.Nd().find("."+this.C.Fz)[0]:"oj-pagingcontrol-load-more-range-current"===
b?c=this.Nd().find("."+this.C.RF)[0]:"oj-pagingcontrol-load-more-range-max"===b?c=this.Nd().find("."+this.C.SF)[0]:"oj-pagingcontrol-load-more-max-rows"===b&&(c=this.Nd().find("."+this.C.QF)[0]);void 0===c&&(c=null);return c},getSubIdByNode:function(a){return $(a).hasClass(this.C.vp)?{subId:"oj-pagingcontrol-nav-input"}:$(a).hasClass(this.C.iv)?{subId:"oj-pagingcontrol-nav-input-max"}:$(a).hasClass(this.C.jv)?{subId:"oj-pagingcontrol-nav-input-summary"}:$(a).hasClass(this.C.TF)?{subId:"oj-pagingcontrol-nav-input-summary-current"}:
$(a).hasClass(this.C.UF)?{subId:"oj-pagingcontrol-nav-input-summary-max"}:$(a).hasClass(this.C.Rr)?{subId:"oj-pagingcontrol-nav-first"}:$(a).hasClass(this.C.Tr)?{subId:"oj-pagingcontrol-nav-next"}:$(a).hasClass(this.C.Ur)?{subId:"oj-pagingcontrol-nav-previous"}:$(a).hasClass(this.C.Sr)?{subId:"oj-pagingcontrol-nav-last"}:$(a).hasClass(this.C.VF)?{subId:"oj-pagingcontrol-nav-page",index:$(a).attr(this.VO)}:$(a).hasClass(this.C.Ez)?{subId:"oj-pagingcontrol-load-more-link"}:$(a).hasClass(this.C.Fz)?
{subId:"oj-pagingcontrol-load-more-range"}:$(a).hasClass(this.C.RF)?{subId:"oj-pagingcontrol-load-more-range-current"}:$(a).hasClass(this.C.SF)?{subId:"oj-pagingcontrol-load-more-range-max"}:$(a).hasClass(this.C.QF)?{subId:"oj-pagingcontrol-load-more-max-rows"}:null},_ComponentCreate:function(){this._super();this.wq();this.Rv();this.wj(this.Nd());this._on(this.Wl)},cf:function(){this._super();this.ht();this.OX()},_destroy:function(){this.Pk();this.CC();this.Kv=!0},Rv:function(){var a=this.options;
this.element.addClass(this.C.I4);this.element.addClass(this.ya.y5);this.x7();this.D7();this.dW=a.mode;a.mode==this.Wi.hn?(this.OR(),this.PR(),this.QR()):this.RR()},Wl:{"mouseup .oj-pagingcontrol-loadmore-link":function(a){this.loadNext();$(a.target).data("_mouseup",!0);a.preventDefault()},"click .oj-pagingcontrol-loadmore-link":function(a){$(a.target).data("_mouseup")?$(a.target).data("_mouseup",!1):this.loadNext();a.preventDefault()},"click .oj-pagingcontrol-nav-dot":function(a){if(!$(a.currentTarget).hasClass(this.ya.Mc)){var b=
$(a.currentTarget).attr("data-oj-pagenum"),c=this;this.page(b).then(function(){c=null},function(a){var b=c.r(c.ma.op);w.l.error(b+"\n"+a);c=null})}a.preventDefault()},"click .oj-pagingcontrol-nav-page":function(a){if(!$(a.currentTarget).hasClass(this.ya.Mc)){var b=$(a.currentTarget).attr("data-oj-pagenum"),c=this;this.page(b).then(function(){c=null},function(a){var b=c.r(c.ma.op);w.l.error(b+"\n"+a);c=null})}a.preventDefault()},"click .oj-pagingcontrol-nav-first":function(a){if(!$(a.currentTarget).hasClass(this.ya.Mc)){var b=
this;this.firstPage().then(function(){b=null},function(a){var d=b.r(b.ma.op);w.l.error(d+"\n"+a);b=null})}a.preventDefault()},"click .oj-pagingcontrol-nav-previous":function(a){if(!$(a.currentTarget).hasClass(this.ya.Mc)){var b=this;this.previousPage().then(function(){b=null},function(a){var d=b.r(b.ma.op);w.l.error(d+"\n"+a);b=null})}a.preventDefault()},"click .oj-pagingcontrol-nav-next":function(a){if(!$(a.currentTarget).hasClass(this.ya.Mc)){var b=this;this.nextPage().then(function(){b=null},function(a){var d=
b.r(b.ma.op);w.l.error(d+"\n"+a);b=null})}a.preventDefault()},"click .oj-pagingcontrol-nav-last":function(a){if(!$(a.currentTarget).hasClass(this.ya.Mc)){var b=this;this.lastPage().then(function(){b=null},function(a){var d=b.r(b.ma.op);w.l.error(d+"\n"+a);b=null})}a.preventDefault()},"keypress .oj-pagingcontrol-nav-input":function(a){13==a.which&&a.preventDefault()},"mousedown .oj-pagingcontrol-nav-first":function(a){$(a.currentTarget).hasClass(this.ya.Mc)||$(a.target).addClass(this.ya.Rf);a.preventDefault()},
"mousedown .oj-pagingcontrol-nav-previous":function(a){$(a.currentTarget).hasClass(this.ya.Mc)||$(a.target).addClass(this.ya.Rf);a.preventDefault()},"mousedown .oj-pagingcontrol-nav-next":function(a){$(a.currentTarget).hasClass(this.ya.Mc)||$(a.target).addClass(this.ya.Rf);a.preventDefault()},"mousedown .oj-pagingcontrol-nav-last":function(a){$(a.currentTarget).hasClass(this.ya.Mc)||$(a.target).addClass(this.ya.Rf);a.preventDefault()},"mouseup .oj-pagingcontrol-nav-first":function(a){$(a.target).removeClass(this.ya.Rf);
a.preventDefault()},"mouseup .oj-pagingcontrol-nav-previous":function(a){$(a.target).removeClass(this.ya.Rf);a.preventDefault()},"mouseup .oj-pagingcontrol-nav-next":function(a){$(a.target).removeClass(this.ya.Rf);a.preventDefault()},"mouseup .oj-pagingcontrol-nav-last":function(a){$(a.target).removeClass(this.ya.Rf);a.preventDefault()},"mouseleave .oj-pagingcontrol-nav-first":function(a){$(a.target).removeClass(this.ya.Rf);a.preventDefault()},"mouseleave .oj-pagingcontrol-nav-previous":function(a){$(a.target).removeClass(this.ya.Rf);
a.preventDefault()},"mouseleave .oj-pagingcontrol-nav-next":function(a){$(a.target).removeClass(this.ya.Rf);a.preventDefault()},"mouseleave .oj-pagingcontrol-nav-last":function(a){$(a.target).removeClass(this.ya.Rf);a.preventDefault()}},Pd:function(){this.b!=this.options.data&&(this.$G(),this.OX());var a=0,b=0;null!=this.b&&(b=this.b.getStartItemIndex());null!=this.b&&0!=this.b.totalSize()&&0<=this.b.getEndItemIndex()&&(a=this.b.getEndItemIndex()-b+1);if(this.dW!=this.options.mode)this.dW=this.options.mode,
this.options.mode==this.Wi.hn?this.VW(a,b):this.WW(a,b);else if(this.options.mode==this.Wi.hn){var c=this.Va(),d=this.Bs();null!=c&&(b+a==c.totalSize()&&this.pd()||0==c.totalSize())?d.css("display","none"):this.VW(a,b)}else this.WW(a,b)},_setOption:function(a,b){this._superApply(arguments);this.gi(0,!0);if(this.options.mode!=this.Wi.hn&&"pageOptions"==a){var c=this.bi();null!=c&&(this.BC(c),this.CC(),c.empty());this.M6();this.RR();this.ht()}this.Pd()},$G:function(){null!=this.b&&this.Pk();this.b=
null},L6:function(){this.CG=this.BG=this.AG=null},M6:function(){this.FG=this.EG=this.DG=null},ye:function(){var a=this.Va(),b=0;null!=a&&(b=a.getPage());return b},Va:function(){this.b||null==this.options.data||(this.b=this.options.data,this.wq());return this.b},eI:function(a,b){var c=0<=b?b:0,d=$(document.createElement("span")),e=$(document.createElement("span"));this.options.mode==this.Wi.hn?e.addClass(this.C.RF):e.addClass(this.C.TF);d.append(e);var f=this.Va();if(null!=f&&null!=f.totalSize()&&
null!=a){var h=this.r(this.ma.KF,{pageFrom:c}),h=parseInt(b,10)+parseInt(a,10),c=0<h?c+1:0;if(-1!=f.totalSize()){h=h>f.totalSize()?f.totalSize():h;if(c==h)h=this.r(this.ma.KF,{pageFrom:c});else{if(c>h)return d;h=this.r(this.ma.EP,{pageFrom:c,pageTo:h})}var c=this.r(this.ma.w4),k=null;"atLeast"==f.totalSizeConfidence()?k=this.r(this.ma.v4):"estimate"==f.totalSizeConfidence()&&(k=this.r(this.ma.u4));var l=$(document.createElement("span"));null==k?l.text(" "+c+" "):l.text(" "+k+" ");d.append(l);c=$(document.createElement("span"));
this.options.mode==this.Wi.hn?c.addClass(this.C.SF):c.addClass(this.C.UF);c.text(f.totalSize());d.append(c)}else h=0==a?this.r(this.ma.KF,{pageFrom:0}):this.r(this.ma.EP,{pageFrom:c,pageTo:h});f=this.r(this.ma.FP);c=$(document.createElement("span"));c.text(" "+f);d.append(c);e.text(h)}return d},BT:function(){var a=this.options.pageOptions.maxPageLinks;this.options.pageOptions.type==this.Wr.B3?a=Number.MAX_VALUE:a||(a=this.H4);return a},CT:function(a){var b=0;0<this.nd()&&this.pd()?b=this.nd():0<a?
(a=this.Va(),b=null==a||"atLeast"!=a.totalSizeConfidence()&&"estimate"!=a.totalSizeConfidence()?this.ye()+2:this.nd()+1):b=this.ye()+1;return b},Ds:function(){return Promise.reject()},nd:function(){var a=this.Va(),b=0;null!=a&&(b=a.getPageCount());return-1<=b?b:0},EI:function(){var a=$(document.activeElement);if(a.hasClass(this.C.VF)){var b=a.attr("data-oj-pagenum"),c=this;setTimeout(function(){0<=b&&c.bi().find("div[data-oj-pagenum\x3d"+b+"]").focus();c=b=null},100)}else a.hasClass(this.C.Rr)?(c=
this,setTimeout(function(){c.bi().find("."+c.C.Rr).focus();c=null},100)):a.hasClass(this.C.Ur)?(c=this,setTimeout(function(){c.bi().find("."+c.C.Ur).focus();c=null},100)):a.hasClass(this.C.Tr)?(c=this,setTimeout(function(){c.bi().find("."+c.C.Tr).focus();c=null},100)):a.hasClass(this.C.Sr)?(c=this,setTimeout(function(){c.bi().find("."+c.C.Sr).focus();c=null},100)):a.hasClass(this.C.vp)&&(c=this,setTimeout(function(){c.bi().find("."+c.C.vp).focus();c=null},100));this.ft()},D$:function(a){a.page!=a.previousPage&&
this.ft()},Mn:function(){this.gi(0,!1)},hB:function(){this.ft()},HI:function(a){this.options.mode==this.Wi.hn&&this.Mn(a)},FI:function(a){this.uJ(a)?this.options.mode==this.Wi.OF?this.gi(this.ye(),!0):this.nV():this.ft()},GI:function(a){if(this.options.mode==this.Wi.OF){if(0<this.nd()&&this.ye()>this.nd()-1){this.gi(this.nd()-1,!0);return}if(this.uJ(a)){this.gi(this.ye(),!0);return}}else if(this.uJ(a)){this.nV();return}this.ft()},Daa:function(a,b){if("value"==b.option){var c=b.value;if(c!=this.ye()+
1&&!isNaN(c)&&0<c){var c=Math.round(c),d=this;this.page(c-1).then(function(){d=null},function(a){var b=d.r(d.ma.op);w.l.error(b+"\n"+a);d=null})}}},gi:function(a,b){try{a=parseInt(a,10)}catch(c){return Promise.reject(c)}this.Xf=0;if(b)return this.Bda(a),Promise.resolve();var d=this.Va(),e=this;return new Promise(function(b,c){null!=d?(d.setPage(a,{pageSize:e.options.pageSize}).then(function(){b(null)},function(a){c(a)}),e=d=null):(e=null,b(null))})},Aba:function(){var a=this.Va(),b=this.options.pageSize;
this.Xf=this.Xf?this.Xf+b:b;if(!this.pd()||a.totalSize()>this.Xf&&this.pd()){var c=this;return new Promise(function(d,e){a.fetch({startIndex:c.Xf,pageSize:b}).then(function(a){d(a)},function(){e(null)});c=a=null})}return Promise.resolve()},nV:function(){var a=this.Va(),b=this.options.pageSize;if(!this.pd()||a.totalSize()>this.Xf&&this.pd()){var c=this;return new Promise(function(d,e){a.fetch({startIndex:0,pageSize:c.Xf+b}).then(function(a){d(a)},function(){e(null)});c=a=null})}return Promise.resolve()},
uJ:function(a){if(null==a)return!1;var b=this.Va(),c=b.getStartItemIndex();this.options.mode==this.Wi.hn&&(c=0);var b=b.getEndItemIndex(),d;if(null!=a.index){if(d=a.index,d>=c&&d<=b)return!0}else if(null!=a.indexes){var e;for(e=0;e<a.indexes.length;e++)if(d=a.indexes[e],d>=c&&d<=b)return!0}return!1},pd:function(){var a=this.Va();return null!=a&&"actual"==a.totalSizeConfidence()?!0:!1},Bda:function(a){var b=this;this.ct||(this.pq=0,this.ct=Promise.resolve());this.pq++;this.bda=a;this.ct=this.ct.then(function(){b.pq--;
if(0==b.pq&&!b.Kv){b.ct=void 0;var a=b.Va();null!=a&&a.setPage(b.bda,{pageSize:b.options.pageSize}).then(function(){b=a=null},function(a){b.pq--;0>=b.pq&&(b.ct=void 0,w.l.error(a),b=null)})}},function(a){b.pq--;0>=b.pq&&(b.ct=void 0,w.l.error(a),b=null)})},ft:function(){var a=this;this.Pw||(this.$w=0,this.Pw=Promise.resolve());this.$w++;this.Pw=this.Pw.then(function(){a.$w--;0!=a.$w||a.Kv||(a.Pw=void 0,a.Pd(),a._trigger("ready"),a=null)},function(b){a.$w--;0==a.$w&&(a.Pw=void 0,w.l.error(b),a=null)})},
VW:function(a,b){var c=this.bi();null!=c&&c.empty();this.L6();this.OR();c=-1;null!=a&&(c=b+a);0>c||c<this.options.loadMoreOptions.maxCount?(this.PR(),this.QR(a,b)):this.E7()},WW:function(a,b){var c=this.options.overflow;this.Jda(a,b);this.Ida();this.Hda();this.Lda(a,b);this.Kda(a,b);this.Gda(a,b);if("fit"==c){var c=this.element.width(),d=this.KT(),e=this.lI(),f=this.L9(),h=this.K9(),k=null!=d?d[0].offsetWidth:0,l=null!=e?e[0].offsetWidth:0,e=null!=f?f.width():0,m=null!=h?h.width():0,k=k+l+m;k>c?k-
e<=c?f.css("display","none"):k-e-m<=c?(null!=f&&f.css("display","none"),null!=h&&h.css("display","none")):(null!=f&&f.css("display","none"),null!=h&&h.css("display","none"),null!=d&&d.css("display","none")):0<k&&(null!=f&&f.css("display",""),null!=h&&h.css("display",""),null!=d&&d.css("display",""))}},Gda:function(a){var b=this.options.pageSize,c=this.KT(),d=c.children("."+this.C.Rr);if(d&&0<d.length){var d=$(d[0]),e=this.r(this.ma.hQ);d.attr("title",e);0==this.ye()?(d.addClass(this.ya.Mc),d.removeClass(this.ya.Xj),
d.attr("tabindex","-1")):(d.addClass(this.ya.Xj),d.removeClass(this.ya.Mc),d.attr(this.zg,"0"))}(d=c.children("."+this.C.Ur))&&0<d.length&&(d=$(d[0]),e=this.r(this.ma.lQ),d.attr("title",e),0==this.ye()?(d.addClass(this.ya.Mc),d.removeClass(this.ya.Xj),d.attr(this.zg,"-1")):(d.addClass(this.ya.Xj),d.removeClass(this.ya.Mc),d.attr(this.zg,"0")));(d=c.children("."+this.C.Sr))&&0<d.length&&(d=$(d[0]),e=this.r(this.ma.jQ),d.attr("title",e),this.ye()==this.nd()-1||0>=this.nd()||!this.pd()?(d.addClass(this.ya.Mc),
d.removeClass(this.ya.Xj),d.attr(this.zg,"-1")):(d.addClass(this.ya.Xj),d.removeClass(this.ya.Mc),d.attr(this.zg,"0")));(c=c.children("."+this.C.Tr))&&0<c.length&&(c=$(c[0]),d=this.r(this.ma.kQ),c.attr("title",d),this.ye()==this.nd()-1&&this.pd()||0===this.nd()||0>this.nd()&&0===a||0>this.nd()&&a<b?(c.addClass(this.ya.Mc),c.removeClass(this.ya.Xj),c.attr(this.zg,"-1")):(c.addClass(this.ya.Xj),c.removeClass(this.ya.Mc),c.attr(this.zg,"0")))},Kda:function(a,b){var c=this.uk().find("."+this.C.$P);null!=
c&&0<c.length&&(c=$(c.get(0)),this.BC(c),c.empty(),this.SR(c,this.BT(),a,b))},Ida:function(){var a=this.lI();if(null!=a&&(a=a.children("."+this.C.YP),null!=a&&0<a.length)){var a=$(a[0]),b=this.r(this.ma.AP);a.text(b)}},Hda:function(){var a=this.J9();if(null!=a){var b=this.r(this.ma.iQ);a.attr("title",b);a.ojInputText("option","title",b)}},Lda:function(a,b){var c=this.uk().children("."+this.C.jv);if(null!=c&&0<c.length){var d=this.eI(a,b),c=$(c.get(0));c.empty();0<d.text().length&&(c.append("("),c.append(d),
c.append(")"))}},Jda:function(a){a=this.CT(a);var b=this.uk().find("."+this.C.iv);if(null!=b&&0<b.length)if(b=$(b.get(0)),0<this.nd()&&this.pd()){var c=this.r(this.ma.GF,{pageMax:a});b.text(c)}else b.empty();else c=this.lI(),null!=c&&0<this.nd()&&this.pd()&&a>=this.ye()+1&&(b=$(document.createElement("span")),b.addClass(this.C.iv),c.append(b),c=this.r(this.ma.GF,{pageMax:a}),b.text(c));b=this.uk().find("."+this.C.vp);null!=b&&0<b.length&&(b=$(b.get(0)),b.ojInputText("option","validators",[{type:"numberRange",
options:{min:1,max:a}}]),b.ojInputText("option","value",this.ye()+1))},wq:function(){var a=this.Va();if(null!=a){this.Pk();this.Oa=[];this.Oa.push({eventType:Vf.PAGE,eventHandler:this.D$.bind(this)});this.Oa.push({eventType:Vf.PAGECOUNT,eventHandler:this.hB.bind(this)});this.Oa.push({eventType:Wf.ADD,eventHandler:this.FI.bind(this)});this.Oa.push({eventType:Wf.REMOVE,eventHandler:this.GI.bind(this)});this.Oa.push({eventType:Wf.RESET,eventHandler:this.Mn.bind(this)});this.Oa.push({eventType:Wf.REFRESH,
eventHandler:this.hB.bind(this)});this.Oa.push({eventType:Wf.SYNC,eventHandler:this.EI.bind(this)});this.Oa.push({eventType:Wf.SORT,eventHandler:this.HI.bind(this)});var b,c;for(b=0;b<this.Oa.length;b++)(c=a.on(this.Oa[b].eventType,this.Oa[b].eventHandler))&&(this.Oa[b].eventHandler=c)}},wj:function(a){if(!this.yB){var b=this;w.q.Ch(a[0],function(){b.ft()},50);this.yB=!0}},ht:function(){if(w.q.ud()&&this.options.mode==this.Wi.OF){var a=this.uk();if(null!=a){var b=this;if("vertical"==this.options.pageOptions.orientation){var c=
{recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_VERTICAL}]]};this.CI=a.ng(c).on("swipeup",function(a){a.preventDefault();b.nextPage()});this.zI=a.ng(c).on("swipedown",function(a){a.preventDefault();b.previousPage()})}else c={recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_HORIZONTAL}]]},this.AI=a.ng(c).on("swipeleft",function(a){a.preventDefault();b.nextPage()}),this.BI=a.ng(c).on("swiperight",function(a){a.preventDefault();b.previousPage()})}}},OX:function(){var a=this.ye();0<a?this.gi(a,
!0):this.gi(0,!0)},Pk:function(){var a=this.Va();if(null!=this.Oa&&null!=a){var b;for(b=0;b<this.Oa.length;b++)a.off(this.Oa[b].eventType,this.Oa[b].eventHandler)}},BC:function(a){var b=this;a.find("*").each(function(){b.xp(this)});b=null},CC:function(){w.q.ud()&&("vertical"==this.options.pageOptions.orientation?(null!=this.CI&&(this.CI.off("swipeup"),this.CI=null),null!=this.zI&&(this.zI.off("swipedown"),this.zI=null)):(null!=this.AI&&(this.AI.off("swipeleft"),this.AI=null),null!=this.BI&&(this.BI.off("swiperight"),
this.BI=null)))},js:function(a,b){var c=$(document.createElement("span"));c.addClass(b);c.addClass(this.C.R3);c.text(a);return c},x7:function(){var a=this.Nd(),b=this.r(this.ma.g4),b=this.js(b,this.C.RP),c=this.element.attr("id")+"_oj_pgCtrl_acc_label";b.attr("id",c);a.append(b);return b},B7:function(){var a=this.r(this.ma.e4);return this.js(a,this.C.U4)},y7:function(){var a=this.r(this.ma.b4);return this.js(a,this.C.L4)},z7:function(){var a=this.r(this.ma.c4);return this.js(a,this.C.O4)},A7:function(){var a=
this.r(this.ma.d4);return this.js(a,this.C.R4)},C7:function(){var a=this.r(this.ma.f4);return this.js(a,this.C.W4)},D7:function(){var a=this.Nd(),b=$(document.createElement("div"));b.addClass(this.C.SP);var c=this.I9().attr("id");b.attr("role","navigation");b.attr("aria-labelledby",c);a.append(b);return b},OR:function(){var a=this.bi(),b=$(document.createElement("div"));b.addClass(this.C.TP);a.append(b);return b},PR:function(){var a=this.Bs(),b=$(document.createElement("a"));b.addClass(this.C.Ez);
var c=this.r(this.ma.h4);b.text(c);b.attr(this.zg,"0");b.attr("href","#");a.append(b);return b},E7:function(){var a=this.Bs(),b=$(document.createElement("span"));b.addClass(this.C.QF);var c=this.r(this.ma.i4,{maxRows:this.options.loadMoreOptions.maxCount});b.text(c);a.append(b);return b},QR:function(a,b){var c=this.Bs(),d=$(document.createElement("span"));d.addClass(this.C.Fz);var e=this.eI(a,b);d.append(e);c.append(d);return d},RR:function(a,b){var c="vertical"==this.options.pageOptions.orientation?
!0:!1,d="dots"==this.options.pageOptions.type?!0:!1,e=this.options.pageOptions.layout;null==e&&(e=[this.ef.mp]);var f=this.bi(),h=$(document.createElement("div"));h.addClass(this.C.WP);f.append(h);if(-1!=$.inArray(this.ef.mp,e)&&!d||-1!=$.inArray(this.ef.av,e)||-1!=$.inArray(this.ef.Z3,e)){f=$(document.createElement("div"));f.addClass(this.C.XP);h.append(f);var k=$(document.createElement("label"));k.attr("for",this.element.attr("id")+"_nav_input");k.addClass(this.C.YP);k.addClass("oj-label-inline");
var l=this.r(this.ma.AP);k.text(l);f.append(k);k=$(document.createElement("input"));k.addClass(this.C.vp);l=this.r(this.ma.iQ);this._focusable(this.element);k.attr("id",this.element.attr("id")+"_nav_input");k.attr("title",l);k.attr(this.zg,"0");k.val(this.ye()+1);f.append(k);l=this.CT(a);if(0<this.nd()&&this.pd()){var m=$(document.createElement("span"));m.addClass(this.C.iv);var n=this.r(this.ma.GF,{pageMax:l});m.text(n);f.append(m)}k.ojInputText({displayOptions:{messages:["notewindow"],converterHint:["notewindow"],
validatorHint:["notewindow"]},rootAttributes:{style:"width: auto; min-width: 0;"},optionChange:this.Daa.bind(this),validators:[{type:"numberRange",options:{min:1,max:l}}]}).attr("data-oj-internal",!0)}if(-1!=$.inArray(this.ef.mp,e)&&!d||-1!=$.inArray(this.ef.av,e)||-1!=$.inArray(this.ef.a5,e))f=$(document.createElement("span")),f.addClass(this.C.jv),k=this.eI(a,b),0<k.text().length&&(f.append("("),f.append(k),f.append(")")),h.append(f);f=$(document.createElement("div"));f.addClass(this.C.VP);h.append(f);
if(-1!=$.inArray(this.ef.mp,e)&&!d||-1!=$.inArray(this.ef.av,e)||-1!=$.inArray(this.ef.GP,e))k=$(document.createElement("a")),k.addClass(this.C.Gz),k.addClass(this.C.Rr),c?k.addClass(this.C.N4):k.addClass(this.C.M4),k.addClass(this.C.Lz),k.addClass(this.ya.nz),k.addClass(this.ya.Mc),l=this.r(this.ma.hQ),this.ld(k),this._focusable(k),k.attr("title",l),k.attr(this.zg,"0"),k.attr("href","#"),k.attr("oncontextmenu","return false;"),l=this.y7(),k.append(l),c&&k.css("display","block"),f.append(k),k=$(document.createElement("a")),
k.addClass(this.C.Gz),k.addClass(this.C.Ur),c?k.addClass(this.C.Y4):k.addClass(this.C.X4),k.addClass(this.C.Lz),k.addClass(this.ya.nz),k.addClass(this.ya.Mc),l=this.r(this.ma.lQ),this.ld(k),this._focusable(k),k.attr("title",l),k.attr(this.zg,"0"),k.attr("href","#"),k.attr("oncontextmenu","return false;"),l=this.C7(),k.append(l),c&&k.css("display","block"),f.append(k);if(-1!=$.inArray(this.ef.mp,e)||-1!=$.inArray(this.ef.av,e)||-1!=$.inArray(this.ef.G4,e))k=$(document.createElement("div")),k.addClass(this.C.$P),
f.append(k),this.SR(k,this.BT(),a,b);if(-1!=$.inArray(this.ef.mp,e)&&!d||-1!=$.inArray(this.ef.av,e)||-1!=$.inArray(this.ef.GP,e))d=$(document.createElement("a")),d.addClass(this.C.Gz),d.addClass(this.C.Tr),c?d.addClass(this.C.T4):d.addClass(this.C.S4),d.addClass(this.C.Lz),d.addClass(this.ya.nz),d.addClass(this.ya.Mc),e=this.r(this.ma.kQ),this.ld(d),this._focusable(d),d.attr("title",e),d.attr(this.zg,"0"),d.attr("href","#"),d.attr("oncontextmenu","return false;"),e=this.A7(),d.append(e),c&&d.css("display",
"block"),f.append(d),d=$(document.createElement("a")),d.addClass(this.C.Gz),d.addClass(this.C.Sr),c?d.addClass(this.C.Q4):d.addClass(this.C.P4),d.addClass(this.C.Lz),d.addClass(this.ya.nz),d.addClass(this.ya.Mc),e=this.r(this.ma.jQ),this.ld(d),this._focusable(d),d.attr("title",e),d.attr(this.zg,"0"),d.attr("href","#"),d.attr("oncontextmenu","return false;"),e=this.z7(),d.append(e),c&&d.css("display","block"),f.append(d);return h},SR:function(a,b,c){if(5>b){c=this.r(this.ma.J3);var d=this.r(this.ma.I3);
throw Error(c+"\n"+d);}d=$(document.createElement("div"));d.addClass(this.C.ZP);a.append(d);var e=this.nd(),f=this.ye();a=this.options.pageSize;var h=b;b=[];if(0<=f){if(this.pd()&&e<=h)for(b[0]=0,f=1;f<e;f++)b[f]=f;else{b.push(0);0!=f&&b.push(f);f!=e-1&&this.pd()&&b.push(e-1);var h=h-b.length,k=f-1,l=1;for(!this.pd()||f!=e-1&&f!=e-2||(l=0);h>l&&1<=k;)b.push(k),k--,h--;f+=1;for(-1==e&&(h=0<c&&c>=a?1:0);0<h&&(f<=e||-1==e);)b.push(f),f++,h--}b.sort(function(a,b){return a-b});for(f=0;f<b.length;f++)e=
b[f],this.lH(d,e),f!=b.length-1&&e!=b[f+1]-1&&this.lH(d,-1);!this.pd()&&c>=a&&this.lH(d,-1)}return d},lH:function(a,b){var c=this.ye(),d=null,e="rtl"===this.$b(),f="vertical"==this.options.pageOptions.orientation?!0:!1,h="dots"==this.options.pageOptions.type?!0:!1;if(-1==b)d=$(document.createElement("span")),d.addClass(this.C.V4),d.text("...");else{c==b?(d=$(document.createElement("div")),d.addClass(this.ya.aG),d.addClass(this.ya.Rf),d.addClass(this.ya.Mc),d.removeClass(this.ya.Xj)):(d=$(document.createElement("a")),
d.removeClass(this.ya.aG),d.removeClass(this.ya.Rf),d.removeClass(this.ya.Mc),d.addClass(this.ya.Xj),d.attr("href","#"));d.attr("data-oj-pagenum",b);h?d.addClass(this.C.K4):d.addClass(this.C.VF);var k=this.r(this.ma.s5,{pageNum:(b+1).toString()});this.ld(d);this._focusable(d);d.attr("title",k);d.attr(this.zg,"0");d.attr("oncontextmenu","return false;");k=this.B7();d.append(k);k=$(document.createElement("span"));k.append((b+1).toString());h&&(k.addClass(this.C.J4),this.ld(k),c==b&&(k.addClass(this.ya.aG),
k.addClass(this.ya.Rf)));k.attr("dir",e?"rtl":"ltr");d.append(k);this.ld(d);f&&d.css("display","block")}a.append(d);return d},I9:function(){var a=this.Nd(),b=null;a&&(b=a.find("."+this.C.RP))&&0<b.length&&(b=$(b.get(0)));return b},Nd:function(){return $(this.element)},bi:function(){if(!this.XQ){var a=this.Nd(),b=null;a&&(b=a.find("."+this.C.SP))&&0<b.length&&(this.XQ=$(b.get(0)))}return this.XQ},Bs:function(){if(!this.AG){var a=this.bi(),b=null;a&&(b=a.children("."+this.C.TP))&&0<b.length&&(this.AG=
$(b.get(0)))}return this.AG},Uka:function(){if(!this.BG){var a=this.Bs(),b=null;a&&(b=a.children("."+this.C.Ez))&&0<b.length&&(this.BG=$(b.get(0)))}return this.BG},Vka:function(){if(!this.CG){var a=this.Bs(),b=null;a&&(b=a.children("."+this.C.Fz))&&0<b.length&&(this.CG=$(b.get(0)))}return this.CG},uk:function(){if(!this.DG){var a=this.bi(),b=null;a&&(b=a.children("."+this.C.WP))&&0<b.length&&(this.DG=$(b.get(0)))}return this.DG},J9:function(){if(!this.EG){var a=this.uk(),b=null;a&&(b=a.find("."+this.C.vp))&&
0<b.length&&(this.EG=$(b.get(0)))}return this.EG},K9:function(){if(!this.FG){var a=this.uk(),b=null;a&&(b=a.find("."+this.C.jv))&&0<b.length&&(this.FG=$(b.get(0)))}return this.FG},L9:function(){var a=this.uk(),b=null;a&&(b=a.find("."+this.C.ZP))&&0<b.length&&(b=$(b.get(0)));return b},KT:function(){var a=this.uk(),b=null;if(a)if((b=a.find("."+this.C.VP))&&0<b.length)b=$(b.get(0));else return null;return b},lI:function(){var a=this.uk(),b=null;if(a)if((b=a.find("."+this.C.XP))&&0<b.length)b=$(b.get(0));
else return null;return b}});w.Components.xa("ojPagingControl","baseComponent",{properties:{data:{},loadMoreOptions:{type:"Object\x3cstring, number\x3e"},mode:{type:"string"},overflow:{type:"string"},pageOptions:{type:"Object\x3cstring, Array|number\x3e"},pageSize:{type:"number"}},methods:{firstPage:{},getNodeBySubId:{},getSubIdByNode:{},lastPage:{},loadNext:{},nextPage:{},page:{},previousPage:{},refresh:{}},extension:{_widgetName:"ojPagingControl"}});w.Components.register("oj-paging-control",w.Components.getMetadata("ojPagingControl"));
function Xf(a,b){this.vja=a;this.Rja=b;this.ia={};this.ia.datagrid="oj-datagrid";this.ia.cell="oj-datagrid-cell";this.ia.cellcontent="oj-datagrid-cell-content";this.ia.celltext="oj-datagrid-cell-text";this.ia.banded="oj-datagrid-banded";this.ia.row="oj-datagrid-row";this.ia.databody="oj-datagrid-databody";this.ia.topcorner="oj-datagrid-top-corner";this.ia.bottomcorner="oj-datagrid-bottom-corner";this.ia.rowheaderspacer="oj-datagrid-row-header-spacer";this.ia.colheaderspacer="oj-datagrid-column-header-spacer";
this.ia.status="oj-datagrid-status";this.ia.emptytext="oj-datagrid-empty-text";this.ia.header="oj-datagrid-header";this.ia.endheader="oj-datagrid-end-header";this.ia.groupingcontainer="oj-datagrid-header-grouping";this.ia.headercell="oj-datagrid-header-cell";this.ia.headercelltext="oj-datagrid-header-cell-text";this.ia.headercellcontent="oj-datagrid-header-cell-content";this.ia.rowheader="oj-datagrid-row-header";this.ia.colheader="oj-datagrid-column-header";this.ia.colheadercell="oj-datagrid-column-header-cell";
this.ia.rowheadercell="oj-datagrid-row-header-cell";this.ia.endheadercell="oj-datagrid-end-header-cell";this.ia.endheadercelltext="oj-datagrid-end-header-cell-text";this.ia.endheadercellcontent="oj-datagrid-end-header-cell-content";this.ia.rowendheader="oj-datagrid-row-end-header";this.ia.colendheader="oj-datagrid-column-end-header";this.ia.colendheadercell="oj-datagrid-column-end-header-cell";this.ia.rowendheadercell="oj-datagrid-row-end-header-cell";this.ia["scroller-mobile"]="oj-datagrid-scroller-touch";
this.ia.scroller="oj-datagrid-scroller";this.ia.scrollers="oj-datagrid-scrollers";this.ia.focus="oj-focus";this.ia.hover="oj-hover";this.ia.active="oj-active";this.ia.selected="oj-selected";this.ia.disabled="oj-disabled";this.ia.enabled="oj-enabled";this.ia["default"]="oj-default";this.ia.sortcontainer="oj-datagrid-sort-icon-container";this.ia.sortascending="oj-datagrid-sort-ascending-icon";this.ia.sortdescending="oj-datagrid-sort-descending-icon";this.ia.icon="oj-component-icon";this.ia.clickableicon=
"oj-clickable-icon-nocontext";this.ia.info="oj-helper-hidden-accessible";this.ia.rowexpander="oj-rowexpander";this.ia.cut="oj-datagrid-cut";this.ia.selectaffordancetop="oj-datagrid-touch-selection-affordance-top";this.ia.selectaffordancebottom="oj-datagrid-touch-selection-affordance-bottom";this.ia.toucharea="oj-datagrid-touch-area";this.ia.readOnly="oj-read-only";this.ia.editable="oj-datagrid-editable";this.ia.cellEdit="oj-datagrid-cell-edit";this.ia.draggable="oj-draggable";this.ia.drag="oj-drag";
this.ia.drop="oj-drop";this.ia.activedrop="oj-active-drop";this.ia.validdrop="oj-valid-drop";this.ia.invaliddrop="oj-invalid-drop";this.ia.formcontrol="oj-form-control-inherit";this.ia.borderHorizontalNone="oj-datagrid-border-horizontal-none";this.ia.borderVerticalNone="oj-datagrid-border-vertical-none";this.ia.borderHorizontalSmall="oj-datagrid-small-content-border-horizontal";this.ia.borderVerticalSmall="oj-datagrid-small-content-border-vertical";this.ia.offsetOutline="oj-datagrid-focus-offset";
this.Rg={};this.Rg.sortCol="oj-datagrid-sortCol";this.Rg.sortColAsc="oj-datagrid-sortColAsc";this.Rg.sortColDsc="oj-datagrid-sortColDsc";this.Rg.sortRow="oj-datagrid-sortRow";this.Rg.sortRowAsc="oj-datagrid-sortRowAsc";this.Rg.sortRowDsc="oj-datagrid-sortRowDsc";this.Rg.resize="oj-datagrid-resize";this.Rg.resizeWidth="oj-datagrid-resizeWidth";this.Rg.resizeHeight="oj-datagrid-resizeHeight";this.Rg.cut="oj-datagrid-cut";this.Rg.paste="oj-datagrid-paste";this.Rg.discontiguousSelection="oj-datagrid-discontiguousSelection";
this.attributes={};this.attributes.key="data-oj-key";this.attributes.context="data-oj-context";this.attributes.resizable="data-oj-resizable";this.attributes.sortable="data-oj-sortable";this.attributes.sortDir="data-oj-sortdir";this.attributes.expander="data-oj-expander";this.attributes.expanderIndex="data-oj-expander-index";this.attributes.container=w.Components.Zj;this.attributes.extent="data-oj-extent";this.attributes.start="data-oj-start";this.attributes.depth="data-oj-depth";this.attributes.level=
"data-oj-level";this.attributes.tabMod="data-oj-tabmod"}t("DataGridResources",Xf,w);Xf.prototype.fb=function(){return"rtl"===this.vja?!0:!1};A("DataGridResources.prototype.isRTLMode",{fb:Xf.prototype.fb});Xf.prototype.Xe=function(a,b){return this.Rja(a,b)};A("DataGridResources.prototype.getTranslatedText",{Xe:Xf.prototype.Xe});Xf.prototype.g=function(a){return null!=a?this.ia[a]:null};A("DataGridResources.prototype.getMappedStyle",{g:Xf.prototype.g});
Xf.prototype.He=function(a){return null!=a?this.Rg[a]:null};A("DataGridResources.prototype.getMappedCommand",{He:Xf.prototype.He});Xf.prototype.zb=function(a){return null!=a?this.attributes[a]:null};A("DataGridResources.prototype.getMappedAttribute",{zb:Xf.prototype.zb});
function S(){this.ip=20;this.jp=30;this.va=new Yf(this);this.oy=!1;this.Dy=new Zf;this.Jia=new $f(this);this.jl=this.yo=this.sl=this.Ho=null;this.Ey={};this.ty=this.uy=void 0;this.If=this.Ei=this.Fi=this.Lj=this.lg=this.mg=this.Zg=!1;this.ir=!0;this.callbacks={};this.Aga={ACTIONABLE:this.DI,EXIT_ACTIONABLE:this.K$,TAB_NEXT_IN_CELL:this.l$,TAB_PREV_IN_CELL:this.k$,EDITABLE:this.QI,EXIT_EDITABLE:this.M$,DATA_ENTRY:this.A$,EXIT_DATA_ENTRY:this.L$,EDIT:this.iB,EXIT_EDIT:this.RI,CANCEL_EDIT:this.o$,NO_OP:this.Aaa,
EAT:this.I$,FOCUS_LEFT:this.Z$,FOCUS_RIGHT:this.$$,FOCUS_UP:this.eaa,FOCUS_DOWN:this.Y$,FOCUS_ROW_FIRST:this.baa,FOCUS_ROW_LAST:this.daa,FOCUS_COLUMN_FIRST:this.V$,FOCUS_COLUMN_LAST:this.X$,FOCUS_COLUMN_HEADER:this.W$,FOCUS_COLUMN_END_HEADER:this.U$,FOCUS_ROW_HEADER:this.caa,FOCUS_ROW_END_HEADER:this.aaa,READ_CELL:this.ija,SORT:this.Naa,SELECT_DISCONTIGUOUS:this.Jaa,SELECT_EXTEND_LEFT:this.Q$,SELECT_EXTEND_RIGHT:this.R$,SELECT_EXTEND_UP:this.S$,SELECT_EXTEND_DOWN:this.P$,SELECT_ROW:this.Kaa,SELECT_COLUMN:this.Iaa,
CUT:this.pw,CANCEL_REORDER:this.p$,PASTE:this.qw};this.Go=[];this.Lm=[]}var T={lz:9,VE:13,h3:16,K2:17,I2:18,WE:27,kF:32,iz:33,hz:34,az:35,bz:36,te:37,Sh:38,Oe:39,Rh:40,gF:53,p3:86,q3:88,XE:113,Q2:119,P2:121};t("DvtDataGrid.VISIBILITY_STATE_HIDDEN","hidden",void 0);t("DvtDataGrid.VISIBILITY_STATE_REFRESH","refresh",void 0);t("DvtDataGrid.VISIBILITY_STATE_RENDER","render",void 0);t("DvtDataGrid.VISIBILITY_STATE_VISIBLE","visible",void 0);S.prototype.nF=function(a){this.Y=new ag(a)};
t("DvtDataGrid.prototype.SetOptions",S.prototype.nF,void 0);
S.prototype.IO=function(a,b){for(var c in a)c in this.Y.options&&this.Y.options[c]!=a[c]&&(this.Y.options[c]=a[c]);for(c in a){var d;a:{d=b;var e=void 0;switch(c){case "bandingInterval":var f=e=d=void 0,h=void 0,k=void 0;d=this.R.firstChild.childNodes;k=this.g("banded");for(f=0;f<d.length;f++)for(V(d[f],k)&&W(d[f],k),e=d[f].childNodes,h=0;h<e.length;h+=1)V(e[h],k)&&W(e[h],k);var l=k=h=f=e=d=void 0,m=void 0;d=bg(this.Y);if(0<d)for(e=this.R.firstChild.childNodes,k=this.g("banded"),f=0;f<e.length;f+=
1)for(m=e[f].childNodes,l=0;l<m.length;l+=1)h=this.Ta+l,1===Math.floor(h/d)%2?V(m[l],k)||cg(m[l],k):V(m[l],k)&&W(e[l],k);dg(this);break;case "currentCell":e=eg(this.Y,"currentCell");fg(this,e,!0);break;case "editMode":this.ku=eg(this.Y,"editMode");break;case "gridlines":var n=m=l=k=h=f=e=d=void 0,k=gg(this.Y),l=hg(this.Y),m=this.R.firstChild.childNodes,h=m.length,n=this.N.fb()?"right":"left";for(d=0;d<h;d+=1)for(f=m[d].childNodes,e=0;e<f.length;e+=1)"hidden"===l||this.dq(e+this.Ta)&&ig(this)+X(f[e],
n)+jg(this,f[e])>=this.getWidth()?cg(f[e],this.g("borderVerticalNone")):W(f[e],this.g("borderVerticalNone")),"hidden"===k||this.fq(d+this.ha)&&kg(this,m[d],null)>=this.getHeight()?cg(f[e],this.g("borderHorizontalNone")):W(f[e],this.g("borderHorizontalNone"));break;case "header":m=n=l=m=k=e=h=f=h=f=void 0;if(null!=d&&null!=d.subkey&&(f=d.subkey,h=f.split("."),f=h[0],h=h[1],"column"==f&&null!=this.Na&&null!=this.Na.firstChild?e=this.Na.firstChild.childNodes:"row"==f&&null!=this.$&&null!=this.$.firstChild?
e=this.$.firstChild.childNodes:"columnEnd"==f&&null!=this.Wa&&null!=this.Wa.firstChild?e=this.Wa.firstChild.childNodes:"rowEnd"==f&&null!=this.oa&&null!=this.oa.firstChild&&(e=this.oa.firstChild.childNodes),null!=e))for(l=0;l<e.length;l++)k=e[l],m=k[this.N.zb("context")],m.index=lg(this,k),"resizable"==h?mg(this,f,m)?ng(this,k,h,"true"):ng(this,k,h,"false"):"sortable"==h&&(n=V(k.lastChild,this.g("sortcontainer")),this.zw(f,m)?(n||(m=og(this,m),k.appendChild(m)),ng(this,k,h,"true")):(n&&this.rc(k.lastChild),
ng(this,k,h,"false")));break;case "scrollPosition":pg(this);break;case "selection":e=this.Y.getSelection();this.Rk(e);break;default:d=!1;break a}d=!0}if(!d){this.empty();this.refresh(this.J);break}}};t("DvtDataGrid.prototype.UpdateOptions",S.prototype.IO,void 0);S.prototype.Rk=function(a){null!=a&&(this.tb()?this.pF(a):a.length=0)};
function qg(a,b){var c;null!=a.t&&"header"!=a.t.type&&(c=rg(a),null!=c&&(a.fq(a.t.indexes.row)&&("none"==b?cg(c,a.g("borderHorizontalNone")):W(c,a.g("borderHorizontalNone"))),a.dq(a.t.indexes.column)&&("none"==b?cg(c,a.g("borderVerticalNone")):W(c,a.g("borderVerticalNone")))))}S.prototype.oF=function(a){this.N=a};t("DvtDataGrid.prototype.SetResources",S.prototype.oF,void 0);S.prototype.Mha=function(){return this.N};t("DvtDataGrid.prototype.getResources",S.prototype.Mha,void 0);S.prototype.dl=function(){return this.ha};
t("DvtDataGrid.prototype.getStartRow",S.prototype.dl,void 0);S.prototype.Sha=function(){return this.bb};t("DvtDataGrid.prototype.getStartRowHeader",S.prototype.Sha,void 0);S.prototype.cl=function(){return this.Ta};t("DvtDataGrid.prototype.getStartColumn",S.prototype.cl,void 0);S.prototype.Qha=function(){return this.fc};t("DvtDataGrid.prototype.getStartColumnHeader",S.prototype.Qha,void 0);S.prototype.Rha=function(){return this.wb};t("DvtDataGrid.prototype.getStartRowEndHeader",S.prototype.Rha,void 0);
S.prototype.Pha=function(){return this.jc};t("DvtDataGrid.prototype.getStartColumnEndHeader",S.prototype.Pha,void 0);S.prototype.g=function(a){return this.N.g(a)};S.prototype.mF=function(a){this.ex();this.Lm=[];null!=a&&(this.K0=this.X_.bind(this),this.H0=this.U_.bind(this),this.G0=this.Q_.bind(this),a.on("change",this.K0,this),a.on("expand",this.H0,this),a.on("collapse",this.G0,this));this.ua=a};t("DvtDataGrid.prototype.SetDataSource",S.prototype.mF,void 0);S.prototype.k_=function(){return this.ua};
t("DvtDataGrid.prototype.getDataSource",S.prototype.k_,void 0);S.prototype.Sj=function(a){this.e1=a};t("DvtDataGrid.prototype.setVisibility",S.prototype.Sj,void 0);S.prototype.Vt=function(){null==this.e1&&(null!=this.J.offsetParent?this.Sj("visible"):this.Sj("hidden"));return this.e1};t("DvtDataGrid.prototype.getVisibility",S.prototype.Vt,void 0);S.prototype.CO=function(a){this.a1=a};t("DvtDataGrid.prototype.SetOptionCallback",S.prototype.CO,void 0);S.prototype.DO=function(a){this.$0=a};
t("DvtDataGrid.prototype.SetRemoveCallback",S.prototype.DO,void 0);S.prototype.rc=function(a){null!=this.$0?this.$0.call(null,a):a.parentNode.removeChild(a)};t("DvtDataGrid.prototype._remove",S.prototype.rc,void 0);S.prototype.AO=function(a){this.Hia=a};t("DvtDataGrid.prototype.SetCreateReadyPromiseCallback",S.prototype.AO,void 0);S.prototype.EO=function(a){this.Lia=a};t("DvtDataGrid.prototype.SetResolveReadyPromiseCallback",S.prototype.EO,void 0);
function sg(a){a.Go&&(0==a.Go.length&&a.Hia(),a.Go.push(1))}function tg(a){a.Go&&0<a.Go.length&&(a.Go.pop(),0==a.Go.length&&a.Lia())}function ug(a,b,c){var d;d=a.ua.indexes(b);"function"===typeof d.then?(sg(a),d.then(function(d){c.call(a,d,b);tg(a)},function(){c.call(a,{row:-1,column:-1},b);tg(a)})):c.call(a,d,b)}function vg(a,b,c){var d;d=a.ua.keys(b);"function"===typeof d.then?(sg(a),d.then(function(d){c.call(a,d,b);tg(a)},function(){c.call(a,{row:null,column:null},b);tg(a)})):c.call(a,d,b)}
S.prototype.zO=function(a){this.PD=a};t("DvtDataGrid.prototype.SetCreateContextCallback",S.prototype.zO,void 0);S.prototype.BO=function(a,b){this.E0=a;this.F0=b};t("DvtDataGrid.prototype.SetFocusableCallback",S.prototype.BO,void 0);function wg(a){return"scroll"!=xg(a.Y)}S.prototype.destroy=function(){delete this.ec;this.ex();yg(this);delete this.Ey;this.Ey={}};t("DvtDataGrid.prototype.destroy",S.prototype.destroy,void 0);g=S.prototype;
g.ex=function(){null!=this.ua&&(this.ua.off("change",this.K0),this.ua.off("expand",this.H0),this.ua.off("collapse",this.G0))};function yg(a){document.removeEventListener("mousemove",a.SD,!1);document.removeEventListener("mouseup",a.TD,!1);null!=a.J&&(a.qy&&a.J.removeEventListener("keydown",a.qy,!1),a.sy&&a.J.removeEventListener("focus",a.sy,!1),a.ry&&a.J.removeEventListener("blur",a.ry,!1))}g.Sg=function(){return this.J};g.getWidth=function(){null==this.Gy&&(this.Gy=this.Sg().clientWidth);return this.Gy};
g.getHeight=function(){null==this.Eo&&(this.Eo=this.Sg().clientHeight);return this.Eo};function zg(a){a=a.getWidth();return Math.round(1.5*a)}function Ag(a){a=a.getHeight();return Math.round(1.5*a)}function Bg(a){var b=a.Sa,c=Cg(a.R),d=Dg(a.va);return a.Jj?b+c-d:b+c}function Eg(a){var b=a.ob,c=Fg(a.R),d=Dg(a.va);return a.Kj?b+c-d:b+c}
g.ri=function(a){return"row"==a?(null==this.iE&&(this.iE=Math.max(1,Math.round(Ag(this)/Gg(this)))),this.iE):"column"==a?(null==this.ND&&(this.ND=Math.max(1,Math.round(zg(this)/Hg(this)))),this.ND):0};g.iM=function(){var a;a=this.Y.iM();null==a&&(a=this.N,a=a.Xe("msgNoData"));return a};
g.Dv=function(){var a,b,c;a=this.iM();b=document.createElement("div");b.id=Ig(this,"empty");b.className=this.g("emptytext");Y(b,0<=this.Ac?Jg(this):0,"top");c=this.N.fb()?"right":"left";Y(b,0<=this.Qa?ig(this):0,c);b.textContent=a;return this.yi=b};
function Kg(a){var b,c;b=document.createElement("div");b.style.visibilty="hidden";c=a.N;b.className=c.g("row")+" "+c.g("colheadercell")+" "+c.g("headercell");document.body.appendChild(b);a.TM=Math.round(b.getBoundingClientRect().width);a.UM=Math.round(b.getBoundingClientRect().height);document.body.removeChild(b)}function Gg(a){null==a.UM&&Kg(a);return a.UM}function Hg(a){null==a.TM&&Kg(a);return a.TM}
function Lg(a,b,c,d,e){var f,h;f=a.Dy;f=f.Fu[d].hasOwnProperty(c)?f.Fu[d][c]:null;if(null!=f)return f;if(""!=b.style[e])return f=X(b,e),a.Dy.Fu[d][c]=f;h=b.className;f=a.Ey[h];null==f&&(f=X(b,e));b=f;e="row"==d?Gg(a):"column"==d?Hg(a):void 0;b!=e&&(a.Dy.Fu[d][c]=f);return a.Ey[h]=f}function Ig(a,b){var c=a.Sg().id;null==c&&(c="");return[c,b].join(":")}function Mg(a){return!1===a.ec.row&&!1===a.ec.column&&!1===a.ec.cells}g.fq=function(a){return Ng(this,"row")?a===this.Ja&&this.Zg:a+1===this.ua.getCount("row")};
g.dq=function(a){return Ng(this,"column")?a===this.dc&&this.Lj:a+1===this.ua.getCount("column")};
g.empty=function(){this.yi&&this.J.removeChild(this.yi);this.Im&&this.J.removeChild(this.Im);this.Ye&&this.J.removeChild(this.Ye);this.Lh&&this.J.removeChild(this.Lh);this.Mh&&this.J.removeChild(this.Mh);this.J.removeChild(this.gE);this.J.removeChild(this.Di);this.J.removeChild(this.LM);this.J.removeChild(this.bu);this.J.removeChild(this.jE);this.J.removeChild(this.RM);this.rc(this.Na);this.rc(this.$);this.rc(this.Wa);this.rc(this.oa);this.rc(this.R)};
S.prototype.refresh=function(a){yg(this);Og(this);this.render(a)};t("DvtDataGrid.prototype.refresh",S.prototype.refresh,void 0);
function Og(a){a.If=!1;a.Go=[];sg(a);tg(a);a.kl=null;a.Im=null;a.Ye=null;a.Lh=null;a.Mh=null;a.Na=null;a.Wa=null;a.$=null;a.oa=null;a.R=null;a.yi=null;a.bu=null;a.LM=null;a.RM=null;a.gE=null;a.jE=null;a.Di=null;a.uy=void 0;a.ty=void 0;a.Zg=!1;a.mg=!1;a.lg=!1;a.Lj=!1;a.Fi=!1;a.Ei=!1;a.iE=null;a.ND=null;a.ec=null;a.hN=!1;a.ou=!1;a.du=!1;a.Dy.clear();a.Ey={};a.Eo=null;a.Gy=null;a.er=null;a.hr=null;a.gb=void 0;a.ke=void 0;a.TM=null;a.UM=null;a.yo=null;a.jl=null;a.Ho=null;a.sl=null;a.Cy=[];a.hE=[];a.zo=
[];a.LD=[];a.t=null;a.Td=null;a.ly=!1;a.Sc=!1;a.hb=null;a.Jf=null;a.ig=null;a.WM=null;a.oy=!1;a.SD=null;a.TD=null;a.qy=null;a.sy=null;a.ry=null;a.Lm=[];a.Jj=null;a.Kj=null;a.ob=null;a.Sa=null;a.mu=null;a.nu=null;a.wa=null;a.qu=null;a.ha=null;a.Ta=null;a.Ja=null;a.dc=null;a.Ub=null;a.Ci=null;a.Sb=null;a.jg=null;a.bb=null;a.fc=null;a.Qa=null;a.Ac=null;a.vd=null;a.Wg=null;a.Zb=null;a.Hf=null;a.vb=null;a.Qb=null;a.wb=null;a.jc=null;a.Ka=null;a.Gb=null;a.Ze=null;a.Vg=null;a.fd=null;a.Ug=null;a.vc=null;
a.Hc=null;a.wc=null;a.By=null;a.ml=null;a.Bo=null;a.ku=null;a.O0=null;a.S0=null;a.R0=null;a.Q0=null;a.P0=null;a.ZD=null;a.NM=null;a.OM=null}function Ug(a){return Mg(a)&&!a.If&&null!=a.R.parentNode}function Vg(a,b){!0==b?(Wg(a),pg(a),Xg(a),Mg(a)&&(fg(a,eg(a.Y,"currentCell"),!1),a.If=!0,a.fireEvent("ready",{}),Yg(a))):(a.If=!0,a.fireEvent("ready",{}),Yg(a))}
function Yg(a){var b,c;if(!a.ou){a.ou=!0;if(null!=a.Lm){for(b=0;b<a.Lm.length;b++)c=a.Lm[b],"expand"==c.operation?a.U_(c,!0):"collapse"==c.operation?a.Q_(c,!0):a.X_(c,!0);a.Lm.length=0}a.ou=!1}}
S.prototype.render=function(a){null!=this.R&&(this.destroy(),Og(this));this.ec={};this.Ta=this.ha=0;this.dc=this.Ja=-1;this.fc=this.bb=this.jg=this.Sb=this.Ci=this.Ub=0;this.Ac=this.Qa=-1;this.jc=this.wb=this.Hf=this.Zb=this.Wg=this.vd=0;this.Gb=this.Ka=-1;this.nu=this.mu=this.Sa=this.ob=this.Ug=this.fd=this.Vg=this.Ze=0;this.Cy=[];this.hE=[];this.zo=[];this.LD=[];var b,c,d,e,f;this.J=a;this.J.setAttribute("role","application");Zg(this)?cg(this.J,this.g("editable")):cg(this.J,this.g("readOnly"));
a.tabIndex=0;var h=document.createElement("div");h.id=Ig(this,"status");h.className=this.g("status");h.setAttribute("role","status");a.appendChild(h);this.Di=h;b=document.createElement("div");b.id=Ig(this,"summary");b.className=this.g("info");a.appendChild(b);this.LM=b;b=document.createElement("div");b.id=Ig(this,"info");b.className=this.g("info");b.setAttribute("role","status");a.appendChild(b);this.bu=b;b=document.createElement("div");b.id=Ig(this,"state");b.className=this.g("info");a.appendChild(b);
this.jE=b;b=document.createElement("div");b.id=Ig(this,"context");b.className=this.g("info");a.appendChild(b);this.RM=b;b=document.createElement("div");b.id=Ig(this,"placeHolder");b.className=this.g("info");a.appendChild(b);this.gE=b;if(null!=this.ua){this.yi=null;b=this.N.fb();f=$g(this,"column",this.g("colheader"),this.g("colendheader"));c=f.root;e=f.OZ;a.insertBefore(c,h);a.insertBefore(e,h);f=$g(this,"row",this.g("rowheader"),this.g("rowendheader"));d=f.root;f=f.OZ;a.insertBefore(d,h);a.insertBefore(f,
h);var k,l;k=document.createElement("div");k.id=Ig(this,"databody");k.className=this.g("databody");k.tabIndex="-1";this.R=k;k.addEventListener?k.addEventListener("scroll",this.Z_.bind(this),!1):k.attachEvent("onscroll",this.Z_.bind(this));l=document.createElement("div");l.className=this.g("scroller")+(ah(this.va)?" "+this.g("scroller-mobile"):"");k.appendChild(l);this.fetchCells(k,0,0);a.insertBefore(k,h);b&&(c.style.direction="rtl",k.style.direction="rtl");this.zi=!1;this.qu=this.wa=null;this.ly=
!1;this.qy=this.$ha.bind(this);this.sy=this.oia.bind(this);this.ry=this.nia.bind(this);this.SD=this.uM.bind(this);this.TD=this.mia.bind(this);ah(this.va)?(k.addEventListener("touchstart",this.ria.bind(this),!1),k.addEventListener("touchmove",this.qia.bind(this),!1),k.addEventListener("touchend",this.pia.bind(this),!1),k.addEventListener("touchcancel",this.Xt.bind(this),!1),c.addEventListener("touchstart",this.zD.bind(this),!1),c.addEventListener("touchmove",this.yD.bind(this),!1),c.addEventListener("touchend",
this.xD.bind(this),!1),c.addEventListener("touchcancel",this.Wt.bind(this),!1),d.addEventListener("touchstart",this.zD.bind(this),!1),d.addEventListener("touchmove",this.yD.bind(this),!1),d.addEventListener("touchend",this.xD.bind(this),!1),d.addEventListener("touchcancel",this.Wt.bind(this),!1),e.addEventListener("touchstart",this.zD.bind(this),!1),e.addEventListener("touchmove",this.yD.bind(this),!1),e.addEventListener("touchend",this.xD.bind(this),!1),e.addEventListener("touchcancel",this.Wt.bind(this),
!1),f.addEventListener("touchstart",this.zD.bind(this),!1),f.addEventListener("touchmove",this.yD.bind(this),!1),f.addEventListener("touchend",this.xD.bind(this),!1),f.addEventListener("touchcancel",this.Wt.bind(this),!1),a.addEventListener("focus",this.sy,!0),a.addEventListener("blur",this.ry,!0),a.addEventListener("keydown",this.qy,!1)):(a.addEventListener("keydown",this.qy,!1),a.addEventListener("focus",this.sy,!0),a.addEventListener("blur",this.ry,!0),k.addEventListener("wheel",this.sM.bind(this),
!1),k.addEventListener("mousedown",this.aia.bind(this),!1),k.addEventListener("mousemove",this.bia.bind(this),!1),k.addEventListener("mouseup",this.eia.bind(this),!1),k.addEventListener("mouseout",this.cia.bind(this),!1),k.addEventListener("mouseover",this.dia.bind(this),!1),k.addEventListener("dblclick",this.Zha.bind(this),!1),d.addEventListener("wheel",this.sM.bind(this),!1),d.addEventListener("mousedown",this.uD.bind(this),!1),c.addEventListener("mousedown",this.uD.bind(this),!1),d.addEventListener("mouseover",
this.wD.bind(this),!1),c.addEventListener("mouseover",this.wD.bind(this),!1),d.addEventListener("mousemove",this.Y_.bind(this),!1),c.addEventListener("mousemove",this.R_.bind(this),!1),d.addEventListener("mouseup",this.V_.bind(this),!1),d.addEventListener("mouseout",this.vD.bind(this),!1),c.addEventListener("mouseout",this.vD.bind(this),!1),d.addEventListener("click",this.tD.bind(this),!1),c.addEventListener("click",this.tD.bind(this),!1),f.addEventListener("wheel",this.sM.bind(this),!1),f.addEventListener("mousedown",
this.uD.bind(this),!1),e.addEventListener("mousedown",this.uD.bind(this),!1),f.addEventListener("mouseover",this.wD.bind(this),!1),e.addEventListener("mouseover",this.wD.bind(this),!1),f.addEventListener("mousemove",this.Y_.bind(this),!1),e.addEventListener("mousemove",this.R_.bind(this),!1),f.addEventListener("mouseup",this.V_.bind(this),!1),f.addEventListener("mouseout",this.vD.bind(this),!1),e.addEventListener("mouseout",this.vD.bind(this),!1),f.addEventListener("click",this.tD.bind(this),!1),
e.addEventListener("click",this.tD.bind(this),!1));Ug(this)&&Vg(this,!0)}else a=this.Dv(),this.J.appendChild(a),Vg(this,!1)};t("DvtDataGrid.prototype.render",S.prototype.render,void 0);S.prototype.Fr=function(a,b){a=this.Sg().clientWidth;b=this.Sg().clientHeight;if(a!=this.Gy||b!=this.Eo)this.Gy=a,this.Eo=b,this.ND=this.iE=null,this.If&&(Wg(this),Mg(this)&&(this.By=!0,Xg(this)))};t("DvtDataGrid.prototype.HandleResize",S.prototype.Fr,void 0);
function Wg(a){var b,c,d,e,f,h,k,l,m,n,p,q,r,s,u,v;b=a.getWidth();c=a.getHeight();d=a.Na;u=a.Wa;e=a.$;v=a.oa;f=a.R;m=f.firstChild;k=Jg(a);q=-1===a.Gb?0:a.jl;l=ig(a);p=-1===a.Ka?0:a.sl;c=c-k-q;h=b-l-p;ah(a.va);b=Dg(a.va);bh(a)&&(null==a.yi?(q=a.Dv(),a.J.appendChild(q)):q=a.yi,p=Cg(q),q=Fg(q),p>Cg(m)&&ch(m,p),q>Fg(m)&&dh(m,q));m=Fg(f.firstChild);p=Cg(f.firstChild);(r=eh(a,h))?(s=fh(a,c-b),f.style.overflow="auto"):(s=fh(a,c))?(r=eh(a,h-b),f.style.overflow="auto"):f.style.overflow="hidden";a.Jj=r;a.Kj=
s;-1!=a.Gb?(q=Math.min(p+(r?b:0),c),c=r?q-b:q):(q=c,c=Math.min(p,r?q-b:q));-1!=a.Ka?(n=Math.min(m+(s?b:0),h),h=s?n-b:n):(n=h,h=Math.min(m,s?n-b:n));s=l+h+(s?b:0);r=k+c+(r?b:0);b=a.N.fb()?"right":"left";Y(e,0,b);Y(e,k,"top");ch(e,c);Y(v,s,b);Y(v,k,"top");ch(v,c);Y(d,l,b);dh(d,h);Y(u,l,b);Y(u,r,"top");dh(u,h);Y(f,k,"top");Y(f,l,b);dh(f,n);ch(f,q);a.hr=m-h;a.er=p-c;gh(a);hh(a);a.By=!1}
function ih(a){var b,c,d,e,f,h,k,l,m;b=a.R;c=b.firstChild;d=bh(a);e=wg(a);f=jh(a.va);h=kh(a.va);k=a.ua.getCount("row");l=a.ua.getCount("column");d?(m=Math.max(Math.max(a.Zb,a.fd),1),d=Math.max(Math.max(a.Hf,a.Ug),1)):(m=a.Sb,d=a.jg);k=-1==k||e?m:k*a.gb;e=-1==l||e?d:l*a.ke;ch(c,Math.min(f,k));dh(c,Math.min(h,e));a.If&&(a.hr=Fg(c)-Fg(b)+(a.Kj?Dg(a.va):0),a.er=Cg(c)-Cg(b)+(a.Jj?Dg(a.va):0))}
function lh(a,b,c,d,e,f,h,k,l){if(null!=b&&0<=d&&(e?cg(f,h):W(f,h),c(d)))for(c=0;c<k;)f=a.Da(d,c,b,k,l),e?W(f,h):cg(f,h),c+=mh(a,f)}
function hh(a){var b,c,d,e,f,h,k,l,m,n;d=Dg(a.va);l=a.getWidth();m=a.getHeight();b=Jg(a);c=Fg(a.Na);e=Cg(a.Wa);f=ig(a);h=Cg(a.$);k=Fg(a.oa);c=f+c+k+(a.Kj?d:0)<l;b=b+h+e+(a.Jj?d:0)<m;c&&0<=a.Ka?(n=!0,a.OM=!0):!0==a.OM&&(n=!1);if(null!=n)for(d=a.g("borderVerticalSmall"),null!=a.Lh&&(n?cg(a.Lh,d):W(a.Lh,d)),null!=a.Ye&&(n?cg(a.Ye,d):W(a.Ye,d)),h=a.oa.firstChild.childNodes,e=0;e<h.length;e++)n?cg(h[e],d):W(h[e],d);else d=a.g("borderVerticalNone"),n=a.dq.bind(a),lh(a,a.Na,n,a.Ac,c,a.Lh,d,a.Qb,a.fc),lh(a,
a.Wa,n,a.Gb,c,a.Ye,d,a.Hc,a.jc);n=null;b&&0<=a.Gb?n=a.NM=!0:!0==a.NM&&(n=!1);if(null!=n)for(d=a.g("borderHorizontalSmall"),null!=a.Mh&&(n?cg(a.Mh,d):W(a.Mh,d)),null!=a.Ye&&(n?cg(a.Ye,d):W(a.Ye,d)),h=a.Wa.firstChild.childNodes,e=0;e<h.length;e++)n?cg(h[e],d):W(h[e],d);else d=a.g("borderHorizontalNone"),n=a.fq.bind(a),lh(a,a.$,n,a.Qa,b,a.Mh,d,a.vb,a.bb),lh(a,a.oa,n,a.Ka,b,a.Ye,d,a.vc,a.wb)}
function gh(a){var b,c,d,e,f,h,k,l,m,n,p,q;b=Dg(a.va);p=a.getWidth();q=a.getHeight();c=Jg(a);k=Fg(a.Na);m=-1===a.Gb?0:a.jl;d=ig(a);n=-1===a.Ka?0:a.sl;l=Cg(a.$);h=a.N.fb()?"right":"left";-1!=a.Qa&&-1!=a.Ac&&(null!=a.Im?f=a.Im:(f=document.createElement("div"),f.id=Ig(a,"corner"),f.className=a.g("topcorner")),dh(f,d),ch(f,c),null==a.Im&&(a.J.appendChild(f),a.Im=f));null!=a.Im&&null==f&&(a.J.removeChild(a.Im),a.Im=null);-1!=a.Qa&&(a.Jj||-1!=a.Gb?(null!=a.Mh?f=a.Mh:(f=document.createElement("div"),f.id=
Ig(a,"rhSbSpacer"),f.className=a.g("rowheaderspacer")),Y(f,l+c,"top"),Y(f,0,h),dh(f,d),-1!=a.Gb?ch(f,m+(a.Jj?b:0)):ch(f,q-l-c),null==a.Mh&&(a.J.appendChild(f),a.Mh=f)):(null!=a.Mh&&a.J.removeChild(a.Mh),a.Mh=null));-1!=a.Ac&&(a.Kj||-1!=a.Ka?(null!=a.Lh?f=a.Lh:(f=document.createElement("div"),f.id=Ig(a,"chSbSpacer"),f.className=a.g("colheaderspacer")),Y(f,d+k,h),Y(f,0,"top"),-1!=a.Ka?dh(f,n+(a.Kj?b:0)):dh(f,p-k-d),ch(f,c),null==a.Lh&&(a.J.appendChild(f),a.Lh=f)):(null!=a.Lh&&a.J.removeChild(a.Lh),
a.Lh=null));if(a.Jj&&a.Kj||a.Kj&&-1!=a.Gb||a.Jj&&-1!=a.Ka||-1!=a.Ka&&-1!=a.Gb)null!=a.Ye?e=a.Ye:(e=document.createElement("div"),e.id=Ig(a,"bcorner"),e.className=a.g("bottomcorner")),Y(e,l+c,"top"),Y(e,d+k,h),-1!=a.Ka?dh(e,n+(a.Kj?b:0)):dh(e,p-k-d),-1!=a.Gb?ch(e,m+(a.Jj?b:0)):ch(e,q-l-c),null==a.Ye&&(a.J.appendChild(e),a.Ye=e);null!=a.Ye&&null==e&&(a.J.removeChild(a.Ye),a.Ye=null)}
function pg(a){var b,c,d,e;c=eg(a.Y,"scrollPosition");b=void 0==c?null:void 0!=c.key?"key":void 0!=c.index?"index":null;if(void 0!=a.R&&null!=b&&(c=a.Y,d=nh(c,"scrollPosition","key","column"),c=null!=d?d:nh(c,"scrollPosition","index","column"),d=a.Y,e=nh(d,"scrollPosition","key","row"),d=null!=e?e:nh(d,"scrollPosition","index","row"),null!=c||null!=d))if("key"===b){if(null==d||null==c)b=a.R,e=null!=b?b.firstChild.firstChild:null,b=null!=e?b.firstChild.firstChild.firstChild:null,null==d&&null!=b?d=
b[a.N.zb("context")].keys.row:null==c&&null!=b&&(c=b[a.N.zb("context")].keys.column);null!=d&&null!=c&&ug(a,{row:d,column:c},a.mV)}else null==d?d=0:null==c&&(c=0),a.mV({row:d,column:c})}S.prototype.mV=function(a){var b,c=0;b=-1===a.column?0:a.column;a=-1===a.row?0:a.row;b*=this.ke;c=a*this.gb;oh(this,b,c)};function eh(a,b){var c,d;c=a.R;d=null==b?Fg(c):b;return Fg(c.firstChild)>d?!0:!1}function fh(a,b){var c,d;c=a.R;d=null==b?Cg(c):b;return Cg(c.firstChild)>d?!0:!1}
function ph(a){var b,c;b=a.N.Xe("accessibleSummaryExact",{rownum:a.Ja+1,colnum:a.dc+1});a.ua.mD&&(c=a.N.Xe("accessibleSummaryExpanded",{num:a.ua.mD().length}),b=b+". "+c);a.LM.textContent=b+". "}
S.prototype.yO=function(a){var b,c,d,e,f;if(null!=a&&(null!=a.context&&(this.cu=a.context),null!=a.state&&(this.jE.textContent=a.state),null!=a.ancestors&&qh(this))){b="";a=a.ancestors;c=this.t.indexes.column;if(null!=c&&0<=c)for(d=0;d<a.length;d++)0<d&&(b=b.concat(", ")),e=a[d],f=rh(this,e.key),null!=f&&(f=f.childNodes[c-this.Ta],f=f.textContent,f=null!=f?f.replace(/\n|<br\s*\/?>/gi,"").trim():"",b=b.concat(e.label).concat(" ").concat(f));this.cu=b.concat(", ").concat(this.cu)}};
t("DvtDataGrid.prototype.SetAccessibleContext",S.prototype.yO,void 0);
function sh(a,b,c){var d,e,f,h,k,l,m;d=b.row;e=b.column;f=b.level;h=b.rowHeader;k=b.rowEndHeader;l=b.columnHeader;m=b.columnEndHeader;b="";null!=a.cu||isNaN(d)||"row"==c||(d=a.N.Xe("accessibleRowContext",{index:d+1}),null!=d&&(b=d));isNaN(e)||"column"==c||(d=a.N.Xe("accessibleColumnContext",{index:e+1}),null!=d&&(b=0===b.length?d:b+" "+d));isNaN(h)||"rowHeader"==c||(d=a.N.Xe("accessibleRowHeaderContext",{index:h+1}),null!=d&&(b=0===b.length?d:b+" "+d));isNaN(l)||"columnHeader"==c||(d=a.N.Xe("accessibleColumnHeaderContext",
{index:l+1}),null!=d&&(b=0===b.length?d:b+" "+d));isNaN(k)||"rowEndHeader"==c||(d=a.N.Xe("accessibleRowEndHeaderContext",{index:k+1}),null!=d&&(b=0===b.length?d:b+" "+d));isNaN(m)||"columnEndHeader"==c||(d=a.N.Xe("accessibleColumnEndHeaderContext",{index:m+1}),null!=d&&(b=0===b.length?d:b+" "+d));isNaN(f)||"level"==c||(d=a.N.Xe("accessibleLevelContext",{level:f+1}),null!=d&&(b=0===b.length?d:b+" "+d));null!=a.cu&&(b=b+", "+a.cu,a.cu=null);a.RM.textContent=b}
function Ng(a,b){var c,d;c=a.ua;return"row"===b||"rowEnd"===b?(void 0===a.uy&&(d=c.getCountPrecision("row"),c=c.getCount("row"),a.uy="estimate"===d||0>c?!0:!1),a.uy):"column"===b||"columnEnd"===b?(void 0===a.ty&&(d=c.getCountPrecision("column"),c=c.getCount("column"),a.ty="estimate"===d||0>c?!0:!1),a.ty):!1}function th(a){a.style.display="none"}function uh(a){a.style.display=""}
function $g(a,b,c,d){var e,f;f=a.g("scroller")+(ah(a.va)?" "+a.g("scroller-mobile"):"");e=document.createElement("div");e.id=Ig(a,b+"Header");e.className=c+" "+a.g("header");c=document.createElement("div");c.className=f;e.appendChild(c);c=document.createElement("div");c.id=Ig(a,b+"EndHeader");c.className=d+" "+a.g("endheader");d=document.createElement("div");d.className=f;c.appendChild(d);"column"===b?(a.Na=e,a.Wa=c):"row"===b&&(a.$=e,a.oa=c);a.fetchHeaders(b,0,e,c,null,null);return{root:e,OZ:c}}
S.prototype.fetchHeaders=function(a,b,c,d,e,f){this.ec[a]||(void 0==e&&(e=this.ri(a)),b={axis:a,start:b,count:e,header:c,endHeader:d},this.ec[a]=b,a=null!=f&&null!=f.success?f.success:this.AD,this.Eu(),sg(this),this.ua.fetchHeaders(b,{success:a,error:this.W_},{success:this,error:this}))};g=S.prototype;
g.AD=function(a,b,c,d){var e,f,h,k,l;if(b==this.ec[b.axis]){e=b.axis;if(h=this.ZD)this.If?(k=b.axis,h=b.start,h=("row"==k?vh(this,this.Sa,this.nu,k):vh(this,this.ob,this.mu,k)).start==h):h=!0,h=!h;if(h)this.ec[e]=!1,this.T0=!0;else{this.ec[e]=!1;f=b.header;h=b.endHeader;k=b.start;l=this.ua.getCount(e);if("column"===e){if(null!=a){e=l;var m=!1,n=!1,p,q,r,s,u,v,y;null==this.Qb&&(this.Qb=a.getLevelCount());0!=this.Qb&&(p=a.getCount(),q=k>this.Ac,m=!1,r=q?this.Hf:this.Wg,s=this.Ac,u=this.Qb,v=this.g("colheader")+
" "+this.g("header"),y=this.g("headercell")+" "+this.g("colheadercell"),n=!1,m=wh(this,f,a,"column",k,p,q,m,null,r,s,u,v,y,n),n||(n=m.ah,r=m.Yo,0==n||0!=this.ke&&void 0!=this.ke||(this.ke=n/p),this.yo||(this.yo=r,ch(f,this.yo)),q?(this.Ac=k+p-1,this.Hf+=n):(this.fc-=p,this.Wg-=n),-1==e&&(e=this.Ac),!Ng(this,"column")&&wg(this)&&this.Ac+1>=e?this.Fi=!0:this.Fi=m.Sy,0==this.fc&&0!=this.Wg&&(xh(this,f.firstChild,0,-1*this.Wg,this.N.fb()?"right":"left",this.g("colheadercell")),this.Wg=0)));a.getCount()<
b.count&&(this.Fi=!0)}0>this.Ac?(th(f),this.Fi=!0):this.Q0=!0;null!=c&&(a=l,e=p=!1,null==this.Hc&&(this.Hc=c.getLevelCount()),0!=this.Hc&&(f=c.getCount(),l=k>this.Gb,p=!1,q=l?this.Ug:this.Vg,n=this.Gb,m=this.Hc,r=this.g("colendheader")+" "+this.g("endheader"),s=this.g("endheadercell")+" "+this.g("colendheadercell"),e=!1,p=wh(this,h,c,"columnEnd",k,f,l,p,null,q,n,m,r,s,e),e||(e=p.ah,q=p.Yo,0==e||0!=this.ke&&void 0!=this.ke||(this.ke=e/f),this.jl||(this.jl=q,ch(h,this.jl)),l?(this.Gb=k+f-1,this.Ug+=
e):(this.jc-=f,this.Vg-=e),-1==a&&(a=this.Gb),!Ng(this,"column")&&wg(this)&&this.Gb+1>=a?this.Ei=!0:this.Ei=p.Sy,0==this.jc&&0!=this.Vg&&(xh(this,h.firstChild,0,-1*this.Vg,this.N.fb()?"right":"left",this.g("colendheadercell")),this.Vg=0))),c.getCount()<b.count&&(this.Ei=!0));0>this.Gb?(th(h),this.Ei=!0):this.P0=!0}else"row"===e&&(null!=a&&(this.rZ(f,a,k,l,d,!1),a.getCount()<b.count&&(this.mg=!0)),0>this.Qa?(th(f),this.mg=!0):this.S0=!0,null!=c&&(this.qZ(h,c,k,l,d,!1),c.getCount()<b.count&&(this.lg=
!0)),0>this.Ka?(th(h),this.lg=!0):this.R0=!0);Mg(this)&&(this.Fm(),Ug(this)&&!d&&Vg(this,!0));this.If&&ih(this)}}tg(this)};g.W_=function(a,b){this.ec[b.axis]=!1;tg(this)};function yh(a,b,c,d,e,f,h,k,l){var m,n;m={};m.axis=b;m.index=c;m.data=d;m.component=a;m.datasource=a.ua;m.level=h;m.depth=l;m.extent=k;null!=f&&(m.parentElement=f.firstChild);b=e.key;null!=b&&null!=f&&zh(a,f,b);for(n in e)e.hasOwnProperty(n)&&(m[n]=e[n]);null!=a.PD&&a.PD.call(a,m);return m}
g.rZ=function(a,b,c,d,e,f){var h,k,l,m,n,p,q,r;null==this.vb&&(this.vb=b.getLevelCount());if(0!=this.vb){h=b.getCount();m=(k=c>this.Qa)?this.Zb:this.vd;e?(l=a.firstChild.childNodes[c-this.bb],m=X(l,"top")):l=null;n=this.Qa;p=this.vb;q=this.g("rowheader")+" "+this.g("header");r=this.g("row")+" "+this.g("headercell")+" "+this.g("rowheadercell");b=wh(this,a,b,"row",c,h,k,e,l,m,n,p,q,r,f);m=b.ah;n=b.Yo;if(f)return b;0==m||0!=this.gb&&void 0!=this.gb||(this.gb=m/h);this.Ho||(this.Ho=n,dh(a,this.Ho));k?
(-1!=this.Qa&&0!=h&&(e=a.firstChild.childNodes[this.Qa-this.bb],null!=e&&W(e,this.g("borderHorizontalNone"))),this.Qa=c+h-1,this.Zb+=m):e?(c<this.bb&&(this.bb=c,this.vd=Math.max(0,this.vd-m)),this.Qa+=h,this.Zb=Math.max(0,this.Zb+m),Ah(l,m)):(this.bb=Math.max(0,this.bb-h),this.vd-=m);-1==d&&(d=this.Qa);!Ng(this,"row")&&wg(this)&&this.Qa+1>=d?this.mg=!0:this.mg=b.Sy;0==this.bb&&0!=this.vd&&(xh(this,a.firstChild,0,-1*this.vd,"top",this.g("rowheadercell")),this.vd=0)}};
g.qZ=function(a,b,c,d,e,f){var h,k,l,m,n,p,q,r;null==this.vc&&(this.vc=b.getLevelCount());if(0!=this.vc){h=b.getCount();m=(k=c>this.Ka)?this.fd:this.Ze;e?(l=a.firstChild.childNodes[c-this.wb],m=X(l,"top")):l=null;n=this.Ka;p=this.vc;q=this.g("rowendheader")+" "+this.g("endheader");r=this.g("row")+" "+this.g("endheadercell")+" "+this.g("rowendheadercell");b=wh(this,a,b,"rowEnd",c,h,k,e,l,m,n,p,q,r,f);if(f)return b;m=b.ah;n=b.Yo;if(f)return b;0==m||0!=this.gb&&void 0!=this.gb||(this.gb=m/h);this.sl||
(this.sl=n,dh(a,this.sl));k?(-1!=this.Ka&&0!=h&&(e=a.firstChild.childNodes[this.Ka-this.wb],null!=e&&W(e,this.g("borderHorizontalNone"))),this.Ka=c+h-1,this.fd+=m):e?(c<this.wb&&(this.wb=c,this.Ze=Math.max(0,this.Ze-m)),this.Ka+=h,this.fd=Math.max(0,this.fd+m),Ah(l,m)):(this.wb=Math.max(0,this.wb-h),this.Ze-=m);-1==d&&(d=this.Ka);!Ng(this,"row")&&wg(this)&&this.Ka+1>=d?this.lg=!0:this.lg=b.Sy;0==this.wb&&0!=this.Ze&&(xh(this,a.firstChild,0,-1*this.Ze,"top",this.g("rowendheadercell")),this.Ze=0)}};
function wh(a,b,c,d,e,f,h,k,l,m,n,p,q,r,s){var u,v,y,z,B,C,F,I;B=(I=-1!=d.indexOf("column"))?"height":"width";v=!1;z=y=0;if(!s){if(0==f&&Ng(a,d))return{ah:y,Yo:z,Sy:!0};u=b.firstChild;-1==n&&""==b.className&&(b.className=q,b.style[B]="",u.style[B]="")}n=Bh(a.Y,d);q=document.createDocumentFragment();for(B=0;0<f-B;)h?(z=e+B,F=I?m+y:0,C=I?0:m+y):(z=e+(f-1-B),F=I?m-y:0,C=I?0:m-y),z=Ch(a,q,z,0,F,C,h,k,n,c,d,r,p),B+=z.count,y+=z.ah,z=z.Yo;if(s)return q;h?u.appendChild(q):k?u.insertBefore(q,l):u.insertBefore(q,
u.firstChild);b.hasChildNodes()||k||b.appendChild(u);return{ah:y,Yo:z,Sy:v}}
function Dh(a,b,c,d,e,f){null!=b?(e=b.call(a,c),null!=e&&(null===e.parentNode||e.parentNode instanceof DocumentFragment?d.appendChild(e):null==e.parentNode&&e.toString&&(b=document.createElement("span"),b.className=f,b.appendChild(document.createTextNode(e.toString())),d.appendChild(b))),Eh(a,d)):(null!=e&&"object"===typeof e&&e.hasOwnProperty("data")&&(e=e.data),null==e&&(e=""),b=document.createElement("span"),b.className=f,b.appendChild(document.createTextNode(e.toString())),d.appendChild(b))}
function Ch(a,b,c,d,e,f,h,k,l,m,n,p,q){var r,s,u,v,y,z,B,C,F,I,G,E,D,J,Q,P,U,K,ha,ra;U=P=K=Q=0;"row"===n?(ra="row",D=a.$,r="width",E=a.Cy,s="height",u="top",v=f,y=a.N.fb()?"right":"left",f=e,z=a.bb,B=a.Qa):"rowEnd"==n?(ra="row",D=a.oa,r="width",E=a.hE,s="height",u="top",v=f,y=a.N.fb()?"left":"right",f=e,z=a.wb,B=a.Ka):"column"==n?(ra="column",D=a.Na,r="height",E=a.zo,s="width",u=a.N.fb()?"right":"left",v=e,y="top",z=a.fc,B=a.Ac):(ra="column",D=a.Wa,r="height",E=a.LD,s="width",u=a.N.fb()?"right":"left",
v=e,y="bottom",z=a.jc,B=a.Gb);C=m.getExtent(c,d);e=C.extent;F=C.more.before;I=C.more.after;C=m.getDepth(c,d);if(F&&c===B+1){G=Fh(a,c-1,d,0,null,D,q);ng(a,G,"extent",Gh(a,G,"extent")+e);D=G.firstChild;Q=X(D,r);for(r=0;r<e;)J="column"===n||"columnEnd"===n?Ch(a,G,c+r,d+C,v,f+Q,h,k,l,m,n,p,q):Ch(a,G,c+r,d+C,f+Q,v,h,k,l,m,n,p,q),v+=J.ah,P+=J.ah,U+=J.count,r+=J.count;Y(D,X(D,s)+P,s)}else if(I&&c===z-1){G=Fh(a,c+1,d,0,null,D,q);ng(a,G,"extent",Gh(a,G,"extent")+e);ng(a,G,"start",Gh(a,G,"start")-e);D=G.firstChild;
Q=X(D,r);for(r=0;r<e;)J="column"===n||"columnEnd"===n?Ch(a,G,c-r,d+C,v,f+Q,h,k,l,m,n,p,q):Ch(a,G,c-r,d+C,f+Q,v,h,k,l,m,n,p,q),v-=J.ah,P+=J.ah,U+=J.count,r+=J.count;Y(D,X(D,s)+P,s);Y(D,v,u)}else{z=m.getData(c,d);B=m.getMetadata(c,d);I=document.createElement("div");I.className=a.g("headercellcontent");D=document.createElement("div");D.appendChild(I);F=yh(a,n,c,z,B,D,d,e,C);D.id=Ig(a,("columnEnd"==n?"ce":"rowEnd"==n?"re":n.charAt(0))+F.key);D[a.N.zb("context")]=F;K=eg(a.Y,"style",n,F);ha=eg(a.Y,"className",
n,F);null!=K&&(D.style.cssText=K);D.className=p;null!=ha&&(D.className+=" "+ha);for(K=0;K<C;K++)Q+=Hh(d+K,D,E,r);Y(D,v,u);Y(D,f,y);Y(D,Q,r);y=Lg(a,D,F.key,ra,s);ng(a,D,"depth",C);d!=q-1&&(G=document.createElement("div"),G.className=a.g("groupingcontainer"),G.appendChild(D),ng(a,G,"start",h?c:c-e+1),ng(a,G,"extent",e),ng(a,G,"level",d));if(d+C==q)Y(D,y,s),P+=y,U++,K=Q,h||k||Y(D,v-y,u);else{for(r=0;r<e;r++)J=h?c+r:c-r,J="column"===n||"columnEnd"===n?Ch(a,G,J,d+C,v,f+Q,h,k,l,m,n,p,q):Ch(a,G,J,d+C,f+
Q,v,h,k,l,m,n,p,q),y=J.ah,v=h?v+y:v-y,P+=y,U+=J.count,r+=J.count-1;K=Q+J.Yo;h||k||Y(D,v,u);Y(D,P,s)}"columnEnd"==n&&a.NM&&cg(D,a.g("borderHorizontalSmall"));"rowEnd"==n&&a.OM&&cg(D,a.g("borderVerticalSmall"));mg(a,n,F)&&ng(a,D,"resizable","true");null!=G?a.J.appendChild(G):a.J.appendChild(D);Dh(a,l,F,I,z,a.g("headercelltext"));"column"===n&&a.zw(n,F)&&(null!=B.sortDirection&&null==a.wc&&(a.wc={},a.wc.key=B.key,a.wc.direction=B.sortDirection,a.wc.axis=n),d=og(a,F),D.appendChild(d),ng(a,D,"sortable",
"true"));h?null!=G?b.appendChild(G):b.appendChild(D):null!=G?b.firstChild?V(b.firstChild,a.g("groupingcontainer"))?b.insertBefore(G,b.firstChild):(V(b.firstChild,a.g("headercell"))||V(b.firstChild,a.g("endheadercell")))&&b.insertBefore(G,b.firstChild.nextSibling):b.appendChild(G):V(b,a.g("groupingcontainer"))?b.insertBefore(D,b.firstChild.nextSibling):b.insertBefore(D,b.firstChild)}"column"===n||"columnEnd"===n?a.dq(c+e-1)&&cg(D,a.g("borderVerticalNone")):a.fq(c+e-1)&&!k&&cg(D,a.g("borderHorizontalNone"));
a={};a.Yo=K;a.ah=P;a.count=U;return a}function Hh(a,b,c,d){var e;e=c[a];if(null!=e)return e;e=X(b,d);return c[a]=e}function Fh(a,b,c,d,e,f,h){var k,l,m,n;null==e?(e=f.firstChild.childNodes,n=0):n=1;if(d===h-1)return e[0].parentNode;for(;n<e.length;){k=Gh(a,e[n],"start");l=Gh(a,e[n],"extent");m=Gh(a,e[n].firstChild,"depth");if(b>=k&&b<k+l)return c<d+m?e[n]:Fh(a,b,c,d+m,e[n].childNodes,f,h);n++}return null}
g.Da=function(a,b,c,d,e){if(0>b)return null;if(1===d)return b=c.firstChild.childNodes,b[a-e];e=Fh(this,a,b,0,null,c,d);if(null==e)return null;if(b<=Gh(this,e,"level")+Gh(this,e.firstChild,"depth")-1)return e.firstChild;b=Gh(this,e,"start");return e.childNodes[a-b+1]};function Gh(a,b,c){a=b.getAttribute(a.N.zb(c));return parseInt(a,10)}function ng(a,b,c,d){b.setAttribute(a.N.zb(c),d)}
S.prototype.fetchCells=function(a,b,c,d,e,f){this.ec.cells||(null==d&&(d=this.ri("row")),null==e&&(e=this.ri("column")),b={axis:"row",start:b,count:d},a={axis:"column",start:c,count:e,databody:a},this.ec.cells={rowRange:b,columnRange:a},f=null!=f&&null!=f.success?f.success:this.rM,this.Eu(),sg(this),this.ua.fetchCells([b,a],{success:f,error:this.rD},{success:this,error:this}))};g=S.prototype;
g.rM=function(a,b,c){var d,e,f,h,k,l,m,n,p,q,r,s,u;d=this.ua.getCount("row");e=this.ua.getCount("column");if(void 0===c){c=!1;h=b[0];k=b[1];l=this.ec.cells;if(h!=l.rowRange||k!=l.columnRange){tg(this);return}(h=!this.ZD)||(isNaN(this.gb)||isNaN(this.ke)||null!=this.yi||!this.If?h=!0:(h=b[0].start,k=b[1].start,l=vh(this,this.Sa,this.nu,"row"),f=vh(this,this.ob,this.mu,"column"),h=l.start==h&&f.start==k),h=h&&!this.T0);if(h)this.ZD=!1;else{this.T0=this.ec.cells=!1;Ih(this,this.ob,this.Sa);tg(this);
return}}Gg(this);f=b[0];h=f.start;k=a.getCount("row");l=0<k&&(h>this.Ja||h+k<=this.ha);if(0==k&&Ng(this,"row")&&0<f.count||l&&wg(this)&&!Ng(this,"row")&&this.Ja+k+1>=d||k<f.count)this.Zg=!0;m=b[1];b=m.start;d=a.getCount("column");f=0<d&&(b>this.dc||b+d==this.Ta);if(0==d&&Ng(this,"column")&&0<m.count||f&&wg(this)&&!Ng(this,"column")&&this.dc+d+1>=e||d<m.count)this.Lj=!0;e=this.R;null==e&&(e=m.databody);m=e.firstChild;if(l||c)if((r=!c&&h>=this.ha?!0:!1)?(p=m.childNodes[h-this.ha],n=this.Sb):c?(p=m.childNodes[h-
this.ha],n=X(p,"top")):n=this.Ub,s=document.createDocumentFragment(),n=Jh(this,s,r||c,n,h,k,b,f,a),a=n.totalRowHeight,u=n.avgWidth,n=a/k,r){m.appendChild(s);if(-1!=this.Ja&&0!=k&&(p=m.childNodes[this.Ja-this.ha],null!=p))for(p=p.childNodes,s=0;s<p.length;s+=1)W(p,this.g("borderHorizontalNone"));this.Ja=h+k-1;this.Sb+=a}else c?(m.insertBefore(s,p),h<this.ha&&(this.ha=h,this.Ub=Math.max(0,this.Ub-a)),this.Ja+=k,this.Sb+=a,Kh(p,a)):(m.insertBefore(s,m.firstChild),this.ha-=k,this.Ub-=a);else if(f&&(p=
m.childNodes,k==p.length)){var v,y,z;u=Bh(this.Y,"cell");m=bg(this.Y);v=gg(this.Y);y=hg(this.Y);for(z=0;z<k;z+=1)s=p[z],s=Lh(this,a,s,h+z,u,!1,b,z==k-1,m,v,y),s=s.avgWidth;u=s}void 0==u||0!=this.ke&&void 0!=this.ke||(this.ke=u);void 0==n||0!=this.gb&&void 0!=this.gb||(this.gb=n);ih(this);f&&(b<this.Ta?this.Ta-=d:this.dc=b+d-1);0<=this.dc&&0<=this.Ja&&(this.O0=!0);0==this.Ta&&0!=this.Ci&&(Mh(this,-1*this.Ci,!1,null,0,this.dc,null,this.N.fb()?"right":"left"),this.Ci=0);0==this.ha&&0!=this.Ub&&(Kh(this.R.firstChild.firstChild,
-this.Ub),this.Ub=0);this.ec.cells=!1;this.If&&Nh(this);Mg(this)&&(this.Fm(),null!=this.Bi?Oh(this,this.Bi):null!=this.tl?Ph(this,this.tl):Qh(this)||null==rg(this)||V(rg(this),this.g("focus"))||(this.ir=!1,Rh(this)),this.tb()&&Sh(this,h,h+k),ph(this),ah(this.va)&&window.hasOwnProperty("WebKitCSSMatrix")&&(e.style.webkitTransform="translate3d(0, 0, 0)",null!=this.$&&(this.$.style.webkitTransform="translate3d(0, 0, 0)"),null!=this.Na&&(this.Na.style.webkitTransform="translate3d(0, 0, 0)"),null!=this.oa&&
(this.oa.style.webkitTransform="translate3d(0, 0, 0)"),null!=this.Wa&&(this.Wa.style.webkitTransform="translate3d(0, 0, 0)")),Ug(this)?Vg(this,!0):this.If&&((!0==this.By||this.Zb>Cg(e)&&this.getHeight()-Cg(this.Na)-Cg(this.Wa)>Cg(e)||this.Hf>Fg(e)&&this.getWidth()-Fg(this.$)-Fg(this.oa)>Fg(e))&&Wg(this),l?r?q="top":c||(q="bottom"):f&&(q=b==this.Ta?"right":"left"),Th(this,q),Xg(this),Mg(this)&&this.fireEvent("ready",{})));tg(this)};
function Uh(a,b,c,d,e,f){var h,k,l,m,n,p,q,r,s,u,v,y,z,B,C,F,I,G;sg(a);h=e>a.Ja;k=a.R.firstChild;l=null==c?!1:!0;C=null==d?!1:!0;n=k.childNodes[e-a.ha-1];q=X(n,"top");r=q+Cg(n);Vh(n,Wh("z-index"),10);l&&(m=a.$.firstChild,p=m.childNodes[e-a.ha-1],Vh(p,Wh("z-index"),10));C&&(F=a.oa.firstChild,I=F.childNodes[e-a.ha-1],Vh(I,Wh("z-index"),10));for(s=0;s<b.childNodes.length;s++)u=b.childNodes[s],v=r+X(u,"top"),y=q-v,Y(u,v,"top"),Xh(u,0,0,"linear",0,y),l&&(u=c.childNodes[s],Y(u,v,"top"),Xh(u,0,0,"linear",
0,y)),C&&(u=d.childNodes[s],Y(u,v,"top"),Xh(u,0,0,"linear",0,y));for(s=e-a.ha;s<k.childNodes.length;s++)u=k.childNodes[s],v=f+X(u,"top"),y=-f,Y(u,v,"top"),Xh(u,0,0,"linear",0,y),l&&(u=m.childNodes[s],Y(u,v,"top"),Xh(u,0,0,"linear",0,y)),C&&(u=F.childNodes[s],Y(u,v,"top"),Xh(u,0,0,"linear",0,y));a.Ja+=b.childNodes.length;a.Sb+=f;l&&(a.Qa+=c.childNodes.length,a.Zb+=f);C&&(a.Ka+=c.childNodes.length,a.fd+=f);h?(k.appendChild(b),l&&m.appendChild(c),C&&F.appendChild(d)):(k.insertBefore(b,n.nextSibling),
l&&m.insertBefore(c,p.nextSibling),C&&F.insertBefore(d,I.nextSibling));ch(k,a.Sb-a.Ub);Wg(a);dg(a);z=k.lastChild;B=function(){Yh(a);z.removeEventListener("transitionend",B,!1)};z.addEventListener("transitionend",B,!1);a.du=!0;G=a.ou?1:500;setTimeout(function(){var b;G=500;for(b=k.childNodes.length-1;b>=e-a.ha;b--)Xh(k.childNodes[b],G+"ms",0,"ease-out",0,0),l&&Xh(m.childNodes[b],G+"ms",0,"ease-out",0,0),C&&Xh(F.childNodes[b],G+"ms",0,"ease-out",0,0)},0)}
function Jh(a,b,c,d,e,f,h,k,l){var m,n,p,q,r,s,u,v,y,z;m=Bh(a.Y,"cell");n=bg(a.Y);p=Zh(a.Y);q=gg(a.Y);r=hg(a.Y);for(z=v=0;z<f;z+=1)u=c?e+z:e+(f-1-z),s=document.createElement("div"),s.className=a.g("row"),1===Math.floor(u/p)%2&&(s.className+=" "+a.g("banded")),a.J.appendChild(s),y=Lh(a,l,s,u,m,!0,h,z==f-1&&k,n,q,r,d),u=y.avgWidth,y=y.height,v+=y,c?(s.style.top=d+"px",d+=y,b.appendChild(s)):(d-=y,s.style.top=d+"px",b.insertBefore(s,b.firstChild));return{avgWidth:u,totalRowHeight:v,top:d}}
function Kh(a,b){for(;a;){var c=X(a,"top")+b;a.style.top=c+"px";a=a.nextSibling}}function Ah(a,b){for(;a;){var c=X(a,"top")+b;a.style.top=c+"px";a=a.nextSibling}}function ig(a){return-1===a.Qa?0:a.Ho}function Jg(a){return-1===a.Ac?0:a.yo}function kg(a,b,c){var d;d=Jg(a);if(null!=c)return d+c;c=X(b,"top");a=$h(a,b);return isNaN(c)||isNaN(a)?d:d+c+a}
function Lh(a,b,c,d,e,f,h,k,l,m,n,p){var q,r,s,u,v,y,z,B,C,F,I,G,E,D,J,Q,P;q=h>=a.Ta;s=c.firstChild;y=f||!q?a.Ci:a.jg;ah(a.va)&&V(c.lastChild,a.g("toucharea"))&&(Q=V(c.children[c.children.length-2],a.g("toucharea"))?c.children[c.children.length-2]:c.lastChild);z=a.N.fb()?"right":"left";B=0;C=b.getCount("column");for(E=0;E<C;E+=1){J=q||f?h+E:h+(C-1-E);u={row:d,column:J};F=b.getData(u);I=b.getMetadata(u);D=document.createElement("div");D.setAttribute("tabIndex",-1);r=document.createElement("div");r.className=
a.g("cellcontent");D.appendChild(r);G=a;v=F;var U=void 0,K=void 0,U={};U.parentElement=D.firstChild;U.indexes=u;U.cell=v;U.data=null!=v&&"object"===typeof v&&v.hasOwnProperty("data")?v.data:v;U.component=G;U.datasource=G.ua;U.mode="navigation";for(K in I)I.hasOwnProperty(K)&&(U[K]=I[K]);null!=G.PD&&G.PD.call(G,U);G=U;u=D;v=G.keys;v=Ig(a,"r"+v.row+"c"+v.column);u.id=v;D[a.N.zb("context")]=G;null==a.Vb(c)&&(P=G.keys.row,zh(a,c,P),-1==a.Qa?(v=yh(a,"row",d,null,{key:P},null,0,0,1),u=eg(a.Y,"style","row",
v),v=eg(a.Y,"className","row",v),I=document.createElement("div"),I.style.cssText=u,I.className=a.g("row")+" "+v,P=Lg(a,I,P,"row","height")):P=Lg(a,c,P,"row","height"),ch(c,P));u=eg(a.Y,"style","cell",G);null!=u&&(D.style.cssText=u);""!=D.style.height&&(D.style.height="");""!=D.style.width&&(D.style.width="");v=1===Math.floor(J/l)%2?a.g("cell")+" "+a.g("banded")+" "+a.g("formcontrol"):a.g("cell")+" "+a.g("formcontrol");u=eg(a.Y,"className","cell",G);D.className=null!=u?v+" "+u:v;-1!=a.Ac||0!=d||a.If?
u=Lg(a,D,G.keys.column,"column","width"):(v=yh(a,"column",J,null,{key:G.keys.column},null,0,0,1),u=eg(a.Y,"style","column",v),v=eg(a.Y,"className","column",v),I=document.createElement("div"),I.style.cssText=u,I.className=a.g("colheadercell")+" "+a.g("headercell")+" "+v,u=Lg(a,I,G.keys.column,"column","width"));dh(D,u);("hidden"===n||a.dq(J)&&(ig(a)+y+u>=a.getWidth()||-1!=a.Ka))&&cg(D,a.g("borderVerticalNone"));"hidden"===m?cg(D,a.g("borderHorizontalNone")):a.fq(d)&&(null!=p&&J==h&&(p+=Cg(c)),(kg(a,
c,p)>=a.getHeight()||-1!=a.Gb)&&cg(D,a.g("borderHorizontalNone")));q||f?Y(D,y,z):Y(D,y-u,z);q||f?(Q?c.insertBefore(D,Q):c.appendChild(D),y+=u):(c.insertBefore(D,s),s=D,y-=u);Dh(a,e,G,r,F,a.g("celltext"));k&&(q||f?a.jg+=u:a.Ci-=u,B+=u)}return k&&0<C?{avgWidth:B/C,height:P}:{avgWidth:null,height:P}}
g.rD=function(a,b){var c,d;this.ec.cells=!1;this.Fm();null==this.R.firstChild?Ug(this)&&Vg(this,!0):(c=b[0],d=b[1],d.start+d.count-1>this.dc&&(this.Ei=this.Fi=this.Lj=!0),c.start+c.count-1>this.Ja&&(this.lg=this.mg=this.Zg=!0))};g.Eu=function(){var a;a=this.N.Xe("msgFetchingData");"block"!=this.Di.style.display&&(this.Di.textContent=a,this.Di.style.display="block",a=this.getWidth()/2-this.Di.offsetWidth/2,this.Di.style.left=a+"px")};g.Fm=function(){this.Di.style.display="none"};
function ai(a,b,c){var d,e,f,h;d=[];a=a.N.zb("tabMod");if(document.evaluate)for(b=document.evaluate(".//*[@tabindex\x3e\x3d0]|.//*[@"+a+"\x3e\x3d0]|.//input|.//select|.//textarea|.//button|.//a|.//INPUT|.//SELECT|.//TEXTAREA|.//BUTTON|.//A",b,null,XPathResult.ANY_TYPE,null),e=b.iterateNext();e;)!e.disabled&&"none"!=e.style.display&&(c||!e.tabIndex||0<e.tabIndex||0<=parseInt(e.getAttribute(a),10))&&d.push(e),e=b.iterateNext();else for(b=b.querySelectorAll("input, select, button, a, textarea, [tabIndex], ["+
a+"]"),f=b.length,h=0;h<f;h+=1)e=b[h],!e.disabled&&"none"!=e.style.display&&(c||!e.tabIndex||0<=e.tabIndex||0<=parseInt(e.getAttribute(a),10))&&d.push(e);return d}function Eh(a,b){var c,d,e,f;f=a.N.zb("tabMod");c=ai(a,b);for(d=0;d<c.length;d++)if(e=parseInt(c[d].tabIndex,10),isNaN(e)||0<=e)c[d].setAttribute(f,isNaN(e)?-1:e),c[d].setAttribute("tabIndex",-1)}
function bi(a,b){var c,d,e,f;f=a.N.zb("tabMod");c=ai(a,b,!1);for(d=0;d<c.length;d++)e=parseInt(c[d].getAttribute(f),10),c[d].removeAttribute(f),-1==e?c[d].removeAttribute("tabIndex"):c[d].setAttribute("tabIndex",e)}function ci(a,b){if(null==b||b==a.Sg()||V(b,a.g("cell")))return!1;var c=b.tagName;return"INPUT"===c||"TEXTAREA"===c||"SELECT"===c||"BUTTON"===c||"A"===c||V(b,a.g("active"))||null!=b.getAttribute("tabIndex")&&0<=parseInt(b.getAttribute("tabIndex"),10)&&di(a,b)!=b?!0:ci(a,b.parentNode)}
function ei(a,b){var c,d;c=ai(a,b,!0);if(0<c.length){d=c[0];d.focus();if(d.setSelectionRange&&d.value)try{d.setSelectionRange(d.value.length,d.value.length)}catch(e){}!0===a.yW&&"function"===typeof c[0].select&&d.select();return!0}return!1}
g.Z_=function(a){if(!ah(this.va))if(!0==this.b1)this.b1=!1;else{var b;a||(a=window.event);a=a.target?a.target:a.srcElement;b=this.va;var c;b.xm.N.fb()?"gecko"==b.platform||"ie"==b.platform||"edge"==b.platform?b=Math.abs(a.scrollLeft):(b=Fg(b.xm.R.firstChild),c=a.clientWidth,b=Math.max(0,b-c-a.scrollLeft)):b=a.scrollLeft;this.scrollTo(b,a.scrollTop)}};function fi(a){return!Ng(a,"column")&&!wg(a)||a.Lj?a.hr:Number.MAX_VALUE}function gi(a){return!Ng(a,"row")&&!wg(a)||a.Zg?a.er:Number.MAX_VALUE}
S.prototype.scroll=function(a){var b;null!=a.position&&(b=Math.max(0,Math.min(fi(this),a.position.scrollX)),a=Math.max(0,Math.min(gi(this),a.position.scrollY)),oh(this,b,a))};t("DvtDataGrid.prototype.scroll",S.prototype.scroll,void 0);function hi(a,b,c){0!=b&&0!=c&&(Math.abs(b)>Math.abs(c)?(c=0,a.WD=null):(b=0,a.py=null));b=Math.max(0,Math.min(fi(a),a.ob-b));c=Math.max(0,Math.min(gi(a),a.Sa-c));oh(a,b,c)}
function oh(a,b,c){if(ah(a.va))a.scrollTo(b,c);else{var d=a.va,e=a.R,f;d.xm.N.fb()?"gecko"===d.platform?e.scrollLeft=-b:"ie"==d.platform||"edge"==d.platform?e.scrollLeft=b:(d=Fg(d.xm.R.firstChild),f=e.clientWidth,e.scrollLeft=d-f-b):e.scrollLeft=b;a.R.scrollTop=c}}function ii(a){a.R.firstChild.style.webkitTransitionDuration="0ms";a.$.firstChild.style.webkitTransitionDuration="0ms";a.Na.firstChild.style.webkitTransitionDuration="0ms"}
function ji(a,b,c){return wg(a)?!1:b+zg(a)<oi(a)||c+Ag(a)<pi(a)||b>qi(a)||c>ri(a)}
S.prototype.scrollTo=function(a,b){a!=this.ob&&(this.mu=this.ob,this.ob=a);b!=this.Sa&&(this.nu=this.Sa,this.Sa=b);ah(this.va)||(ji(this,a,b)?Ih(this,a,b):Xg(this));Nh(this);ah(this.va)||this.nu===b&&this.mu===a||this.fireEvent("scroll",{event:null,ui:{scrollX:a,scrollY:b}});var c,d,e;c=this.R.firstChild;d=Cg(c);e=Fg(c);(ri(this)>d||this.ua.getCount("row")==si(this)+1&&!Ng(this,"row")&&-1<si(this))&&ch(c,ri(this));(qi(this)>e||this.ua.getCount("column")==ti(this)+1&&!Ng(this,"column")&&-1<ti(this))&&
dh(c,qi(this));null!=this.eu&&(this.yb(this.eu,null,!1),this.eu=null);null!=this.Bi&&ui(this,this.Bi)===vi&&(qh(this)&&this.Bi.row==this.t.indexes.row&&this.Bi.column==this.t.indexes.column&&Rh(this),this.Bi=null);null!=this.tl&&(qh(this)||this.tl.axis!=this.t.axis||this.tl.index!=this.t.index||this.tl.level!=this.t.level||Rh(this),this.tl=null)};
S.prototype.sK=function(){var a;null!=this.gr&&(a=this.R.firstChild,a.removeEventListener("webkitTransitionEnd",this.gr));this.tb()&&wi(this);this.fireEvent("scroll",{event:null,ui:{scrollX:this.ob,scrollY:this.Sa}});ji(this,this.ob,this.Sa)?Ih(this,this.ob,this.Sa):Xg(this)};
S.prototype.s6=function(){var a,b,c,d,e,f,h;a=this.ob;b=this.Sa;c=this.R.firstChild;d=this.Na.firstChild;e=this.$.firstChild;f=this.Wa.firstChild;h=this.oa.firstChild;c.removeEventListener("webkitTransitionEnd",this.PM);c.style.webkitTransitionDuration="500ms";e.style.webkitTransitionDuration="500ms";h.style.webkitTransitionDuration="500ms";d.style.webkitTransitionDuration="500ms";f.style.webkitTransitionDuration="500ms";null==this.gr&&(this.gr=this.sK.bind(this));c.addEventListener("webkitTransitionEnd",
this.gr);this.N.fb()?(c.style.webkitTransform="translate3d("+a+"px, "+-b+"px, 0)",d.style.webkitTransform="translate3d("+a+"px, 0, 0)",f.style.webkitTransform="translate3d("+a+"px, 0, 0)"):(c.style.webkitTransform="translate3d("+-a+"px, "+-b+"px, 0)",d.style.webkitTransform="translate3d("+-a+"px, 0, 0)",f.style.webkitTransform="translate3d("+-a+"px, 0, 0)");e.style.webkitTransform="translate3d(0, "+-b+"px, 0)";h.style.webkitTransform="translate3d(0, "+-b+"px, 0)";this.WD=this.py=null};
function Nh(a){var b,c,d,e,f,h,k;b=a.ob;c=a.Sa;d=a.R.firstChild;e=a.Na.firstChild;f=a.$.firstChild;h=a.Wa.firstChild;k=a.oa.firstChild;ah(a.va)&&window.hasOwnProperty("WebKitCSSMatrix")?(null!=a.py||null!=a.WD?(null!=a.py?b+=a.py:c+=a.WD,null==a.PM&&(a.PM=a.s6.bind(a)),d.addEventListener("webkitTransitionEnd",a.PM)):"0ms"==d.style.webkitTransitionDuration?a.sK():(null==a.gr&&(a.gr=a.sK.bind(a)),d.addEventListener("webkitTransitionEnd",a.gr)),a.N.fb()?(d.style.webkitTransform="translate3d("+b+"px, "+
-c+"px, 0)",e.style.webkitTransform="translate3d("+b+"px, 0, 0)",h.style.webkitTransform="translate3d("+b+"px, 0, 0)"):(d.style.webkitTransform="translate3d("+-b+"px, "+-c+"px, 0)",e.style.webkitTransform="translate3d("+-b+"px, 0, 0)",h.style.webkitTransform="translate3d("+-b+"px, 0, 0)"),f.style.webkitTransform="translate3d(0, "+-c+"px, 0)",k.style.webkitTransform="translate3d(0, "+-c+"px, 0)"):(a=a.N.fb()?"right":"left",Y(e,-b,a),Y(h,-b,a),Y(f,-c,"top"),Y(k,-c,"top"))}
function vh(a,b,c,d){var e,f,h,k,l,m,n,p;if(c!=b){if("row"==d?(k=Cg(a.R.firstChild),l=jh(a.va),m=gi(a),n=a.gb,p=a.Jj?Dg(a.va):0):"column"==d&&(k=Fg(a.R.firstChild),l=kh(a.va),m=fi(a),n=a.ke,p=a.Kj?Dg(a.va):0),c=Math.max(Math.min(b/k,1),0),h=a.ua.getCount(d),a=a.ri(d),e=Math.floor(h*c),f=l<=k?Math.min(b,m):e*n,1==c||b+a*n>k-p)e=Math.max(h-a,0),f=Math.max(k-a*n,0)}else"row"==d?(e=a.ha,f=a.Ub):"column"==d&&(e=a.Ta,f=a.Ci);return{start:e,startPixel:f}}
function Ih(a,b,c){var d,e;a.ZD=!0;Mg(a)&&(d=vh(a,c,a.nu,"row"),c=d.start,d=d.startPixel,e=vh(a,b,a.mu,"column"),b=e.start,e=e.startPixel,a.O0&&(a.ha=c,a.Ja=-1,a.Ub=d,a.Sb=d,a.Ta=b,a.dc=-1,a.Ci=e,a.jg=e),a.S0&&(a.bb=c,a.Qa=-1,a.vd=d,a.Zb=d),a.R0&&(a.wb=c,a.Ka=-1,a.Ze=d,a.fd=d),a.Q0&&(a.fc=b,a.Ac=-1,a.Wg=e,a.Hf=e),a.P0&&(a.jc=b,a.Gb=-1,a.Vg=e,a.Ug=e),a.Zg=!1,a.mg=!1,a.lg=!1,a.Lj=!1,a.Fi=!1,a.Ei=!1,a.fetchHeaders("row",c,a.$,a.oa,void 0,{success:function(a,b,c){xi(this,a,b,c)}}),a.fetchHeaders("column",
b,a.Na,a.Wa,void 0,{success:function(a,b,c){yi(this,a,b,c)}}),a.fetchCells(a.R,c,b,null,null,{success:function(a,b){zi(this,a,b)}}))}function xi(a,b,c,d){var e,f;e=a.$.firstChild;f=a.oa.firstChild;null!=e&&a.va.empty(e);null!=f&&a.va.empty(f);a.AD(b,c,d,!1)}function yi(a,b,c,d){var e,f;e=a.Na.firstChild;f=a.Wa.firstChild;null!=e&&a.va.empty(e);null!=f&&a.va.empty(f);a.AD(b,c,d,!1)}function zi(a,b,c){var d=a.R.firstChild;null!=d&&a.va.empty(d);a.rM(b,c)}
function Th(a,b){var c,d,e,f;if(c=!wg(a)){d=Ai(a);c=rg(a);if(d="edit"==d)a:{if(!wg(a)){if(a.Ja-a.ha>a.jp&&(e=X(c.parentNode,"top"),d=Cg(c),e+d<a.Sa||e<a.Sa+Ag(a))){d=!0;break a}if(a.dc-a.Ta>a.ip&&(e=X(c,"left"),d=Fg(c),e+d<a.ob||e<a.ob+Ag(a))){d=!0;break a}}d=void 0}c=d?a.RI(null,c):!0}if(c)if(c=a.ob,d=Eg(a),e=a.Sa,f=Bg(a),"top"==b&&e>pi(a)){if(a.Ja-a.ha>a.jp&&(c=a.R.firstChild,!(a.Ub>=a.Sa-0)))for(d=c.firstChild,e=Cg(d);a.Ub+e<a.Sa-0;){a.rc(d);a.Ub+=e;a.ha+=1;d=c.firstChild;if(null==d)break;e=Cg(d)}a.Qa-
a.bb>a.jp&&(d=a.$.firstChild,c=0,a.vd>=a.Sa-c||(c=Bi(a,d,null,a.vd,c,a.g("rowheadercell"),"height","top",a.Sa),a.vd+=c.zf,a.bb+=c.Af));a.Ka-a.wb>a.jp&&(d=a.oa.firstChild,c=0,a.Ze>=a.Sa-c||(c=Bi(a,d,null,a.Ze,c,a.g("rowendheadercell"),"height","top",a.Sa),a.Ze+=c.zf,a.wb+=c.Af))}else if("bottom"==b&&f<ri(a)){if(a.Ja-a.ha>a.jp&&(c=a.R.firstChild,d=a.Sa+Ag(a)+0,!(a.Sb<=d)))for(a.Zg&&(a.Zg=!1),e=c.lastChild,f=Cg(e);a.Sb-f>d;)a.rc(e),a.Sb-=f,a.Ja-=1,e=c.lastChild,f=Cg(e);c=a.Sa+Ag(a)+0;a.Qa-a.bb>a.jp&&
(d=a.$.firstChild,a.Zb<=c||(a.mg&&(a.mg=!1),d=Ci(a,d,a.Zb,c,a.g("rowheadercell"),"height"),a.Zb-=d.zf,a.Qa-=d.Af));a.Ka-a.wb>a.jp&&(d=a.oa.firstChild,a.fd<=c||(a.lg&&(a.lg=!1),d=Ci(a,d,a.fd,c,a.g("rowendheadercell"),"height"),a.fd-=d.zf,a.Ka-=d.Af))}else if("left"==b&&c>oi(a)){var h,k,l;if(a.dc-a.Ta>a.ip&&(c=a.R.firstChild,c=c.childNodes,e=d=0,!(1>c.length))){f=c[0].childNodes;for(h=0;h<f.length;h+=1)if(k=f[h],l=e,e=X(k,"left"),e>a.ob-0){d=h-1;a.Ta+=d;a.Ci=l;break}for(e=0;e<c.length;e+=1)for(f=c[e],
h=0;h<d;h+=1)a.rc(f.firstChild)}a.Ac-a.fc>a.ip&&(d=a.Na.firstChild,c=0,a.Wg<=a.ob-c&&(c=Bi(a,d,null,a.Wg,c,a.g("colheadercell"),"width",a.N.fb()?"right":"left",a.ob),a.Wg+=c.zf,a.fc+=c.Af));a.Gb-a.jc>a.ip&&(d=a.Wa.firstChild,c=0,a.Vg<a.ob-c&&(c=Bi(a,d,null,a.Vg,c,a.g("colendheadercell"),"width",a.N.fb()?"right":"left",a.ob),a.Vg+=c.zf,a.jc+=c.Af))}else if("right"==b&&d<qi(a)){if(a.dc-a.Ta>a.ip&&(c=a.R.firstChild,e=c.childNodes,c=a.ob+zg(a)+0,!(a.jg<=c||1>e.length)))for(a.Lj&&(a.Lj=!1),d=e[0],f=d.lastChild,
f=Fg(f);a.jg-f>c;){for(h=0;h<e.length;h+=1)k=e[h],a.rc(k.lastChild);a.jg-=f;a.dc-=1;f=d.lastChild;f=Fg(f)}c=a.ob+zg(a)+0;a.Ac-a.fc>a.ip&&(d=a.Na.firstChild,a.Hf>c&&(a.Fi&&(a.Fi=!1),d=Ci(a,d,a.Hf,c,a.g("colheadercell"),"width"),a.Hf-=d.zf,a.Ac-=d.Af));a.Gb-a.jc>a.ip&&(d=a.Wa.firstChild,a.Ug>c&&(a.Ei&&(a.Ei=!1),d=Ci(a,d,a.Ug,c,a.g("colendheadercell"),"width"),a.Ug-=d.zf,a.Gb-=d.Af))}}
function Xg(a){var b,c,d,e;Mg(a)&&((b=a.ob,c=Eg(a)+5,d=a.Sa,e=Bg(a)+5,!(ri(a)<=e)||a.mg&&a.lg&&a.Zg)?pi(a)>d?(b=Math.max(0,Di(a)-a.ri("row")),c=Math.max(0,Di(a)-b),a.fetchHeaders("row",b,a.$,a.oa,c),a.fetchCells(a.R,b,a.Ta,c,a.dc-a.Ta+1)):!(qi(a)<=c)||a.Fi&&a.Ei&&a.Lj?oi(a)>b&&(b=Math.max(0,Ei(a)-a.ri("column")),c=Math.max(0,Ei(a)-b),a.fetchHeaders("column",b,a.Na,a.Wa,c),a.fetchCells(a.R,a.ha,b,a.Ja-a.ha+1,c)):(b=Math.max(0,ti(a)+1),c=Math.max(0,a.ri("column")),a.fetchHeaders("column",b,a.Na,a.Wa,
c),a.fetchCells(a.R,a.ha,b,a.Ja-a.ha+1,c)):(b=Math.max(0,si(a)+1),c=Math.max(0,a.ri("row")),a.fetchHeaders("row",b,a.$,a.oa,c),a.fetchCells(a.R,b,a.Ta,c,a.dc-a.Ta+1)))}function ti(a){return Math.max(Math.max(a.dc,a.Ac),a.Gb)}function Ei(a){return Math.max(Math.max(a.Ta,a.fc),a.jc)}function qi(a){return Math.max(Math.max(a.jg,a.Hf),a.Ug)}function oi(a){return Math.max(Math.max(a.Ci,a.Wg),a.Vg)}function si(a){return Math.max(Math.max(a.Ja,a.Qa),a.Ka)}
function Di(a){return Math.max(Math.max(a.ha,a.bb),a.wb)}function ri(a){return Math.max(Math.max(a.Sb,a.Zb),a.fd)}function pi(a){return Math.max(Math.max(a.Ub,a.vd),a.Ze)}
function Bi(a,b,c,d,e,f,h,k,l){var m,n,p,q,r=0,s=0;m=null==c?b.firstChild:c.nextSibling;if(null==m)return{Af:0,zf:0};n=(p=V(m,f))?m:m.firstChild;for(q=X(n,h);d+q<l-e;){a.rc(m);s+=q;r+=p?1:Gh(a,m,"extent");d+=q;m=null==c?b.firstChild:c.nextSibling;if(null==m)return{Af:r,zf:s};n=(p=V(m,f))?m:m.firstChild;q=X(n,h)}p||(b=Bi(a,m,m.firstChild,d,e,f,h,k,l),ng(a,m,"start",Gh(a,m,"start")+b.Af),ng(a,m,"extent",Gh(a,m,"extent")-b.Af),Y(n,X(n,k)+b.zf,k),Y(n,X(n,h)-b.zf,h),r+=b.Af,s+=b.zf);return{Af:r,zf:s}}
function Ci(a,b,c,d,e,f){var h,k,l,m,n=0,p=0;h=b.lastChild;k=(l=V(h,e))?h:h.firstChild;for(m=X(k,f);c-m>d;)a.rc(h),p+=m,n+=l?1:Gh(a,h,"extent"),c-=m,h=b.lastChild,k=(l=V(h,e))?h:h.firstChild,m=X(k,f);l||(b=Ci(a,h,c,d,e,f),ng(a,h,"extent",Gh(a,h,"extent")-b.Af),Y(k,X(k,f)-b.zf,f),n+=b.Af,p+=b.zf);return{Af:n,zf:p}}
S.prototype.S_=function(a,b,c){var d,e,f;f=a.originalEvent.target;e=di(this,f);"touch"===b&&null!=e&&(d={row:Fi(this,e.parentNode),column:Gi(this,e)},!Hi(this)||!Ii(this,d)||qh(this)&&d.row!=this.t.indexes.row&&d.column!=this.t.indexes.column)&&(this.tb()?Ji(this,a.originalEvent):Ki(this,a.originalEvent));a:{d=this.va;for(var h=f,k=this.J,l,m,n;null!=h&&h!=k;){l=h.nodeName;if(3!=h.nodeType)if(m=parseInt(h.getAttribute("tabIndex"),10),n=parseInt(h.getAttribute(d.xm.N.zb("tabindex")),10),null!=m&&0<=
m)if(V(h,d.xm.N.g("cell"))||V(h,d.xm.N.g("headercell"))||V(h,d.xm.N.g("endheadercell")))break;else{d=!0;break a}else if(l.match(/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/)&&(-1!=m||-1!=n)){d=!0;break a}h=h.parentNode}d=!1}if(!d){if(null!=e)d={row:Fi(this,e.parentNode),column:Gi(this,e)},Hi(this)&&Ii(this,d)?(d=rg(this),f=qh(this)?"keyboard"===b?Li(this,d):Li(this,d,e):Mi(this,d,e)):(d=e,f=Li(this,d));else{e=Ni(this,f);if(null==e)return;f=Mi(this,e);d=e}c.call(null,{capabilities:f,launcher:d},a,b)}};
t("DvtDataGrid.prototype.handleContextMenuGesture",S.prototype.S_,void 0);
function Li(a,b,c){var d,e,f,h=!0,k=!0;d={resize:"disable",resizeWidth:"disable",resizeHeight:"disable",sortRow:"disable",sortCol:"disable",cut:"disable",paste:"disable",sortColAsc:"disable",sortColDsc:"disable"};if(null!=c&&(h=Gi(a,b)===Gi(a,c),k=b.parentNode===c.parentNode,!1===k&&!1===h))return d;c=Oi(a,b,"row");e=Oi(a,b,"column");b=a.N.zb("resizable");f=a.N.zb("sortable");null!=e&&h&&("true"===e.getAttribute(b)&&(d.resize="enable",d.resizeWidth="enable"),"true"===e.getAttribute(f)&&(d.sortCol=
"enable",d.sortColAsc="enable",d.sortColDsc="enable",h=e.getAttribute(a.N.zb("sortDir")),"ascending"===h?d.sortColAsc="disable":"descending"===h&&(d.sortColDsc="disable")));k&&(Pi(a)&&(d.cut="enable",d.paste="enable"),null!=c&&("true"===c.getAttribute(b)&&(d.resize="enable",d.resizeHeight="enable"),"true"===c.getAttribute(f)&&(d.sortRow="enable")));return d}
function Mi(a,b,c){var d,e,f=!0,h=!0,k;d={resize:"disable",resizeWidth:"disable",resizeHeight:"disable",sortRow:"disable",sortCol:"disable",cut:"disable",paste:"disable",sortColAsc:"disable",sortColDsc:"disable"};if(null!=c&&(f=lg(a,b)===Gi(a,c),h=a.Vb(b)===a.Vb(c.parentNode),!1===h&&!1===f))return d;k=Qi(a,b);c=a.N.zb("resizable");e=a.N.zb("sortable");null!==b&&("column"!=k&&"columnEnd"!=k||!f?h&&(Pi(a)&&(d.cut="enable",d.paste="enable"),"true"===b.getAttribute(c)&&(d.resize="enable",d.resizeHeight=
"enable"),d.resizeWidth=Ri(a.Y,k,"width"),"true"===b.getAttribute(e)&&(d.sortRow="enable")):("true"===b.getAttribute(c)&&(d.resizeWidth="enable",d.resize="enable"),d.resizeHeight=Ri(a.Y,k,"height"),"true"===b.getAttribute(e)&&(d.sortCol="enable",d.sortColAsc="enable",d.sortColDsc="enable",a=b.getAttribute(a.N.zb("sortDir")),"ascending"===a?d.sortColAsc="disable":"descending"===a&&(d.sortColDsc="disable"))));d.resize="enable"===d.resizeHeight||"enable"===d.resizeWidth?"enable":"disable";return d}
S.prototype.sD=function(a,b,c){var d;null!=this.t&&(d=rg(this));if(b===this.N.He("resizeHeight")||b===this.N.He("resizeWidth")){if(Si(this)){var e,f,h;f=parseInt(c,10);V(d,this.g("cell"))&&(d=b===this.N.He("resizeHeight")?Oi(this,d,"row"):Oi(this,d,"column"));this.wa=d;c=Fg(d);e=Cg(d);h=V(this.wa,this.g("endheadercell"));b===this.N.He("resizeWidth")?c!==f&&(V(this.wa,this.g("colheadercell"))||V(this.wa,this.g("colendheadercell"))?Ti(this,this.wa)&&Ui(this,c,f):Vi(this,f-c,h)):b===this.N.He("resizeHeight")&&
(e=Cg(d),e!==f&&(V(this.wa,this.g("colheadercell"))||V(this.wa,this.g("colendheadercell"))?Wi(this,f-e,h):Ti(this,this.wa)&&Xi(this,e,f)));b=Fg(d);d=Cg(d);if(b!=c||d!=e)a={event:a,ui:{header:this.Vb(this.wa),oldDimensions:{width:c,height:e},newDimensions:{width:b,height:d},size:f}},this.fireEvent("resize",a),gh(this),ah(this.va)&&Yi(this);this.qu=this.wa=null}}else b===this.N.He("sortColAsc")||b===this.N.He("sortColDsc")?(b=b===this.N.He("sortColAsc")?"ascending":"descending",V(d,this.g("cell"))&&
(d=Oi(this,d,"column")),Zi(this,d)&&(null==d||bh(this)||$i(this,a,d,b))):b===this.N.He("sortRowAsc")||b===this.N.He("sortRowDsc")?(b=b===this.N.He("sortRowAsc")?"ascending":"descending",V(d,this.g("cell"))&&(d=Oi(this,d,"row")),Zi(this,d)&&(null==d||bh(this)||$i(this,a,d,b))):b===this.N.He("cut")?this.pw(a,d):b===this.N.He("paste")?this.qw(a,d):b===this.N.He("discontiguousSelection")&&aj(this,c)};t("DvtDataGrid.prototype.handleContextMenuReturn",S.prototype.sD,void 0);g=S.prototype;
g.zw=function(a,b){var c,d;c=this.ua.getCapability("sort");d=eg(this.Y,"sortable",a,b);d=null!=d?d:!1;return"enable"!==d&&"auto"!==d||"full"!==c&&c!==a?!1:!0};function Zi(a,b){if(null==b)return!1;var c=Ni(a,b);return null==c?!1:"true"==c.getAttribute(a.N.zb("sortable"))}g.tb=function(){return"none"!=bj(this.Y)};function Hi(a){return"multiple"==bj(a.Y)}
function Si(a){return Ri(a.Y,"row","width")||Ri(a.Y,"row","height")||Ri(a.Y,"column","width")||Ri(a.Y,"column","height")||Ri(a.Y,"rowEnd","width")||Ri(a.Y,"rowEnd","height")||Ri(a.Y,"columnEnd","width")||Ri(a.Y,"columnEnd","height")}function mg(a,b,c){return"column"==b||"columnEnd"==b?(a=Ri(a.Y,b,"width",c),"enable"==a?!0:!1):"row"==b||"rowEnd"==b?(a=Ri(a.Y,b,"height",c),"enable"==a?!0:!1):!1}g.uM=function(a){Si(this)&&!1==this.ly&&this.Xx(a)};g.Y_=function(a){this.Sc?cj(this,a):this.zi||this.uM(a)};
g.R_=function(a){this.zi||this.uM(a)};
g.uD=function(a){var b,c,d;this.Dn();d=a.target;if(dj(this)&&(b=rg(this),!1==ej(this,a,b,!1)))return;if(0===a.button){if((V(d,this.g("sortascending"))||V(d,this.g("sortdescending")))&&Zi(this,d)){a.preventDefault();bh(this)||cg(d,this.g("selected"));return}Si(this)&&(c=fj(this,a));b=this.find(d,"row");!this.zi&&gj(this,b)&&(this.Sc=!0,this.Ie=a.pageX,this.Hd=a.pageY,c=!0)}this.zi||(this.J.contains(document.activeElement)&&document.activeElement!==this.J||(this.ml=!0),b=Ni(this,a.target),null!=b&&
(this.tb()&&this.ph(a),this.yb(b,a)));!0===c&&a.preventDefault()};g.mia=function(a){this.Sc?hj(this,a,!1):Si(this)&&ij(this,a);this.Sc=!1};g.wD=function(a){var b=a.target;cg(Ni(this,b),this.g("hover"));Zi(this,b)&&!bh(this)&&(a=a.target,(b=Ni(this,a))&&jj(this,b,!1),(V(a,this.g("sortascending"))||V(a,this.g("sortdescending")))&&cg(a,this.g("hover")))};
g.vD=function(a){var b=a.target;W(Ni(this,b),this.g("hover"));if(Zi(this,b)){var c;!bh(this)&&(b=a.target,c=a.relatedTarget,a=Ni(this,b),null!=a&&null!=c&&a===Ni(this,c)||jj(this,a,!0),V(b,this.g("sortascending"))||V(b,this.g("sortdescending")))&&(W(b,this.g("hover")),W(b,this.g("selected")))}};g.V_=function(a){this.Sc&&hj(this,a,!0)};g.tD=function(a){var b=a.target;(V(b,this.g("sortascending"))||V(b,this.g("sortdescending")))&&Zi(this,b)&&(kj(this,a),a.preventDefault())};
g.aia=function(a){var b,c,d;d=a.target;b=di(this,d);if(null==b)this.iN=!0;else{if(dj(this))if(c=rg(this),b!=c){if(!1==ej(this,a,c,!1))return}else return;else this.Dn();0===a.button&&gj(this,this.find(d,"row"))&&(this.Sc=!0,this.Ie=a.pageX,this.Hd=a.pageY);this.J.contains(document.activeElement)&&document.activeElement!==this.J||(this.ml=!0);lj(this)&&(this.ir=!ci(this,d));this.tb()?(Ji(this,a),Hi(this)&&0===a.button&&(this.ly=!0)):Ki(this,a)}};
g.cia=function(a){var b,c;this.Sc||(b=mj(this.Y),c=a.target,a=this.find(c,"row"),"cell"===b?W(di(this,c),this.g("hover")):"row"===b&&W(a,this.g("hover")))};g.dia=function(a){var b,c;this.Sc||(b=mj(this.Y),c=a.target,a=this.find(c,"row"),"cell"===b?cg(di(this,c),this.g("hover")):"row"===b&&cg(a,this.g("hover")))};g.Zha=function(a){var b,c;lj(this)&&(b=a.target,b=di(this,b),c=Ai(this),"edit"==c&&this.RI(a,b),this.QI(0,b),this.iB(a,b))};g.bia=function(a){this.Sc?cj(this,a):this.ly&&nj(this,a)};
g.eia=function(a){this.ly=!1;this.Sc&&hj(this,a,!0)};g.$ha=function(a){var b,c;this.fireEvent("keydown",{event:a,ui:{rowKey:oj(this)}})&&(b=null!=this.t&&"header"==this.t.type?pj(this,a,this.t.axis):pj(this,a,"cell"),c=rg(this),null!=b&&b.call(this,a,c)&&a.preventDefault())};
function qj(a,b){var c,d;if(b){c=qj(a,b.offsetParent);d=b.offsetParent;var e,f;d?(d=document.defaultView.getComputedStyle(d,null),d=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("-moz-transform")||d.getPropertyValue("-ms-transform")||d.getPropertyValue("-o-transform")||d.getPropertyValue("transform"),e=d.substr(7,d.length-8).split(", "),d=isNaN(parseInt(e[4],10))?0:parseInt(e[4],10),f=isNaN(parseInt(e[5],10))?0:parseInt(e[5],10),e=isNaN(parseInt(e[6],10))?0:parseInt(e[6],10),d=[d,f,
e]):d=[0,0,0];return[parseInt(c[0],10)+parseInt(b.offsetLeft,10)+d[0],parseInt(c[1],10)+parseInt(b.offsetTop,10)+d[1]]}return[0,0]}g.sM=function(a){a.preventDefault();var b=0,c=0,d,b=a.deltaMode;if(b==a.DOM_DELTA_PIXEL)d=-1;else if(b==a.DOM_DELTA_LINE||b==a.DOM_DELTA_PAGE)d=-40;b=a.deltaX*d;c=a.deltaY*d;a={deltaX:b,deltaY:c};hi(this,a.deltaX,a.deltaY)};
g.ria=function(a){var b,c;b=a.touches.length;c=a.touches[0].target;if(1==b){this.Xg=a.touches[0].pageX;this.Yg=a.touches[0].pageY;this.Ie=this.Xg;this.Hd=this.Yg;this.dr=this.Xg;this.Mm=this.Yg;this.su=(new Date).getTime();this.Ko=!0;if(Hi(this)){if(c.className===this.g("selectaffordancetop")||c.className===this.g("selectaffordancebottom"))c=c.parentNode;if(a=c===this.Ke?"top":c===this.hg?"bottom":null)this.Fy=!0,b=this.re(),this.c1="top"===a?b[b.length-1].endIndex:b[b.length-1].startIndex}!this.Fy&&
gj(this,this.find(c,"row"))&&(this.Sc=!0)}else this.Xt(a)};g.qia=function(a){var b,c,d;d=a.target;this.Ko?(a.preventDefault(),this.Ie=a.touches[0].pageX,this.Hd=a.touches[0].pageY,b=this.Ie-this.dr,c=this.Hd-this.Mm,this.N.fb()&&(b*=-1),this.Fy?nj(this,a):this.Sc?(rj(this),cj(this,a)):dj(this)?(a=rg(this),di(this,d)!=a&&sj(this,b,c)):sj(this,b,c),this.dr=this.Ie,this.Mm=this.Hd):this.Xt(a)};
g.pia=function(a){var b,c;c=a.target;if(dj(this))if(b=rg(this),di(this,c)!=b)ej(this,a,b,!1);else{this.Xt(a);return}else this.Dn();null!=this.bE&&250>this.su-this.bE&&this.W0===c?(this.W0=this.bE=null,b=di(this,c),null!=b&&(this.QI(0,b),this.iB(a,b),a.preventDefault())):(this.W0=a.target,this.bE=(new Date).getTime());if(this.Ko&&!a.defaultPrevented)if(this.Fy)a.preventDefault(),this.Fy=!1;else{b=this.bE-this.su;if(this.Ie==this.Xg&&this.Hd==this.Yg){this.Sc=!1;this.tb()&&750>b?Ji(this,a):Ki(this,
a);return}if(this.Sc){a.preventDefault();this.Sc=!1;hj(this,a,!0);return}tj(this,a)}this.Xt(a)};function uj(a,b,c,d,e,f){var h;a-=b;c=Math.abs(a)/c;a=c*c/.0012*(0>a?-1:1);b=c/6E-4;f&&(a*=-1);d-a>e?(h=Math.max(-50,a),a=d-e,b=(e-d)/c):0>d-a&&(h=Math.min(50,a),a=d,b=d/c);return{bD:Math.round(a),duration:Math.min(Math.max(100,b),500),xu:h}}g.Xt=function(a){this.Sc&&(hj(this,a,!1),this.Sc=!1);this.c1=null;this.Ko=this.Fy=!1;this.su=this.Hd=this.Ie=this.Mm=this.dr=this.Yg=this.Xg=0};
g.zD=function(a){var b,c,d;this.Mia=(new Date).getTime();c=a.touches.length;d=a.target;1==c?(this.Xg=a.touches[0].pageX,this.Yg=a.touches[0].pageY,this.Ie=this.Xg,this.Hd=this.Yg,this.dr=this.Xg,this.Mm=this.Yg,this.Ko=!0,b=Ni(this,d),setTimeout(function(){this.Ko&&!this.zi&&this.Ie==this.Xg&&this.Hd==this.Yg&&(rj(this),this.yb(b,a,!0))}.bind(this),300),Si(this)&&(this.Xx(a),fj(this,a)),!this.zi&&gj(this,this.find(d,"row"))&&(this.Sc=!0)):this.Wt(a)};
g.yD=function(a){var b,c;this.Ko?(a.preventDefault(),this.Ie=a.touches[0].pageX,this.Hd=a.touches[0].pageY,b=this.Ie-this.dr,c=this.Hd-this.Mm,this.zi&&Si(this)?this.Xx(a):this.Sc?(rj(this),cj(this,a)):(a=a.target,a=Ni(this,a),a=Qi(this,a),"column"==a||"columnEnd"==a?sj(this,b,0):sj(this,0,c)),this.dr=this.Ie,this.Mm=this.Hd):this.Xt(a)};
g.xD=function(a){var b,c;b=(new Date).getTime()-this.Mia;this.Ko&&!a.defaultPrevented&&(c=a.target,this.zi&&Si(this)?(ij(this,a),this.Ie!=this.Xg&&this.Hd!=this.Yg&&a.preventDefault()):this.Ie==this.Xg&&this.Hd==this.Yg&&300>b?Zi(this,c)&&(a.preventDefault(),kj(this,a),rj(this)):this.Sc?(a.preventDefault(),this.Sc=!1,hj(this,a,!0)):(b=Ni(this,c),tj(this,a,Qi(this,b))));this.Wt(a)};g.Wt=function(a){this.Sc&&(hj(this,a,!1),this.Sc=!1);this.Ko=!1;this.Hd=this.Ie=this.Mm=this.dr=this.Yg=this.Xg=0};
function sj(a,b,c){var d=(new Date).getTime();ii(a);hi(a,b,c);300<d-a.su&&(a.Xg=a.Ie,a.Yg=a.Hd,a.su=(new Date).getTime())}
function tj(a,b,c){var d,e,f,h;d=(new Date).getTime()-a.su;e=a.N.fb();f=a.Ie-a.Xg;h=a.Hd-a.Yg;e&&(f*=-1);10>Math.abs(f)&&10>Math.abs(h)&&200>d?(b.preventDefault(),a.tb()&&wi(a)):400>d&&(b.preventDefault(),"row"!=c&&"rowEnd"!=c?(b=uj(a.Ie,a.Xg,d,a.ob,a.hr,e),!isNaN(b.xu)&&(0<b.xu||a.Lj)&&(a.py=-1*b.xu)):(b={duration:0,bD:0},f=0),"column"!=c&&"columnEnd"!=c?(c=uj(a.Hd,a.Yg,d,a.Sa,a.er),!isNaN(c.xu)&&(0<c.xu||a.Zg)&&(a.WD=-1*c.xu)):(c={duration:0,bD:0},h=0),d=Math.max(b.duration,c.duration),a.R.firstChild.style.webkitTransitionDuration=
d+"ms",a.$.firstChild.style.webkitTransitionDuration=d+"ms",a.Na.firstChild.style.webkitTransitionDuration=d+"ms",a.oa.firstChild.style.webkitTransitionDuration=d+"ms",a.Wa.firstChild.style.webkitTransitionDuration=d+"ms",hi(a,f+b.bD,h+c.bD))}g.fireEvent=function(a,b){var c;if(null!=a&&null!=b)return c=this.callbacks[a],null!=c?c(b):!0};g.addListener=function(a,b){this.callbacks[a]=b};t("DvtDataGrid.prototype.addListener",S.prototype.addListener,void 0);function ch(a,b){a.style.height=b+"px"}
function Cg(a){return X(a,"height")}function dh(a,b){a.style.width=b+"px"}function Fg(a){return X(a,"width")}function Y(a,b,c){a.style[c]=b+"px"}
function X(a,b){var c;if(-1<a.style[b].indexOf("px")&&-1==a.style[b].indexOf("e"))return parseFloat(a.style[b]);document.body.contains(a)?c=Math.round(a["offset"+b.charAt(0).toUpperCase()+b.slice(1)]):(a.style.visibility="hidden",document.body.appendChild(a),c=Math.round(a["offset"+b.charAt(0).toUpperCase()+b.slice(1)]),document.body.removeChild(a),a.style.visibility="");return c}var vi=3;
function ui(a,b){var c,d;c=b.row;d=b.column;return-1===c&&-1===d?-1:-1===c?d<a.Ta?1:d>a.dc?2:vi:-1===d?c<a.ha?1:c>a.Ja?2:vi:d>=a.Ta&&d<=a.dc&&c>=a.ha&&c<=a.Ja?vi:-1}function vj(a,b){return!a.If||a.ou||a.du||a.hN?(null==a.Lm&&(a.Lm=[]),a.Lm.push(b),!0):!1}g=S.prototype;
g.X_=function(a,b){var c,d,e,f,h,k,l,m;if(void 0!==b||!vj(this,a)){c=a.operation;d=a.keys;l=a.source;k=a.indexes;e=a.result;f=a.header;h=a.endheader;m=a.silent;this.hN=!0;if("insert"===c)if(wj(this,c,k),xj(this,c,d,k),null!=e){var n,p,q,r,s,u;m=e.getStart("row");d=e.getCount("row");k=e.getStart("column");c=e.getCount("column");if(yj()){if(null!=f)for(n=document.createDocumentFragment(),p=f.getCount(),c=l=0,r=this.g("row")+" "+this.g("headercell")+" "+this.g("rowheadercell"),s=Bh(this.Y,"row");0<p-
c;)q=m+c,q=Ch(this,n,q,0,0,this.Ub+l,!0,m!=this.Qa+1&&c!=d-1,s,f,"row",r,this.vb),c+=q.count,l+=q.totalHeight;if(null!=h)for(u=document.createDocumentFragment(),f=h.getCount(),c=l=0,r=this.g("row")+" "+this.g("endheadercell")+" "+this.g("rowendheadercell"),s=Bh(this.Y,"rowEnd");0<f-c;)q=m+c,q=Ch(this,u,q,0,0,this.Ub+l,!0,m!=this.Ka+1&&c!=d-1,s,h,"rowEnd",r,this.vc),c+=q.count,l+=q.totalHeight;h=document.createDocumentFragment();q=Jh(this,h,!0,this.Ub,m,d,k,!1,e);Uh(this,h,n,u,m,q.totalRowHeight)}else n=
{axis:"row",start:m,count:d},u={axis:"column",start:k,count:c},null!=f&&(m={axis:"row",header:this.$,endHeader:this.oa,start:m,count:f.getCount()},this.ec.row=m,this.rU(f,m,h)),this.jU(e,[n,u])}else m=ui(this,k),m===vi||2===m&&k.row==this.Ja+1?null!=d.row&&(bh(this)?(this.empty(),this.refresh(this.J)):(this.fetchHeaders("row",k.row,this.$,this.oa,1,{success:this.rU}),this.fetchCells(this.R,k.row,this.Ta,1,this.dc-this.Ta+1,{success:this.jU}))):(1===m&&(this.ha++,this.bb++,this.Ja++,this.Qa++,this.Ub+=
this.gb,this.vd+=this.gb,this.Sb+=this.gb,this.Zb+=this.gb,m=this.R.firstChild.firstChild,null!=m&&Kh(m,this.gb),m=this.$.firstChild.firstChild,null!=m&&Kh(m,this.gb),m=this.oa.firstChild.firstChild,null!=m&&Kh(m,this.gb)),Oh(this,k));else if("update"===c)ui(this,k)===vi&&(-1!=this.Qa&&this.fetchHeaders("row",k.row,this.$,this.oa,1,{success:this.faa,error:this.W_}),this.fetchCells(this.R,k.row,this.Ta,1,this.dc-this.Ta+1,{success:this.q$,error:this.rD}));else if("delete"===c)if(wj(this,c,k),xj(this,
c,d,k),l&&zj&&l instanceof zj&&yj())Aj(this,d);else{e=k;h=d;Array.isArray(h)||(h=Array(h),e=Array(e));for(f=l=c=d=k=u=0;f<h.length;f++)q=h[f],r=e[f],null!=q.row&&(n=0,q=q.row,r=ui(this,r),1===r?(c++,u+=this.gb,this.Ub-=this.gb,this.Sb-=this.gb,-1!=this.Qa&&(this.vd-=this.gb,this.Zb-=this.gb),s=this.R.firstChild.firstChild,null!=s&&Kh(s,-this.gb),s=this.$.firstChild.firstChild,null!=s&&Kh(s,-this.gb),q=this.oa.firstChild.firstChild,null!=q&&Kh(q,-this.gb)):r===vi?(l++,s=rh(this,q),null!=s&&(n=$h(this,
s),r=s.nextSibling,this.rc(s),Kh(r,-n),this.Sb-=n),s=Bj(this,q,this.$,this.g("rowheadercell")),null!=s&&(n=Cj(this,s),r=s.nextSibling,this.rc(s),Kh(r,-n),this.Zb-=n),q=Bj(this,q,this.oa,this.g("rowendheadercell")),null!=q&&(n=Cj(this,q),r=q.nextSibling,this.rc(q),Kh(r,-n),this.fd-=n),k+=n):"scroll"===xg(this.Y)&&(d+=this.gb));this.ha-=c;this.Ja=this.Ja-c-l;-1!=this.Qa&&(this.bb-=c,this.Qa=this.Qa-c-l);-1!=this.Ka&&(this.wb-=c,this.Ka=this.Ka-c-l);h=u+k+d;e=this.R.firstChild;h=Cg(e)-h;ch(e,h);Wg(this);
m||!0==this.wy||(this.By=!0,this.Zg=!1,-1!=this.Qa&&(this.mg=!1),-1!=this.Ka&&(this.lg=!1),Xg(this));dg(this)}else"refresh"===c||"reset"===c?(m=this.Vt(),"visible"===m?(this.empty(),null!=this.J.offsetParent?this.refresh(this.J):this.Sj("refresh")):"hidden"===m&&(this.empty(),this.Sj("refresh"))):"sync"===c&&Dj(this,a);this.hN=!1}};
function wj(a,b,c){var d,e,f,h,k=0;if(null!=a.t){if("cell"==a.t.type)h=!1,d=a.t.indexes.row;else if("row"===a.t.axis)h=!0,d=a.t.index;else return;Array.isArray(c)||(c=Array(c));if(!0===a.wy){if("insert"===b){h?a.t.index=c[0].row:a.t.indexes.row=c[0].row;return}if("delete"===b&&c[0].row===d)return}k="insert"===b?1:-1;for(e=0;e<c.length;e++)f=c[e].row,f<d?h?a.t.index+=k:a.t.indexes.row+=k:f===d&&"delete"===b&&a.yb(null)}}
function xj(a,b,c,d){var e,f,h,k,l,m,n,p,q,r,s;Array.isArray(c)||(c=Array(c));Array.isArray(d)||(d=Array(d));e=a.re();if(null==c||null==d||c.length!=d.length||0==e.length)a.wy&&"insert"==b&&(a.tb()&&qh(a)&&(b="cell"==mj(a.Y)?a.createRange(a.t.indexes,a.t.indexes,c[0],c[0]):a.createRange(d[0],d[0],c[0],c[0]),a.Bc=a.t.indexes,e.push(b)),a.wy=!1);else for(s="insert"===b?1:-1,f=0;f<c.length;f++)for(h=c[f].row,k=d[f].row,l=e.length;l--;)m=e[l],n=m.startKey.row,p=m.endKey.row,q=m.startIndex.row,r=m.endIndex.row,
n==h?p==h&&"delete"==b?e.splice(l,1):(n=a.Vb(a.R.firstChild.childNodes[m.startIndex.row+1-a.ha]),m.startKey.row=n,m.endIndex.row+=s):p==h?(n=a.Vb(a.R.firstChild.childNodes[m.endIndex.row-1-a.ha]),m.endKey.row=n,m.endIndex.row+=s):k<q?(m.startIndex.row+=s,m.endIndex.row+=s):k<r&&(m.endIndex.row+=s)}g.jU=function(a,b){this.If=!1;this.rM(a,b,this.Ja>=b[0].start);this.rK(b[0].start);wg(this)||Th(this,"top");dg(this);this.Zg=!1;-1!=this.Qa&&(this.mg=!1);-1!=this.Ka&&(this.lg=!1);Xg(this)};
g.rU=function(a,b,c){this.By=!0;this.AD(a,b,c,this.Qa>=b.start)};g.rK=function(a){var b,c;b=this.R.firstChild.childNodes[a-this.ha];null!=b&&(c=this.Sa,a=Bg(this),b=b.offsetTop,c-=b,0<c?hi(this,0,c):(c=a-b,0>c&&hi(this,0,c)))};
g.faa=function(a,b,c){this.ec[b.axis]=!1;b=b.start;Ej(this.rZ.bind(this),a,this.$,b-this.bb);Ej(this.qZ.bind(this),c,this.oa,b-this.wb);a=this.$.firstChild.childNodes[b-this.bb];null==this.t||"header"!==this.t.type||"row"!==this.t.axis&&"rowEnd"!==this.t.axis||this.Vb(a)!==this.t.key||Rh(this);tg(this)};function Ej(a,b,c,d){null!=b&&(a=a(c,b,d,1,!0,!0),c=c.firstChild,d=c.childNodes[d],c.replaceChild(a,d))}
g.q$=function(a,b){var c,d,e,f;this.ec.cells=!1;c=b[0].start;d=this.R.firstChild;e=Bh(this.Y,"cell");f=bg(this.Y);Zh(this.Y);c-=this.ha;Fj(this,a,d.childNodes[c],c,e,this.Ta,f);tg(this)};
function Fj(a,b,c,d,e,f,h){var k,l;yj()?(sg(a),l=function(){c.style.left="";Gj(c);c.removeEventListener("transitionend",l,!1);a.tb()&&Sh(a);Rh(a);tg(a)},c.addEventListener("transitionend",l),k=Fg(a.R),Y(c,k,"left"),a.va.empty(c),Lh(a,b,c,d,e,!0,f,!1,h),a.Fm(),Xh(c,"250ms",0,"linear",-1*k,0)):(a.va.empty(c),Lh(a,b,c,d,e,!0,f,!1,h),a.tb()&&Sh(a),Rh(a))}
function Aj(a,b){var c,d,e,f,h,k,l,m,n,p,q,r,s,u,v,y,z,B;sg(a);c=a.ou?1:400;p=[];s=0;z=-1==a.Qa?!1:!0;B=-1==a.Ka?!1:!0;d=a.R.firstChild;e=rh(a,b[0].row).previousSibling;X(e,"top");for(n=e;n&&!(X(n,"top")<a.Sa);)Vh(n,Wh("z-index"),10),n=n.previousSibling;if(z)for(q=[],f=Bj(a,b[0].row,a.$,a.g("rowheadercell")).previousSibling,X(f,"top"),n=f;n&&!(X(n,"top")<a.Sa);)Vh(n,Wh("z-index"),10),n=n.previousSibling;if(B)for(r=[],h=Bj(a,b[0].row,a.oa,a.g("rowendheadercell")).previousSibling,X(h,"top"),n=h;n&&
!(X(n,"top")<a.Sa);)Vh(n,Wh("z-index"),10),n=n.previousSibling;for(l=0;l<b.length;l++)m=b[l].row,n=rh(a,m),null!=n&&(p.push(n),s+=Cg(n),Y(n,X(n,"top")-s,"top"),Xh(n,0,0,"linear",0,s)),z&&(u=Bj(a,m,a.$,a.g("rowheadercell")),null!=u&&(q.push(u),Y(u,X(u,"top")-s,"top"),Xh(u,0,0,"linear",0,s))),B&&(v=Bj(a,m,a.oa,a.g("rowendheadercell")),null!=v&&(r.push(v),Y(v,X(v,"top")-s,"top"),Xh(v,0,0,"linear",0,s)));for(;n.nextSibling;)n=n.nextSibling,Y(n,X(n,"top")-s,"top"),Xh(n,0,0,"linear",0,s),z&&(u=u.nextSibling,
Y(u,X(u,"top")-s,"top"),Xh(u,0,0,"linear",0,s)),B&&(v=v.nextSibling,Y(v,X(v,"top")-s,"top"),Xh(v,0,0,"linear",0,s));k=d.lastChild;y=function(){var b;for(b=0;b<p.length;b++)a.rc(p[b]),z&&a.rc(q[b]),B&&a.rc(r[b]);ch(d,a.Sb-a.Ub);Wg(a);dg(a);Xg(a);Yh(a);k.removeEventListener("transitionend",y,!1)};k.addEventListener("transitionend",y,!1);a.Ja-=p.length;a.Sb-=s;a.Zg=!1;z&&(a.Qa-=q.length,a.Zb-=s,a.mg=!1);B&&(a.Ka-=q.length,a.fd-=s,a.lg=!1);a.du=!0;n=e.nextSibling;z&&(u=f.nextSibling);B&&(v=h.nextSibling);
setTimeout(function(){for(;n;)Xh(n,c+"ms",0,"ease-out",0,0),n=n.nextSibling,z&&(Xh(u,c+"ms",0,"ease-out",0,0),u=u.nextSibling),B&&(Xh(v,c+"ms",0,"ease-out",0,0),v=v.nextSibling)},0)}
function Yh(a){var b,c,d,e;c=a.R.firstChild;d=a.$.firstChild;e=a.oa.firstChild;for(b=0;b<c.childNodes.length;b++)Gj(c.childNodes[b]),Vh(c.childNodes[b],Wh("z-index"),null,"remove"),-1!=a.Qa&&(Gj(d.childNodes[b]),Vh(d.childNodes[b],Wh("z-index"),null,"remove")),-1!=a.Ka&&(Gj(e.childNodes[b]),Vh(e.childNodes[b],Wh("z-index"),null,"remove"));a.du=!1;tg(a);Yg(a)}
function rh(a,b){var c,d,e,f;if(null==a.R||null==a.R.firstChild)return null;c=a.R.firstChild.childNodes;for(e=0;e<c.length;e++)if(d=c[e],f=a.Vb(d),f==b)return d;return null}function Bj(a,b,c,d){var e,f;if(null==c)return null;c=c.getElementsByClassName(d);for(e=0;e<c.length;e++)if(d=c[e],f=a.Vb(d),f==b)return d;return null}
function Dj(a,b){var c;c=b.pageSize;a.ec={};a.ha=0;a.Ja=-1;a.bb=0;a.Qa=-1;a.wb=0;a.Ka=-1;a.Ub=0;a.Sb=0;a.vd=0;a.Zb=0;a.Ze=0;a.fd=0;a.Ta=0;a.dc=-1;a.fc=0;a.Ac=-1;a.jc=0;a.Gb=-1;a.Ci=0;a.jg=0;a.Wg=0;a.Hf=0;a.Vg=0;a.Ug=0;a.vb=void 0;a.Qb=void 0;a.vc=void 0;a.Hc=void 0;a.gb=void 0;a.ke=void 0;a.uy=void 0;a.ty=void 0;a.Zg=!1;a.mg=!1;a.lg=!1;a.Lj=!1;a.Fi=!1;a.Ei=!1;a.Io=null;a.t=null;a.Td=null;null!=a.yi&&(a.J.removeChild(a.yi),a.yi=null);uh(a.$);uh(a.Na);uh(a.oa);uh(a.Wa);a.If=!1;a.fetchHeaders("row",
0,a.$,a.oa,c,{success:function(a,b,c){xi(this,a,b,c)}});a.fetchHeaders("column",0,a.Na,a.Wa,void 0,{success:function(a,b,c){yi(this,a,b,c)}});a.fetchCells(a.R,0,0,c,null,{success:function(a,b){zi(this,a,b)}});pg(a)}g.lm=function(a,b,c){return this.yb(Hj(this,a),b,c)};
function fg(a,b,c){var d,e;if(null==b)a.yb(null,null,null,!0);else if(null!=b.keys)a:{b=b.keys;d=rh(a,b.row);if(null!=d)for(d=d.childNodes,e=0;e<d.length;e++)if(d[e][a.N.zb("context")].keys.column===b.column){e=d[e];break a}e=null}else null!=b.indexes?e=Hj(a,b.indexes):null!=b.axis&&(d=null==b.level?0:b.level,"column"==b.axis?null!=b.key?e=Bj(a,b.key,a.Na,a.g("colheadercell")):null!=b.index&&(e=a.Da(b.index,d,a.Na,a.Qb,a.fc)):"row"==b.axis?null!=b.key?e=Bj(a,b.key,a.$,a.g("rowheadercell")):null!=
b.index&&(e=a.Da(b.index,d,a.$,a.vb,a.bb)):"columnEnd"==b.axis?null!=b.key?e=Bj(a,b.key,a.Wa,a.g("colendheadercell")):null!=b.index&&(e=a.Da(b.index,d,a.Wa,a.Hc,a.jc)):"rowEnd"==b.axis&&(null!=b.key?e=Bj(a,b.key,a.oa,a.g("rowendheadercell")):null!=b.index&&(e=a.Da(b.index,d,a.oa,a.vc,a.wb))));null!=e&&(c||(a.ir=!1),a.yb(e,null,null,!0))}
g.yb=function(a,b,c,d){if(null!=a){var e=Ij(this,a);if(Jj(e,this.t)&&(d||Kj(this,e,this.t,b))){this.Td=this.t;this.t=e;this.ir&&Lj(this,e);c&&this.tb()&&this.ph(b);Mj(this,this.Td);Nj(this,this.t,this.Td);var f,h,k,l,m;a=this.g("draggable");f=oj(this);h=oj(this,!0);c=rh(this,f);k=rh(this,h);l=this.g("rowheadercell");m=this.g("rowendheadercell");V(k,a)&&(W(k,a),k=Bj(this,h,this.$,l),V(k,a)&&W(k,a),k=Bj(this,h,this.oa,m),V(k,a)&&W(k,a));gj(this,c)&&(h=Bj(this,f,this.$,l),f=Bj(this,f,this.oa,m),cg(c,
a),cg(h,a),cg(f,a));lj(this)&&qg(this,"");d||this.fireEvent("currentCell",{event:b,ui:e});return!0}}else if(!this.Bi&&!this.tl){if(d||Kj(this,e,this.t,b))this.Td=this.t,this.t=null,Mj(this,this.Td),d||this.fireEvent("currentCell",{event:b,ui:e});return!0}return!1};
function Ij(a,b){var c=b[a.N.zb("context")];return V(b,a.g("headercell"))||V(b,a.g("endheadercell"))?{type:"header",axis:c.axis,index:lg(a,b),key:c.key,level:c.level}:{type:"cell",indexes:{row:Fi(a,b.parentNode),column:Gi(a,b)},keys:{row:c.keys.row,column:c.keys.column}}}function rg(a){return Oj(a,a.t)}
function Oj(a,b){var c;if(null!=b)if("header"==b.type){if("row"===b.axis)return Bj(a,b.key,a.$,a.g("rowheadercell"));if("column"===b.axis)return Bj(a,b.key,a.Na,a.g("colheadercell"));if("rowEnd"===b.axis)return Bj(a,b.key,a.oa,a.g("rowendheadercell"));if("columnEnd"===b.axis)return Bj(a,b.key,a.Wa,a.g("colendheadercell"))}else if(c=Pj(a,a.createRange(b.indexes)),null!=c)return c[0];return null}
function Jj(a,b){if(null!=a||null!=b){if(null==a&&null!=b||null!=a&&null==b||a.type!=b.type)return!0;if("header"==a.type){if(a.index!=b.index||a.key!=b.key||a.axis!=b.axis||a.level!=b.level)return!0}else if(a.indexes.row!=b.indexes.row||a.indexes.column!=b.indexes.column||a.keys.row!=b.keys.row||a.keys.column!=b.keys.column)return!0}return!1}function Kj(a,b,c,d){return a.fireEvent("beforeCurrentCell",{event:d,ui:{currentCell:b,previousCurrentCell:c}})}
function qh(a){return null!=a.t&&"cell"==a.t.type}function Ki(a,b){var c;c=di(a,b.target);null!=c&&a.yb(c,b)}function Lj(a,b){"header"===b.type?Ph(a,b):Oh(a,b.indexes)}function Hj(a,b){var c=Pj(a,a.createRange(b));return null!=c?c[0]:null}function Fi(a,b){for(var c=a.ha;b.previousSibling;)c+=1,b=b.previousSibling;return c}function Gi(a,b){for(var c=a.Ta;b.previousSibling;)c+=1,b=b.previousSibling;return c}
function lg(a,b){var c,d;switch(Qi(a,b)){case "column":c=a.Qb;d=a.fc;break;case "row":c=a.vb;d=a.bb;break;case "columnEnd":c=a.Hc;d=a.jc;break;case "rowEnd":c=a.vc;d=a.wb;break;default:return-1}if(1<c){c=Gh(a,b.parentNode,"start");if(b===b.parentNode.firstChild)return c;c--}else c=d;for(;b.previousSibling;)c+=1,b=b.previousSibling;return c}
function Qi(a,b){return V(b,a.g("colheadercell"))?"column":V(b,a.g("rowheadercell"))?"row":V(b,a.g("rowendheadercell"))?"rowEnd":V(b,a.g("colendheadercell"))?"columnEnd":null}
function Qj(a,b){var c;if(V(b,a.g("colheadercell"))){if(1===a.Qb)return 0}else if(V(b,a.g("rowheadercell"))){if(1===a.vb)return 0}else if(V(b,a.g("colendheadercell"))){if(1===a.Hc)return 0}else if(V(b,a.g("rowendheadercell"))&&1===a.vc)return 0;c=Gh(a,b.parentNode,"level");return b===b.parentNode.firstChild?c:c+mh(a,b.parentNode.firstChild)}function mh(a,b){return Gh(a,b,"depth")}function di(a,b){return a.find(b,"cell")}
g.find=function(a,b,c){if(null==a||a==this.Sg())return null;void 0==c&&(c=this.g(b));return null==c?null:V(a,c)?a:this.find(a.parentNode,b,c)};function Rh(a){Nj(a,a.t,a.Td,void 0)}function Nj(a,b,c,d){null==d&&Rj(a.va)&&(d=["offsetOutline"]);if(null!=b){var e=Oj(a,b);null!=e&&(a.E0(e),null!=d&&Sj(a,e,d),a.lt(b,c,e))}}function Mj(a,b,c){null==c&&Rj(a.va)&&(c=["offsetOutline"]);null!=b&&(b=Oj(a,b),null!=b&&(a.F0(b),null!=c&&Tj(a,b,c),a.At(b)))}
function Sj(a,b,c){var d,e;for(e=0;e<c.length;e++)d=a.g(c[e]),cg(b,d)}function Tj(a,b,c){var d,e;for(e=0;e<c.length;e++)d=a.g(c[e]),W(b,d)}
g.lt=function(a,b,c){var d,e,f,h;"header"==a.type?(null==b||"header"!=b.type||this.ml||("row"===b.axis&&1<this.vb?e=this.Da(b.index,b.level,this.$,this.vb,this.bb):"column"===b.axis&&1<this.Qb?e=this.Da(b.index,b.level,this.Na,this.Qb,this.fc):"rowEnd"===b.axis&&1<this.vc?e=this.Da(b.index,b.level,this.oa,this.vc,this.wb):"columnEnd"===b.axis&&1<this.Hc&&(e=this.Da(b.index,b.level,this.Wa,this.Hc,this.jc))),d=[Ig(this,"context"),Uj(this,c,e)].join(" "),f=c.getAttribute(this.N.zb("sortDir")),"ascending"===
f?(h="accessibleSortAscending",d=d+" "+Ig(this,"state")):"descending"===f&&(h="accessibleSortDescending",d=d+" "+Ig(this,"state")),!0===this.ml&&(d=[Ig(this,"summary"),d].join(" "),this.ml=!1),null!=h&&(h=this.N.Xe(h,{id:""}),null!=h&&(this.jE.textContent=h)),c.setAttribute("tabIndex",0)):(null!=b&&("header"===b.type?(f="row"===b.axis?b.index:null,d="column"===b.axis?b.index:null):(f=b.indexes.row,d=b.indexes.column)),h=Vj(this,"row",this.$,this.vb,this.bb,this.Qa,a.indexes.row,f,c),f=Vj(this,"rowEnd",
this.oa,this.vc,this.wb,this.Ka,a.indexes.row,f,c),e=Vj(this,"column",this.Na,this.Qb,this.fc,this.Ac,a.indexes.column,d,c),d=Vj(this,"columnEnd",this.Wa,this.Hc,this.jc,this.Gb,a.indexes.column,d,c),d=[Ig(this,"context"),h,f,e,d,c.id,Ig(this,"state")].join(" "),d=d.replace(/ +(?= )/g,""),this.ml&&(d=[Ig(this,"summary"),d].join(" "),this.ml=!1));var k,l;if("header"===a.type){h=a.axis;f=a.index;e=a.level;k={};if("row"===a.axis){if(1<this.vb&&(null==b||e!==b.level||h!==b.axis)&&(k.level=e),null==b||
f!==b.index||h!==b.axis)k.rowHeader=f}else if("column"===h){if(1<this.Qb&&(null==b||e!==b.level||h!==b.axis)&&(k.level=e),null==b||f!==b.index||h!==b.axis)k.columnHeader=f}else if("rowEnd"===a.axis){if(1<this.vc&&(null==b||e!==b.level||h!==b.axis)&&(k.level=e),null==b||f!==b.index||h!==b.axis)k.rowEndHeader=f}else"columnEnd"===h&&(1<this.Hc&&(null==b||e!==b.level||h!==b.axis)&&(k.level=e),null==b||f!==b.index||h!==b.axis)&&(k.columnEndHeader=f);sh(this,k,l)}else null==b||"cell"!=b.type||null==a||
this.ml||(a.indexes.row===b.indexes.row?l="row":a.indexes.column===b.indexes.column&&(l="column")),sh(this,a.indexes,l);c.setAttribute("tabIndex",0);c.setAttribute("aria-labelledby",d);null!=this.eu&&this.eu==c||!this.ir||c.focus();this.ir=!0};g.At=function(a){null!=a&&(a.setAttribute("tabIndex",-1),a.removeAttribute("aria-labelledby"))};
function Oi(a,b,c){if("row"===c){if(null!=a.$&&(b=b.parentNode,b=Wj(b)+a.ha,-1<b))return a.Da(b,a.vb-1,a.$,a.vb,a.bb)}else if("column"===c){if(null!=a.Na&&(b=Wj(b)+a.Ta,-1<b))return a.Da(b,a.Qb-1,a.Na,a.Qb,a.fc)}else if("rowEnd"===c){if(null!=a.oa&&(b=b.parentNode,b=Wj(b)+a.ha,-1<b))return a.Da(b,a.vc-1,a.oa,a.vc,a.wb)}else if("columnEnd"===c&&null!=a.Wa&&(b=Wj(b)+a.Ta,-1<b))return a.Da(b,a.Hc-1,a.Wa,a.Hc,a.jc);return null}
function Wj(a){var b,c,d,e;c=a.parentNode.childNodes;d=-1;for(e=0;e<c.length;e+=1){b=c[e];if(b===a)return d+1;"DIV"==b.nodeName&&d++}return d}
g.createRange=function(a,b,c,d){var e,f,h,k,l,m,n;b&&(a.row<b.row||-1==b.row?(e=a.row,f=b.row,c&&(k=c.row,l=d.row)):(e=b.row,f=a.row,c&&(k=d.row,l=c.row)),isNaN(a.column)||isNaN(b.column)?(a={row:e},b={row:f}):(a.column<b.column||-1==b.column?(h=a.column,b=b.column,c&&(m=c.column,n=d.column)):(h=b.column,b=a.column,c&&(m=d.column,n=c.column)),a={row:e,column:h},b={row:f,column:b}),c&&(c={row:k,column:m},d={row:l,column:n}));return c?{startIndex:a,endIndex:b,startKey:c,endKey:d}:{startIndex:a,endIndex:b}};
g.mH=function(a,b,c,d){a===d?this.TR(c,d,b,c,d):a?vg(this,a,this.TR.bind(this,c,d,b)):b.call(this,{startIndex:d,endIndex:d,startKey:c,endKey:c})};g.TR=function(a,b,c,d,e){c.call(this,this.createRange(b,e,a,d))};function Xj(a){return null==a.endIndex?a.startIndex:a.endIndex}
function Pj(a,b,c,d){var e,f,h,k,l;void 0==c&&(c=a.ha);void 0==d&&(d=a.Ja+1);e=b.startIndex;f=Xj(b);h=e.row;b=f.row;-1==b&&(b=Number.MAX_VALUE);if(d<h||b<c||!isNaN(e.column)&&!isNaN(f.column)&&(k=e.column,l=f.column,-1==l&&(l=Number.MAX_VALUE),a.dc+1<k||l<a.Ta))return null;c=[];d=a.R.firstChild;if(null==d)return null;d=d.childNodes;h=Math.max(0,h-a.ha);b=Math.min(d.length,b-a.ha+1);if(isNaN(k)||isNaN(l))for(a=h;a<b;a+=1)k=d[a],c.push(k);else for(k=Math.max(0,k-a.Ta),l=l-a.Ta+1,a=h;a<b;a+=1)for(h=
d[a].childNodes,e=k;e<Math.min(h.length,l);e+=1)f=h[e],c.push(f);return c}
g.ija=function(){var a,b,c,d;if(null==this.t)return!1;if("header"==this.t.type)a={},"row"===this.t.axis?(1<this.vb&&(a.level=this.t.level),a.rowHeader=this.t.index):(1<this.Qb&&(a.level=this.t.level),a.columnHeader=this.t.index),a=rg(this);else{a=this.t.indexes;this.tb()&&Hi(this)&&null!=this.Bc&&(a=this.Bc);if(null==a)return!1;a=this.createRange(a);a=Pj(this,a);if(null==a||0==a.length)return!1;a=a[0]}this.lt(Ij(this,a),null,a);b=Ig(this,"placeHolder");c=!0;d=a.getAttribute("aria-labelledby");null!=
d&&-1!=d.indexOf(b)&&(c=!1);c?(this.gE.textContent="\x26nbsp",d=a.getAttribute("aria-labelledby"),a.setAttribute("aria-labelledby",d+" "+b)):this.va.empty(this.gE);a.focus();return!0};g.BA=function(a){bi(this,a);ei(this,a)&&(this.F0(a),Yj(this,!0));return!1};g.Dn=function(){var a;Qh(this)&&(a=rg(this),Yj(this,!1),Eh(this,a),this.E0(a))};
function Zj(a,b,c,d){var e,f;e=Bh(a.Y,"cell");f=b[a.N.zb("context")];f.mode=c;a.va.empty(b.firstChild);V(b,d)?W(b,d):cg(b,d);Dh(a,e,f,b.firstChild,f.data,a.g("celltext"))}g.createIndex=function(a,b){return null!=a?null!=b?{row:a,column:b}:{row:a}:null};function Vj(a,b,c,d,e,f,h,k,l){var m;return-1==f||h==k&&!a.ml?"":(b=Oi(a,l,b),null!=k&&(m=a.Da(k,d-1,c,d,e)),Uj(a,b,m))}
function Uj(a,b,c){var d="",e=[];if(null==b)return"";b=ak(a,b);null!=c&&(e=ak(a,c));for(a=0;a<b.length;a++)if(e[a]!=b[a]||a===b.length-1)d+=(""==d?"":" ")+b[a].id;return d}function ak(a,b){var c,d,e,f=[b];c=Qi(a,b);d=Qj(a,b);"row"===c?e=a.vb:"column"===c?e=a.Qb:"rowEnd"===c?e=a.vc:"columnEnd"===c&&(e=a.Hc);if(1===e)return f;d===e-1&&(b=b.parentNode.firstChild,f.unshift(b),d-=1);for(;0<d;)b=b.parentNode.parentNode.firstChild,f.unshift(b),d-=1;return f}
function Oh(a,b,c){var d,e,f,h,k,l,m,n,p,q,r,s,u;d=b.row;e=b.column;p=a.N.fb()?"right":"left";h=f=0;m=a.Sa;n=Bg(a);r=a.ob;s=Eg(a);d<a.ha||d>a.Ja?(h=d<a.ha?a.gb*d:a.gb*(d+1)-n+m,h=a.Sa-h,a.Bi=b,u=!0):(k=a.R.firstChild,l=k.childNodes[d-a.ha],k=X(l,"top"),l=$h(a,l),k+l>n?h=n-(k+l):k<m&&(h=m-k));isNaN(e)||!0==u||(e<a.Ta||e>a.dc?(f=e<a.Ta?a.ke*e:a.ke*(e+1)-s+r,f=a.ob-f,a.Bi=b):(k=a.R.firstChild,l=k.childNodes[d-a.ha],q=l.childNodes[e-a.Ta],b=X(q,p),d=Fg(q),b<r?f=r-b:b+d>s&&(f=s-(b+d))));0!=f||0!=h?(null!=
q&&!0!==c&&(a.eu=q),hi(a,f,h)):null!=a.Bi&&a.lm(a.Bi)&&(a.Bi=null)}
function Ph(a,b){var c,d,e,f,h,k,l,m,n,p,q,r,s,u;r=b.axis;s=b.index;u=b.level;c=0;"row"===r?(d=a.bb,e=a.Qa,f=a.gb,n=h=a.Sa,p=Bg(a)):"column"===r?(d=a.fc,e=a.Ac,f=a.ke,n=h=a.ob,p=Eg(a)):"rowEnd"===r?(d=a.wb,e=a.Ka,f=a.gb,n=h=a.Sa,p=Bg(a)):"columnEnd"===r&&(d=a.jc,e=a.Gb,f=a.ke,n=h=a.ob,p=Eg(a));q=p-n;if(s<d||s>e)c=h-(s<d?f*s:f*(s+1)-q),a.tl=b;else{if("row"===r||"rowEnd"===r)m="row"===r?a.Da(s,u,a.$,a.vb,a.bb):a.Da(s,u,a.oa,a.vc,a.wb),k=X(m,"top"),l=Cg(m);else if("column"===r||"columnEnd"===r)m="column"===
r?a.Da(s,u,a.Na,a.Qb,a.fc):a.Da(s,u,a.Wa,a.Hc,a.jc),k=X(m,a.N.fb()?"right":"left"),l=Fg(m);q>l?k+l>p?c=p-(k+l):k<n&&(c=n-k):c=n-k}0!=c?(null!=m&&(a.eu=m),"row"===r||"rowEnd"===r?hi(a,0,c):hi(a,c,0)):null!=a.tl&&(fg(a,b,!0),a.tl=null)}function Ni(a,b,c,d){null==c&&(c=a.g("headercell"));null==d&&(d=a.g("endheadercell"));if(null!=c){if(V(b,c)||V(b,d))return b;if(b.parentNode)return Ni(a,b.parentNode,c,d)}return null}
function dg(a){var b,c,d,e,f;b=Zh(a.Y);if(0<b)for(c=a.R.firstChild.childNodes,f=a.g("banded"),d=0;d<c.length;d++)e=a.ha+d,1===Math.floor(e/b)%2?V(c[d],f)||cg(c[d],f):V(c[d],f)&&W(c[d],f)}g.Ee=function(a,b){var c=this.N.Xe(a,b);null!=c&&(this.bu.textContent=c)};g.U_=function(a,b){var c;void 0===b&&vj(this,a)?a.operation="expand":(c=a.rowKey,c=rh(this,c),c.setAttribute("aria-expanded",!0),this.Ee("accessibleRowExpanded"),ph(this))};
g.Q_=function(a,b){var c;void 0===b&&vj(this,a)?a.operation="collapse":(c=a.rowKey,c=rh(this,c),c.setAttribute("aria-expanded",!1),this.Ee("accessibleRowCollapsed"),ph(this))};function zh(a,b,c){null!=b&&(b[a.N.zb("key")]=c)}g.Vb=function(a){return null!=a?a[this.N.zb("key")]:null};
function oj(a,b){if(b&&null!=a.Td){if("header"==a.Td.type&&("row"===a.Td.axis||"rowEnd"===a.Td.axis))return a.Td.key;if("cell"==a.Td.type)return a.Td.keys.row}else if(null!=a.t){if("header"==a.t.type&&("row"===a.t.axis||"rowEnd"===a.t.axis))return a.t.key;if("cell"==a.t.type)return a.t.keys.row}return null}
g.pw=function(a,b){var c;null==b&&(b=a.target);return gj(this,this.find(b,"row"))?(null!=this.xi&&W(this.xi,this.g("cut")),c=this.Vb(this.find(b,"row")),this.xi=rh(this,c),this.Co=Bj(this,c,this.$,this.g("rowheadercell")),this.fu=Bj(this,c,this.oa,this.g("rowendheadercell")),cg(this.xi,this.g("cut")),null!==this.Co&&cg(this.Co,this.g("cut")),!0):!1};
g.qw=function(a,b){var c;null==b&&(b=a.target);return null!=this.xi?(W(this.xi,this.g("cut")),null!==this.Co&&(W(this.Co,this.g("cut")),this.Co=null),null!==this.fu&&(W(this.fu,this.g("cut")),this.fu=null),c=this.find(b,"row"),this.xi!==c&&(this.tb()&&this.ph(a),qh(this)&&Mj(this,this.t,void 0),this.wy=!0,this.ua.move(this.Vb(this.xi),this.Vb(c))),this.xi=null,!0):!1};
g.p$=function(){if(null!=this.xi)return W(this.xi,this.g("cut")),this.xi=null,null!==this.Co&&(W(this.Co,this.g("cut")),this.Co=null),null!==this.fu&&(W(this.fu,this.g("cut")),this.fu=null),!0};
function cj(a,b){var c,d;null==a.hb&&(c=b.target,c=a.Vb(a.find(c,"row")),a.hb=rh(a,c),a.Jf=Bj(a,c,a.$,a.g("rowheadercell")),a.kg=Bj(a,c,a.oa,a.g("rowendheadercell")),null!=a.hb.style.height&&ch(a.hb,$h(a,a.hb)),cg(a.hb,a.g("drag")),a.zy=X(a.hb,"top"),a.ig=document.createElement("div"),cg(a.ig,a.g("drop")),ch(a.ig,$h(a,a.hb)),Y(a.ig,a.zy,"top"),a.R.firstChild.appendChild(a.ig),bk(a,a.Jf,a.$,!1),bk(a,a.kg,a.oa,!0));ah(a.va)||(a.Mm=a.Hd,a.Hd=b.pageY);c=a.Hd-a.Mm;d=$h(a,a.hb);Y(a.hb,X(a.hb,"top")+c,"top");
null!==a.Jf&&Y(a.Jf,X(a.Jf,"top")+c,"top");null!==a.kg&&Y(a.kg,X(a.kg,"top")+c,"top");null!=a.hb.nextSibling&&a.hb.nextSibling!=a.ig&&X(a.hb.nextSibling,"top")<X(a.hb,"top")+d/2?ck(a,"nextSibling"):null!=a.hb.previousSibling&&X(a.hb.previousSibling,"top")>X(a.hb,"top")-d/2&&ck(a,"previousSibling")}
function bk(a,b,c,d){var e;null!==b&&(null==b.style.height&&ch(b,$h(a,b)),cg(b,a.g("drag")),e=document.createElement("div"),cg(e,a.g("drop")),ch(e,$h(a,b)),Y(e,a.zy,"top"),c.firstChild.appendChild(e),d?a.D0=e:a.WM=e)}
function ck(a,b){var c,d,e,f,h;d=a.hb.parentNode;"nextSibling"==b?(c=a.zy+$h(a,a.hb[b]),e=a.zy):(c=X(a.hb[b],"top"),e=c+$h(a,a.hb));Y(a.ig,c,"top");Y(a.hb[b],e,"top");null!==a.Jf&&(f=a.Jf.parentNode,Y(a.WM,c,"top"),Y(a.Jf[b],e,"top"));null!==a.kg&&(h=a.kg.parentNode,Y(a.D0,c,"top"),Y(a.kg[b],e,"top"));a.zy=c;W(a.hb.previousSibling,a.g("activedrop"));"nextSibling"===b?(d.insertBefore(a.hb,a.hb[b][b]),null!==a.Jf&&f.insertBefore(a.Jf,a.Jf[b][b]),null!==a.kg&&h.insertBefore(a.kg,a.kg[b][b])):(d.insertBefore(a.hb,
a.hb[b]),null!==a.Jf&&f.insertBefore(a.Jf,a.Jf[b]),null!==a.kg&&h.insertBefore(a.kg,a.kg[b]));cg(a.hb.previousSibling,a.g("activedrop"))}function Pi(a){var b;b=a.ua.getCapability("move");a=nh(a.Y,"dnd","reorder","row");return"enable"!==(null!=a?a:!1)||"full"!==b&&"row"!==b?!1:!0}
function hj(a,b,c){null!=a.hb&&(a.rc(a.ig),a.hb.style.zIndex="",null!==a.Jf&&(a.rc(a.WM),a.Jf.style.zIndex=""),null!==a.kg&&(a.rc(a.D0),a.kg.style.zIndex=""),null!=a.t&&"column"!=a.t.axis&&(a.wy=!0),a.tb()&&a.ph(b),!0==c?a.ua.move(a.Vb(a.hb),null===a.hb.nextSibling?null:a.Vb(a.hb.nextSibling)):a.ua.move(a.Vb(a.hb),a.Vb(a.hb)),a.hb=null);a.Sc=!1}function gj(a,b){return null==b||V(b.parentNode,a.g("colheader"))?!1:Pi(a)&&oj(a)===a.Vb(b)?!0:!1}
g.oia=function(a){var b,c;cg(this.J,this.g("focus"));if(!this.J.contains(document.activeElement)||document.activeElement===this.J&&0==this.J.tabIndex||document.activeElement===this.R&&this.iN&&0==this.J.tabIndex)this.ml=!0,Zg(this)?this.Ee("accessibleEditableMode"):lj(this)&&this.Ee("accessibleNavigationMode"),null!=this.t||bh(this)?null!=this.t&&Rh(this):(b=this.createIndex(0,0),!0==this.iN?this.iN=this.ir=!1:Oh(this,b),c=this.re(),!this.tb()||null!=c&&0!=c.length?this.lm(b):this.Xm(b,a));this.J.tabIndex=
-1};g.nia=function(){var a;setTimeout(function(){this.J.contains(document.activeElement)||(this.J.tabIndex=0,a=rg(this),null!=a&&this.At(a))}.bind(this),100);null==this.hb&&W(this.J,this.g("focus"))};function $h(a,b){return""!=b.style.height?Cg(b):null!=b.nextSibling?X(b.nextSibling,"top")-X(b,"top"):a.Sb-X(b,"top")}function Cj(a,b){return""!=b.style.height?Cg(b):null!=b.nextSibling?X(b.nextSibling,"top")-X(b,"top"):a.Zb-X(b,"top")}
function jg(a,b){if(""!=b.style.width)return Fg(b);var c=a.N.fb()?"right":"left";return null!=b.nextSibling?X(b.nextSibling,c)-X(b,c):a.jg-X(b,c)}function dk(a,b){if(""!=b.style.width)return Fg(b);var c=a.N.fb()?"right":"left";return null!=b.nextSibling?X(b.nextSibling,c)-X(b,c):a.Hf-X(b,c)}function bh(a){return null==a.R.firstChild||null==a.R.firstChild.firstChild?!0:!1}function Vh(a,b,c,d){"undefined"!=typeof b&&(a.style[b]="remove"==d?"":c)}
function Xh(a,b,c,d,e,f){Vh(a,Wh("transition-delay"),c);Vh(a,Wh("transition-timing-function"),d);Vh(a,Wh("transition-duration"),b);Vh(a,Wh("transform"),"translate3d("+e+"px,"+f+"px,0px)")}function Gj(a){Vh(a,Wh("transition-delay"),null,"remove");Vh(a,Wh("transition-timing-function"),null,"remove");Vh(a,Wh("transition-duration"),null,"remove");Vh(a,Wh("transform"),null,"remove")}
function Wh(a){function b(a){return a.replace(/\-([a-z])/gi,function(a,b){return b.toUpperCase()})}var c,d,e,f;c=" -moz- -webkit- -o- -ms- -khtml-".split(" ");d=document.documentElement;for(e=0;e<c.length;e++)if(f=b(c[e]+a),"Ms"==f.substr(0,2)&&(f="m"+f.substr(1)),f in d.style)return f}function ek(a){var b,c;c=a.re();for(b=0;b<c.length;b+=1)fk(a,c[b])}function fk(a,b){var c=Pj(a,b),d,e;if(null!=c&&0!=c.length)for(d=0;d<c.length;d+=1)e=c[d],Tj(a,e,["selected"])}
function gk(a,b,c){b=Pj(a,b);hk(a,b);if(c){if(1==a.re().length)c=b.length;else{var d,e;c=0;b=a.re();for(e=0;e<b.length;e++)d=Pj(a,b[e]),c+=d.length}a.Ee("accessibleMultiCellSelected",{num:c})}}function hk(a,b){var c,d;if(null!=b&&0!=b.length)for(c=0;c<b.length;c+=1)d=b[c],Sj(a,d,["selected"])}function Sh(a,b,c){var d,e,f;e=a.re();for(d=0;d<e.length;d+=1)f=Pj(a,e[d],b,c),hk(a,f)}
function nj(a,b){var c;ah(a.va)?c=di(a,document.elementFromPoint(b.touches[0].clientX,b.touches[0].clientY)):(c=b.target,c=di(a,c));null!=c&&(c={row:Fi(a,c.parentNode),column:Gi(a,c)},ik(a,c,b))}g.xh=function(a){var b=this.g("selected");return"row"==mj(this.Y)&&null!=b?V(this.find(a,"row"),b):null!=b?V(a,b):!1};
g.Hp=function(a){var b,c,d,e,f,h,k,l;"row"==mj(this.Y)&&(a=this.createIndex(a.row));b=a.row;a=a.column;c=-1;d=this.re();for(e=0;e<d.length;e+=1)if(f=d[e],h=f.startIndex,f=Xj(f),k=h.row,l=f.row,k==b&&l==b)if(!isNaN(h.column)&&!isNaN(f.column)){if(h=h.column,f=f.column,h==a&&f==a){c=e;break}}else if(isNaN(a)){c=e;break}-1!=c&&(fk(this,d[c]),d.splice(c,1))};
function Ji(a,b){var c,d,e;d=di(a,b.target);null!=d&&(c={row:Fi(a,d.parentNode),column:Gi(a,d)});null==c||void 0==c||Hi(a)&&2===b.button&&Ii(a,c)||(d="Mac"===a.va.qN?b.metaKey:b.ctrlKey,e=b.shiftKey,Hi(a)?ah(a.va)?(rj(a),null!=a.t&&Mj(a,a.t,void 0),a.Xm(c,b,!1)):d||e?!d&&e?ik(a,c,b):a.Xm(c,b,!0):a.Xm(c,b,!1):a.Xm(c,b,!1))}
function Ii(a,b,c){var d,e,f,h;null==c&&(c=a.re());for(a=0;a<c.length;a+=1)if(d=c[a],e=d.startIndex,d=Xj(d),f=e.row,h=d.row,!(b.row<f||-1!=h&&b.row>h)){if(isNaN(e.column)||isNaN(d.column))return!0;e=e.column;d=d.column;if(!(b.column<e||-1!=d&&b.column>d))return!0}return!1}g.ph=function(a){var b;ek(this);rj(this);b=this.re();this.Io=[];jk(this,a,b)};function aj(a,b){a.oy=b;a.Ee(b?"accessibleRangeSelectModeOn":"accessibleRangeSelectModeOff")}
function kk(a,b,c,d){ek(a);d=a.Gea.bind(a,d);vg(a,b,a.mH.bind(a,c,d))}g.Gea=function(a,b){var c,d;d=this.re();c=[];c.push(b);this.Io=c;gk(this,b);qh(this)&&(this.Bc=this.t.indexes,Rh(this));jk(this,a,d)};g.re=function(){null==this.Io&&(this.Io=[]);return this.Io};t("DvtDataGrid.prototype.GetSelection",S.prototype.re,void 0);S.prototype.pF=function(a){void 0!=a&&(null==a&&(a=[]),ek(this),this.re(),this.Io=a,null!=this.R&&Sh(this,this.ha,this.Ja))};
t("DvtDataGrid.prototype.SetSelection",S.prototype.pF,void 0);function ik(a,b,c){var d;d=ah(a.va)?a.c1:a.t.indexes;null!=d&&(lk(a),a.Bc=b,"row"==mj(a.Y)&&(b=a.createIndex(b.row)),c=a.P8.bind(a,c),vg(a,d,a.mH.bind(a,b,c)))}g=S.prototype;
g.P8=function(a,b){var c,d,e,f;d=this.re();e=d[d.length-1];c=e.startIndex.row==b.startIndex.row;null!=e.startIndex.column&&null!=b.startIndex.column&&(c=c&&e.startIndex.column==b.startIndex.column);f=e.endIndex.row==b.endIndex.row;null!=e.endIndex.column&&null!=b.endIndex.column&&(f=f&&e.endIndex.column==b.endIndex.column);c&&f||(c=d.slice(0),c.pop(),c.push(b),this.Io=c,fk(this,e),gk(this,b,!0),null==this.Bc||qh(this)&&this.Bc.row==this.t.indexes.row&&this.Bc.column==this.t.indexes.column||(qh(this)&&
(e=this.createRange(this.t.indexes),e=Pj(this,e),null!=e&&0<e.length&&this.At(e[0])),e=this.createRange(this.Bc),e=Pj(this,e),null!=e&&0!=e.length&&(sh(this,this.Bc),e=V(e[0],this.g("row"))?e[0].firstChild:e[0],this.lt(Ij(this,e),null,e))),jk(this,a,d),this.oy&&!ah(this.va)&&aj(this,!1))};function lk(a){var b;null==a.Bc||qh(a)&&a.Bc.row==a.t.indexes.row&&a.Bc.column==a.t.indexes.column||(b=a.createRange(a.Bc),b=Pj(a,b),null!=b&&0<b.length&&a.At(b[0]))}
g.Xm=function(a,b,c){null==c&&(c=!1);lk(this);this.lm(a,b);"row"==mj(this.Y)&&(a=this.createIndex(a.row));b=this.Fea.bind(this,a,b,c);vg(this,a,this.mH.bind(this,a,b))};
g.Fea=function(a,b,c,d){var e,f;f=this.re();e=f.slice(0);c||(this.oy?qh(this)&&null!=this.Td&&"cell"==this.Td.type&&this.Bc.row==this.Td.indexes.row&&this.Bc.column==this.Td.indexes.column&&!ah(this.va)&&(e.pop(),Ii(this,this.Td.indexes,e)||Tj(this,Hj(this,this.Td.indexes),["selected"])):(ek(this),e=[]));this.Bc=a;e.push(d);this.Io=e;Sj(this,Hj(this,a),["selected"]);jk(this,b,f)};
function jk(a,b,c){var d=a.re();if(ah(a.va)&&Hi(a)&&0<d.length){var e,f,h;null==a.Ke&&null==a.hg&&(h=a.N.fb()?"right":"left",f=mk(a),a.Ke=document.createElement("div"),a.Ke.className=a.g("toucharea"),Y(a.Ke,-f/2,"top"),e=document.createElement("div"),e.className=a.g("selectaffordancetop"),e.setAttribute("role","button"),e.setAttribute("aria-label",a.N.Xe("accessibleSelectionAffordanceTop")),a.Ke.appendChild(e),a.hg=document.createElement("div"),a.hg.className=a.g("toucharea"),Y(a.hg,-1*f/2,"bottom"),
e=document.createElement("div"),e.className=a.g("selectaffordancebottom"),e.setAttribute("role","button"),e.setAttribute("aria-label",a.N.Xe("accessibleSelectionAffordanceBottom")),a.hg.appendChild(e),e=mj(a.Y),"row"===e?(f=Fg(a.R)/2+a.ob-f/2,Y(a.Ke,f,h),Y(a.hg,f,h)):(e=b.target,e=di(a,e),f=X(e,h)-f/2,Y(a.Ke,f,h),Y(a.hg,f+jg(a,e),h)),h=Pj(a,a.createRange(a.t.indexes))[0].parentNode,h.appendChild(a.Ke),h.appendChild(a.hg));Yi(a)}a:if(d.length!==c.length)d=!1;else{for(h=0;h<d.length;h+=1){e=!1;for(f=
0;f<c.length;f+=1)d[h].startIndex.row===c[f].startIndex.row&&d[h].startIndex.column===c[f].startIndex.column&&d[h].endIndex.row===c[f].endIndex.row&&d[h].endIndex.column===c[f].endIndex.column&&(e=!0);if(!1===e){d=!1;break a}}d=!0}d||(b={event:b,ui:{selection:a.re(),previousSelection:c}},a.fireEvent("select",b))}function rj(a){qh(a)&&a.Ke&&a.Ke.parentNode&&(a.Ke.parentNode.removeChild(a.Ke),a.hg.parentNode.removeChild(a.hg))}
function Yi(a){var b,c,d,e,f;b=a.re();0<b.length&&(e=mj(a.Y),c=rh(a,b[b.length-1].startKey.row),d=rh(a,b[b.length-1].endKey.row),null!=a.Ke&&null!=a.hg&&("row"===e?(c.appendChild(a.Ke),d.appendChild(a.hg)):(e=a.N.fb()?"right":"left",f=Pj(a,b[b.length-1]),b=f[0],f=f[f.length-1],c.appendChild(a.Ke),d.appendChild(a.hg),Y(a.Ke,X(b,e)-mk(a)/2,e),Y(a.hg,X(f,e)+jg(a,f)-mk(a)/2,e))))}function wi(a){var b,c;"row"===mj(a.Y)&&null!=a.Ke&&(c=a.N.fb()?"right":"left",b=Fg(a.R)/2+a.ob,Y(a.Ke,b,c),Y(a.hg,b,c))}
function mk(a){var b,c;null==a.d1&&(b=document.createElement("div"),b.className=a.g("toucharea"),b.style.visibilty="hidden",b.style.top="0px",b.style.visibilty="0px",a.J.appendChild(b),c=b.offsetWidth,a.J.removeChild(b),a.d1=c);return a.d1}function nk(a,b,c){null!=b&&(b=ok(b),"descending"===c&&V(b,a.g("sortascending"))?(W(b,a.g("sortascending")),cg(b,a.g("sortdescending"))):"ascending"===c&&V(b,a.g("sortdescending"))&&(W(b,a.g("sortdescending")),cg(b,a.g("sortascending"))))}
function jj(a,b,c){var d,e=!1;null!=b&&((d=ok(b),null!=a.wc&&(e=a.wc.key===a.Vb(b)),!1!==c||e)?!0!==c||e||(W(d,a.g("default")),cg(d,a.g("disabled"))):(W(d,a.g("disabled")),cg(d,a.g("default"))))}
function og(a,b){var c,d,e,f;f=document.createElement("div");f.className=a.g("sortcontainer");c=document.createElement("div");d=a.g("icon")+" "+a.g("clickableicon");b.key===(null!=a.wc?a.wc.key:null)?(e=null!=a.wc?a.wc.direction:null,"ascending"===e?c.className=a.g("sortascending")+" "+d+" "+a.g("default"):"descending"===e&&(c.className=a.g("sortdescending")+" "+d+" "+a.g("default"))):(d+=" "+a.g("disabled"),c.className=a.g("sortascending")+" "+d);f.appendChild(c);return f}
function kj(a,b){var c,d;bh(a)||(d=b.target,d=Ni(a,d),null!=d&&(null==c&&(c=null!=a.wc&&a.wc.key===a.Vb(d)?"ascending"===a.wc.direction?"descending":"ascending":"ascending"),$i(a,b,d,c)))}
function $i(a,b,c,d){var e,f;if(!0!=a.U0){a.ny=null;e=a.Vb(c);f=a.Xl(c);var h,k;null!=a.wc&&(h=Bj(a,a.wc.key,a.Na,a.g("colheadercell")),h.removeAttribute(a.N.zb("sortDir")),k=ok(h),nk(a,h,"ascending"),"descending"===a.wc.direction&&(W(k,a.g("sortdescending")),cg(k,a.g("sortascending"))),cg(k,a.g("disabled")),W(k,a.g("default")),W(h.lastChild,a.g("enabled")));c.setAttribute(a.N.zb("sortDir"),d);a.wc={event:b,key:e,axis:f,direction:d};nk(a,c,d);null!=a.wc&&(b=Bj(a,a.wc.key,a.Na,a.g("colheadercell")),
c=ok(b),cg(c,a.g("default")),W(c,a.g("disabled")),W(c,a.g("selected")),cg(b.lastChild,a.g("enabled")));null!=d&&null!=e&&null!=f&&(a.U0=!0,a.Eu(),f={axis:f,key:e,direction:d},a.ua.sort(f,{success:a.$I.bind(a),error:a.Maa.bind(a)}));a.Ee("ascending"===d?"accessibleSortAscending":"accessibleSortDescending",{id:e})}else a.ny={event:b,header:c,direction:d}}g.Maa=function(){this.Fm()};g.Xl=function(a){var b,c;b=this.g("colheadercell");c=this.g("rowheadercell");return V(a,b)?"column":V(a,c)?"row":null};
g.$I=function(){this.Fm();qh(this)?ug(this,{row:this.t.keys.row,column:this.t.keys.column},this.Eaa):pk(this,this.ha,this.Ja-this.ha+1,!1)};g.Eaa=function(a){var b,c;a=(-1===a.row?0:a.row)*this.gb;b=a+this.gb;c=wg(this);this.Sa<=a&&b<=this.Sa+Cg(this.R)||c?pk(this,this.ha,this.Ja-this.ha+1,!1):(this.Sa=Math.min(a,gi(this)),a=Math.floor(this.Sa/this.gb),b=a*this.gb,this.ha=a,this.Ja=-1,this.bb=a,this.Qa=-1,this.Zb=this.vd=this.Sb=this.Ub=b,pk(this,a,null,!0))};
function pk(a,b,c,d){var e=document.createDocumentFragment(),f=document.createDocumentFragment();a.fetchHeaders("row",b,e,f,c,{success:a.fia.bind(a),error:a.rD});a.fetchCells(a.R,b,a.Ta,c,a.dc-a.Ta+1,{success:a.Yha.bind(a,e,f,d),error:a.rD})}
g.fia=function(a,b,c,d){var e,f,h,k,l,m,n,p;e=b.axis;h=b.start;f=b.header;b=b.endHeader;this.ec[e]=!1;if(null!=a){e=a.getCount();k=m=0;n=this.g("row")+" "+this.g("headercell")+" "+this.g("rowheadercell");for(p=Bh(this.Y,"row");0<e-k;)l=h+k,l=Ch(this,f,l,0,0,this.Ub+m,!0,d,p,a,"row",n,this.vb),k+=l.count,m+=l.ah;this.Qa=this.bb+e-1;this.Zb=this.vd+m}if(null!=c){e=c.getCount();k=m=0;n=this.g("row")+" "+this.g("endheadercell")+" "+this.g("rowendheadercell");for(p=Bh(this.Y,"rowEnd");0<e-k;)l=h+k,l=Ch(this,
b,l,0,0,this.Ub+m,!0,d,p,c,"rowEnd",n,this.vc),k+=l.count,m+=l.ah;this.Ka=this.wb+e-1;this.fd=this.Ze+m}tg(this)};
g.Yha=function(a,b,c,d,e){var f,h,k,l;this.ec.cells=!1;Mg(this)&&this.Fm();f=e[0].start;h=d.getCount("row");k=e[1].start;d.getCount("column");e=document.createDocumentFragment();d=Jh(this,e,!0,this.Ub,f,h,k,!1,d);this.Ja=this.bb+h-1;this.Sb=this.Ub+d.totalRowHeight;d=this.R.firstChild;f=this.$.firstChild;k=this.oa.firstChild;!0==c&&(l=wg(this),ah(this.va)?(ii(this),this.scrollTo(this.ob,this.Sa)):(this.b1=!0,this.R.scrollTop=this.Sa,Nh(this)));!yj()||1===h||1<this.vb&&null!=this.vb||!1===l?(sg(this),
this.ZI(e,a,b)):qk(this,f,a,d,e,k,b);tg(this)};
g.ZI=function(a,b,c){var d;1<b.childNodes.length&&(d=this.$.firstChild,this.va.empty(d),d.appendChild(b));1<c.childNodes.length&&(d=this.oa.firstChild,this.va.empty(d),d.appendChild(c));b=this.R.firstChild;this.va.empty(b);b.appendChild(a);if(null!=this.t)if(b=this.t.axis,"cell"==this.t.type)a=rh(this,this.t.keys.row),b=Bj(this,this.t.keys.column,this.Na,this.g("colheadercell")),null!=a&&null!=b?(a=this.createIndex(Fi(this,a),lg(this,b)),Oh(this,a),this.tb()?this.Xm(a):this.lm(a)):(this.yb(null,null,
!0),this.tb()&&this.ph(this.wc.event));else if("row"==b||"rowEnd"==b)a="row"==b?this.$:this.oa,b="row"==b?this.g("rowheadercell"):this.g("rowendheadercell"),a=Bj(this,this.t.key,a,b),null!=a?this.yb(a):this.yb(null);this.U0=!1;this.fireEvent("sort",{event:this.wc.event,ui:{header:this.wc.key,direction:this.wc.direction}});null!=this.ny?$i(this,this.ny.event,this.ny.header,this.ny.direction):Xg(this);this.du=!1;tg(this);Yg(this)};
function qk(a,b,c,d,e,f,h){var k,l,m,n,p,q,r,s,u,v,y,z,B,C,F,I,G,E;sg(a);p=[];q=[];E=[];u=1<c.childNodes.length?!0:!1;I=1<h.childNodes.length?!0:!1;B=a.Sa;C=Bg(a);y=e.cloneNode(!0);z=c?c.cloneNode(!0):null;G=h?h.cloneNode(!0):null;l={};for(r=0;r<d.childNodes.length;r++)s=d.childNodes[r],k=a.Vb(s),m=X(s,"top"),n=m+Cg(s),n=n<B||m>C?m:C,l[k]={wu:m,qE:n};for(r=0;r<e.childNodes.length;r++)s=e.childNodes[r],k=a.Vb(s),n=X(s,"top"),zh(a,y.childNodes[r],k),zh(a,z.childNodes[r],k),zh(a,G.childNodes[r],k),l.hasOwnProperty(k)?
l[k].qE=n:(m=C,v=n+Cg(s),l[k]={wu:m,qE:n},v>=B&&n<C&&(s=y.childNodes[r],Y(s,l[k].wu,"top"),p.push(s),u&&(s=z.childNodes[r],Y(s,l[k].wu,"top"),q.push(s)),I&&(s=G.childNodes[r],Y(s,l[k].wu,"top"),E.push(s))));for(r=0;r<p.length;r++)d.appendChild(p[r]),u&&b.appendChild(q[r]),I&&f.appendChild(E[r]);for(r=d.childNodes.length-1;0<=r;r--)if(s=d.childNodes[r],k=a.Vb(s),0!=l[k].qE-l[k].wu){F=s;break}null!=F?(F.addEventListener("transitionend",a.ZI.bind(a,e,c,h),!1),a.du=!0,setTimeout(function(){var c,e,h;
for(h=0;h<d.childNodes.length;h++)e=0*h+"ms",s=d.childNodes[h],c=l[a.Vb(s)],c=c.qE-c.wu,0!=c&&(Xh(s,"400ms",e,"ease-in",0,c),u&&Xh(b.childNodes[h],"400ms",e,"ease-in",0,c),I&&Xh(f.childNodes[h],"400ms",e,"ease-in",0,c))},0)):a.ZI(e,c,h)}function ok(a){return a.lastChild.firstChild}
g.Xx=function(a){var b;if(!1===this.zi)b=this.find(a.target,"header"),null==b&&(b=this.find(a.target,"endheader")),null==b||b!=this.$&&b!=this.Na&&b!=this.oa&&b!=this.Wa||(this.kl=rk(this,a),null!=this.wa&&("default"==this.kl?(this.wa.style.cursor="",null!=this.rl&&(this.rl.style.cursor="")):(this.wa.style.cursor=this.kl,null!=this.rl&&(this.rl.style.cursor=this.kl))));else{var c;this.ky=a.pageX;this.RD=a.pageY;ah(this.va)?(this.ky=a.touches[0].pageX,this.RD=a.touches[0].pageY):(this.ky=a.pageX,this.RD=
a.pageY);b=V(this.wa,this.g("colheadercell"))||V(this.wa,this.g("colendheadercell"))?"column":"row";a=V(this.wa,this.g("endheadercell"));"col-resize"===this.kl?"column"===b?(b=dk(this,this.wa),c=sk(this,"column",b,a),Ui(this,b,c)):"row"===b&&(b=Fg(this.wa),c=sk(this,"row",b,a),Vi(this,c-b,a)):"row-resize"===this.kl&&("row"===b?(b=Cj(this,this.wa),c=Hk(this,"row",b,a),Xi(this,b,c)):"column"===b&&(b=Cg(this.wa),c=Hk(this,"column",b,a),Wi(this,c-b,a)));gh(this);ah(this.va)&&Yi(this);this.aE=this.ky;
this.cN=this.RD}};function fj(a,b){return"col-resize"===a.kl||"row-resize"===a.kl?(a.zi=!0,ah(a.va)?(a.aE=b.touches[0].pageX,a.cN=b.touches[0].pageY):(document.addEventListener("mousemove",a.SD,!1),document.addEventListener("mouseup",a.TD,!1),a.aE=b.pageX,a.cN=b.pageY),a.Y0=0,a.dE=0,a.Z0=0,a.eE=0,a.fE=0,a.cE=0,a.xy={width:Fg(a.wa),height:Cg(a.wa)},!0):!1}
function ij(a,b){var c,d;if(!0===a.zi){d=Fg(a.wa);c=Cg(a.wa);if(d!=a.xy.width||c!=a.xy.height)c="col-resize"===a.kl?a.wa.style.width:a.wa.style.height,c={event:b,ui:{header:a.Vb(a.wa),oldDimensions:{width:a.xy.width,height:a.xy.height},newDimensions:{width:Fg(a.wa),height:Cg(a.wa)},size:c}},a.fireEvent("resize",c);a.zi=!1;a.kl="default";a.wa.style.cursor="";null!=a.rl&&(a.rl.style.cursor="");a.wa=null;a.qu=null;a.rl=null;a.xy=null;document.removeEventListener("mousemove",a.SD,!1);document.removeEventListener("mouseup",
a.TD,!1)}}function Ti(a,b){return null==b?!1:"true"===b.getAttribute(a.N.zb("resizable"))}
function rk(a,b){var c=b.target,d,e,f,h,k,l,m,n,p,q,r,s,u,v;(c=a.find(b.target,"headercell"))||(c=a.find(b.target,"endheadercell"));if(!c)return"default";d=Qi(a,c);h=lg(a,c);k=Qj(a,c);"column"===d?(m="enable"===Ri(a.Y,d,"height")?!0:!1,l=Ti(a,c),q=a.Da(h-1,k,a.Na,a.Qb,a.fc),n=Ti(a,q),r=a.Da(h,k-1,a.Na,a.Qb,a.fc)):"row"===d?(l="enable"===Ri(a.Y,d,"width")?!0:!1,m=Ti(a,c),q=a.Da(h-1,k,a.$,a.vb,a.bb),n=Ti(a,q),r=a.Da(h,k-1,a.$,a.vb,a.bb)):"columnEnd"===d?(m="enable"===Ri(a.Y,d).height?!0:!1,l=Ti(a,c),
q=a.Da(h-1,k,a.Wa,a.Hc,a.jc),n=Ti(a,q),r=a.Da(h,k-1,a.Wa,a.Hc,a.jc)):"rowEnd"===d&&(l="enable"===Ri(a.Y,d).width?!0:!1,m=Ti(a,c),q=a.Da(h-1,k,a.oa,a.vc,a.wb),n=Ti(a,q),r=a.Da(h,k-1,a.oa,a.vc,a.wb));ah(a.va)?(f=b.touches[0].pageX,h=b.touches[0].pageY,k=8):(f=b.pageX,h=b.pageY,k=5);s=c;u=qj(a,s);p=u[0];u=u[1];V(s,a.g("colheadercell"))?(v=dk(a,s),s=Cg(s)):(v=Fg(s),s=Cj(a,s));e=[p,u,p+v,u+s];p=a.N.fb();v="columnEnd"===d||"rowEnd"===d;s=f<e[0]+k;u=h<e[1]+k;f=f>e[2]-k;h=h>e[3]-k;if("column"===d||"columnEnd"===
d){if(l&&(p?s:f))return a.wa=c,"col-resize";if(n&&(p?f:s)){if(a.wa=q,a.rl=c,null!==a.wa)return"col-resize"}else if(m){if(!v&&h||v&&u)return a.wa=c,"row-resize";if(!v&&u||v&&h)return a.wa=r,a.rl=c,"row-resize"}}else if("row"===d||"rowEnd"===d){if(m&&h)return a.wa=c,"row-resize";if(n&&u&&(a.wa=q,a.rl=c,null!==a.wa))return"row-resize";if(l){if(!v&&(p?s:f)||v&&(p?f:s))return a.wa=c,"col-resize";if(!v&&(p?f:s)||v&&(p?s:f))if(a.wa=r,a.rl=c,null!==a.wa)return"col-resize"}}return"default"}
function Ui(a,b,c){var d;b=c-b;if(0!=b){null!=a.R.firstChild&&(d=Fg(a.R.firstChild),d+=b,dh(a.R.firstChild,d));var e,f,h;c=a.N.fb()?"right":"left";f=a.Na.style.display;h=a.Wa.style.display;a.R.style.display="none";a.Na.style.display="none";a.Wa.style.display="none";e=lg(a,a.wa);1<a.Qb&&a.wa===a.wa.parentNode.firstChild&&null!=a.wa.nextSibling&&(e+=Gh(a,a.wa.parentNode,"extent")-1);xh(a,a.Na.firstChild,e,b,c,a.g("colheadercell"),"column");xh(a,a.Wa.firstChild,e,b,c,a.g("colendheadercell"),"column");
Mh(a,b,!0,void 0,e-a.Ta+1,a.dc-a.Ta+1,e-a.Ta,c);a.R.style.display="";a.Na.style.display=f;a.Wa.style.display=h;a.jg+=b;a.Hf+=b;a.Ug+=b;a.ke=d/a.ua.getCount("column");Ik(a)}}
function Xi(a,b,c){var d;b=c-b;if(0!=b){null!=a.R.firstChild&&(d=Cg(a.R.firstChild),d+=b,ch(a.R.firstChild,d));var e,f,h,k,l;k=a.$.style.display;l=a.oa.style.display;a.R.style.display="none";a.$.style.display="none";a.oa.style.display="none";e=lg(a,a.wa);1<a.vb&&a.wa===a.wa.parentNode.firstChild&&null!=a.wa.nextSibling&&(e+=Gh(a,a.wa.parentNode,"extent")-1);xh(a,a.$.firstChild,e,b,"top",a.g("rowheadercell"),"row");xh(a,a.oa.firstChild,e,b,"top",a.g("rowendheadercell"),"row");if(null!=a.R.firstChild&&
(c=a.R.firstChild.childNodes,h=c[e-a.ha],null!=h))for(f=Cg(h)+b,ch(h,f),e=e-a.ha+1;e<c.length;e++)h=c[e],f=X(h,"top")+b,Y(h,f,"top");a.R.style.display="";a.$.style.display=k;a.oa.style.display=l;a.Sb+=b;a.Zb+=b;a.fd+=b;a.gb=d/a.ua.getCount("row");Ik(a)}}
function Wi(a,b,c){if(0!=b){var d=Qj(a,a.wa)+mh(a,a.wa)-1;c?a.LD[d]+=b:a.zo[d]+=b;var e,f,h,k;c?(e=a.Wa,f=a.g("colendheadercell"),h="columnEnd",k="bottom"):(e=a.Na,f=a.g("colheadercell"),h="column",k="top");e.style.display="none";a.R.style.display="none";Jk(a,e.firstChild,b,d,k,f,h);e.style.display="";a.R.style.display="";c?(a.jl+=b,ch(a.Wa,a.jl)):(a.yo+=b,ch(a.Na,a.yo));Ik(a)}}
function Vi(a,b,c){var d;if(0!=b){d=Qj(a,a.wa)+mh(a,a.wa)-1;c?a.hE[d]+=b:a.Cy[d]+=b;var e,f,h,k;c?(e=a.oa,f=a.g("rowendheadercell"),h="rowEnd",k=a.N.fb()?"left":"right"):(e=a.$,f=a.g("rowheadercell"),h="row",k=a.N.fb()?"right":"left");e.style.display="none";a.R.style.display="none";Jk(a,e.firstChild,b,d,k,f,h);e.style.display="";a.R.style.display="";c?(a.sl+=b,dh(a.oa,a.sl)):(a.Ho+=b,dh(a.$,a.Ho));Ik(a)}}
function sk(a,b,c,d){var e,f,h;e=Kk(a,"width",b);Fg(a.R);f=a.N.fb()?a.aE-a.ky:a.ky-a.aE;d&&"row"==b&&(f*=-1);d=c+f+a.Y0+a.dE+a.fE;h=Math.round(a.getWidth()/2);d<e?(a.dE+=f-e+c,d=e):(a.dE=0,a.Y0=0);"row"===b&&(d>h?(a.fE+=f-h+c,d=h):a.fE=0);return d}function Hk(a,b,c,d){var e,f,h;e=Kk(a,"height",b);Cg(a.R);f=a.RD-a.cN;d&&"column"==b&&(f*=-1);d=c+f+a.Z0+a.eE+a.cE;h=Math.round(a.getHeight()/2);d<e?(a.eE+=f-e+c,d=e):(a.eE=0,a.Z0=0);"column"===b&&(d>h?(a.cE+=f-h+c,d=h):a.cE=0);return d}
function Kk(a,b,c){var d,e,f,h,k,l,m,n;f=a.wa;e=Qj(a,f);n=mh(a,f);if(null==a.qu){h=["top","right","bottom","left"];l="width"===b?1:0;d=0;for(k=window.getComputedStyle(f);4>l;l+=2)d+=parseFloat(k.getPropertyValue("padding-"+h[l])),d+=parseFloat(k.getPropertyValue("border-"+h[l]+"-width"));a.qu=Math.round(d)}h=a.qu;h=Math.max(ah(a.va)?16:10,h);if("column"===c&&(1===a.Qb||"width"===b&&a.Qb===e+1||"height"===b&&1===n)||"row"===c&&(1===a.vb||"height"===b&&a.vb===e+1||"width"===b&&1===n))return h;d=lg(a,
f);k=Gh(a,a.wa.parentNode,"extent");l=X(f,b);"column"===c?"width"===b?(a=a.Da(d+k-1,a.Qb-1,a.Na,a.Qb,a.fc),m=X(a,b)):(b=e+n-1,null==a.zo&&(a.zo=[]),c=a.zo[b],null==c&&(c=Cg(f),a.zo[b]=c),m=c):"row"===c&&("height"===b?(a=a.Da(d+k-1,a.vb-1,a.$,a.vb,a.bb),m=X(a,b)):m=Hh(e+n-1,f,a.Cy,"width"));return l-(m-h)}
function Ik(a){var b,c,d,e,f,h,k,l,m,n,p,q,r,s,u,v=0,y=0,z,B;b=a.getWidth();c=a.getHeight();d=a.Na;z=a.Wa;e=a.$;B=a.oa;f=a.R;n=f.firstChild;h=Jg(a);m=-1===a.Gb?0:a.jl;l=ig(a);u=-1===a.Ka?0:a.sl;m=c-h-m;k=b-l-u;u=Dg(a.va);b=a.N.fb()?"right":"left";bh(a)&&(null==a.yi?(q=a.Dv(),a.J.appendChild(q)):q=a.yi,c=Cg(q),q=Fg(q),c>Cg(n)&&ch(n,c),q>Fg(n)&&dh(n,q));n=Fg(f.firstChild);c=Cg(f.firstChild);(r=eh(a,k))?(s=fh(a,m-u),f.style.overflow="auto"):(s=fh(a,m))?(r=eh(a,k-u),f.style.overflow="auto"):f.style.overflow=
"hidden";a.Jj=r;a.Kj=s;-1!=a.Gb?(q=Math.min(c+(r?u:0),m),m=r?q-u:q):(q=m,m=Math.min(c,r?q-u:q));-1!=a.Ka?(p=Math.min(n+(s?u:0),k),k=s?p-u:p):(p=k,k=Math.min(n,s?p-u:p));s=l+k+(s?u:0);u=h+m+(r?u:0);Y(e,0,b);Y(e,h,"top");ch(e,m);Y(B,s,b);Y(B,h,"top");ch(B,m);Y(d,l,b);dh(d,k);Y(z,l,b);Y(z,u,"top");dh(z,k);Y(f,h,"top");Y(f,l,b);dh(f,p);ch(f,q);a.hr=n-k;a.er=c-m;gh(a);hh(a);ah(a.va)&&(a.ob>a.hr&&(v=a.hr-a.ob),a.Sa>a.er&&(y=a.er-a.Sa),0!=v||0!=y)&&(ii(a),hi(a,v,y))}
function Mh(a,b,c,d,e,f,h,k){var l,m,n,p,q;if(null!=a.R.firstChild)for(m=a.R.firstChild.childNodes,a=0;a<m.length;a++)for(n=m[a].childNodes,c&&(p=n[h],null==d&&(d=Fg(p)+b),dh(p,d)),l=e;l<f;l+=1)p=n[l],q=X(p,k)+b,Y(p,q,k)}
function xh(a,b,c,d,e,f,h){var k,l,m,n,p=0;b=b.lastChild;if(null!=b){(l=V(b,f))?(m=b.parentNode,k=b,n=lg(a,k)):(m=b,k=b.firstChild,n=Gh(a,m,"start"));for(;c<n;)if(l)m=X(k,e)+d,Y(k,m,e),b=b.previousSibling,l=V(b,f),m=b.parentNode,k=b,n=lg(a,k);else{k=m.getElementsByClassName(f);for(l=0;l<k.length;l++)m=X(k[l],e)+d,Y(k[l],m,e);b=b.previousSibling;l=V(b,f);m=b;k=b.firstChild;n=Gh(a,m,"start")}"column"==h?(p=Fg(k)+d,dh(k,p)):"row"==h?(p=Cg(k)+d,ch(k,p)):null==h&&(m=X(k,e)+d,Y(k,m,e));l||null==k.nextSibling?
null!=h&&(c=a.Vb(k),a.Dy.Fu[h][c]=p):xh(a,b,c,d,e,f,h)}}function Jk(a,b,c,d,e,f,h){var k,l,m,n;b=b.childNodes;for(k=0;k<b.length;k++)if(l=b[k],m=V(l,f))m=Qj(a,l),n=mh(a,l),m<=d&&d<m+n?"column"===h||"columnEnd"===h?(m=Cg(l)+c,ch(l,m)):(m=Fg(l)+c,dh(l,m)):m>d&&(m=X(l,e)+c,Y(l,m,e));else if(m=Gh(a,l,"level"),m<=d)Jk(a,l,c,d,e,f,h);else for(l=l.getElementsByClassName(f),n=0;n<l.length;n++)m=X(l[n],e)+c,Y(l[n],m,e)}function Zf(){this.Fu={column:{},row:{}}}
Zf.prototype.clear=function(){this.Fu={column:{},row:{}}};function Yf(a){this.zN=-1;this.xm=a;a=navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():null;this.qN=Lk(a);this.platform=Mk(a)}function jh(a){null==a.dN&&Nk(a);return a.dN}function kh(a){null==a.eN&&Nk(a);return a.eN}
function Nk(a){var b;"ie"===a.platform||"edge"===a.platform?(a.dN=1E6,a.eN=1E6):(b=document.createElement("div"),b.style.cssText="width:1000000000px;height:1000000000px;display:none;",document.body.appendChild(b),a.dN=parseInt(parseFloat(window.getComputedStyle(b).height)/2,10),a.eN=parseInt(parseFloat(window.getComputedStyle(b).width)/2,10),document.body.removeChild(b))}
function Dg(a){if(-1==a.zN){var b=document.createElement("div");b.style.cssText="width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px;";document.body.appendChild(b);a.zN=b.offsetWidth-b.clientWidth;document.body.removeChild(b)}return a.zN}function ah(a){if(void 0==a.DM){var b=navigator.userAgent.toLowerCase();-1!=b.indexOf("mobile")||-1!=b.indexOf("android")?a.DM=!0:a.DM=!1}return a.DM}
function cg(a,b){var c,d;null!=b&&null!=a&&(c=a.className,d=Ok(c,b),-1==d&&(a.className=c?b+" "+c:b))}function W(a,b){var c,d,e;null!=b&&null!=a&&(c=a.className,d=Ok(c,b),-1!=d&&(e=d+b.length,d=0==d?null:c.substring(0,d),c=e==c.length?null:c.substring(e+1),a.className=null==d?null==c?"":c:null==c?d:d+c))}function V(a,b){return null!=b&&null!=a?-1!=Ok(a.className,b):!1}
function Ok(a,b){var c,d,e,f,h,k;if(!a||!a.indexOf)return-1;if(b===a)return 0;c=b.length;d=a.length;e=a.indexOf(b);if(0<=e){f=0==e||" "==a.charAt(e-1);h=e+c;h=h==d||" "==a.charAt(h);if(f&&h)return e;k=a.lastIndexOf(b);if(k!=e)return f=a.charAt(k-1),h=k+c,h=h==d||" "==a.charAt(h),f&&h?k:a.indexOf(" "+b+" ")}return-1}function Lk(a){if(a){if(-1!=a.indexOf("win"))return"Windows";if(-1!=a.indexOf("mac"))return"Mac";if(-1!=a.indexOf("sunos"))return"Solaris"}return"Unknown"}
function Mk(a){if(a&&-1==a.indexOf("opera")){if(-1!=a.indexOf("trident")||-1!=a.indexOf("msie"))return"ie";if(-1!=a.indexOf("edge"))return"edge";if(-1!=a.indexOf("applewebkit")||-1!=a.indexOf("safari"))return"webkit";if(-1!=a.indexOf("gecko/"))return"gecko"}return"unknown"}Yf.prototype.empty=function(a){for(;a.firstChild;)this.xm.rc(a.firstChild)};
function yj(){var a=(document.body||document.documentElement).style,b="transition";if(/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||11>document.documentMode))return!1;if("string"==typeof a[b])return!0;for(var c="Moz webkit Webkit Khtml O ms".split(" "),b=b.charAt(0).toUpperCase()+b.substr(1),d=0;d<c.length;d++)if("string"==typeof a[c[d]+b])return!0;return!1}function Rj(a){return"Mac"==a.qN&&"webkit"==a.platform?!0:!1}function ag(a){this.options=a}
function nh(a,b,c,d,e){return null!=b?(a=a.options[b],null!=c&&null!=a?(c=a[c],null!=d&&null!=c?(d=c[d],null!=e&&null!=d?d[e]:d):c):a):null}ag.prototype.evaluate=function(a,b){return"function"==typeof a?a.call(this,b):a};function Pk(a,b,c){var d,e,f;"row"==c||"column"==c||"rowEnd"==c||"columnEnd"==c?(d="header",e=c,f=b):"cell"==c&&(d="cell",e=b);return nh(a,d,e,f)}function eg(a,b,c,d){return void 0===d?nh(a,b,c):a.evaluate(Pk(a,b,c),d)}
function Zh(a){a=eg(a,"bandingInterval","row");return null!=a?a:0}function bg(a){a=eg(a,"bandingInterval","column");return null!=a?a:0}ag.prototype.iM=function(){return eg(this,"emptyText")};function gg(a){a=nh(a,"gridlines","horizontal");return null!=a?a:"visible"}function hg(a){a=nh(a,"gridlines","vertical");return null!=a?a:"visible"}function bj(a){var b;b=eg(a,"selectionMode");if(void 0==b)return"none";a=mj(a);b=b[a];return null!=b?b:"none"}
function mj(a){a=eg(a,"selectionMode");if(void 0==a)return"cell";a=a.row;return null!=a&&"none"!=a?"row":"cell"}ag.prototype.getSelection=function(){return eg(this,"selection")};function Ri(a,b,c,d){b=nh(a,"header",b,"resizable",c);return void 0!=d?a.evaluate(b,d):b}function Bh(a,b){return Pk(a,"renderer",b)}function xg(a){a=eg(a,"scrollPolicy");null==a&&(a="auto");return a}
w.sa("oj.ojDataGrid",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{bandingInterval:{row:0,column:0},data:null,gridlines:{horizontal:"visible",vertical:"visible"},scrollPosition:null,selectionMode:null,dnd:{reorder:{row:"disable"}},scrollPolicy:"auto",selection:[],currentCell:null,editMode:"none",header:{row:{className:null,renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",style:null},column:{className:null,renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",
style:null},columnEnd:{className:null,renderer:null,resizable:{width:"disable",height:"disable"},style:null},rowEnd:{className:null,renderer:null,resizable:{width:"disable",height:"disable"},style:null}},cell:{className:null,renderer:null,style:null},resize:null,sort:null,optionChange:null,ready:null,scroll:null,beforeCurrentCell:null,beforeEdit:null,beforeEditEnd:null},_ComponentCreate:function(){this._super();this.root=this.element[0];this.Mf=this.root.getAttribute("id");this.VR();this.wX();this.grid=
new S;this.grid.Sj("render");$(this.root).addClass("oj-datagrid oj-component");$(this.root).attr(w.Components.Zj,this.widgetName)},cf:function(){var a=this;this.Qk(this.root);$(this.root).empty();this._super();this.or=new Xf(this.$b(),this.dB.bind(a));this.LX();this.mt();null!=this.ic&&(this.pn(),this.grid.mF(this.ic));this.grid.nF(this.options);this.grid.oF(this.or);this.grid.zO(this.xca.bind(a));this.grid.DO(this.rc.bind(a));this.grid.AO(this.VR.bind(a));this.grid.EO(this.wX.bind(a));this.grid.CO(this.option.bind(a));
this._focusable({applyHighlight:!0,setupHandlers:function(b,c){a.grid.BO.call(a.grid,function(a){return b($(a))},function(a){return c($(a))})}});this.dx();this.Rw();null!=this.ic&&this.wj(this.root)},dx:function(){var a=this;this.grid.addListener("resize",function(b){a._trigger("resize",b.event,b.ui)});this.grid.addListener("select",function(b){a.option("selection",b.ui.selection,{_context:{originalEvent:b.event,Ia:!0},changed:!0})});this.grid.addListener("currentCell",function(b){a.option("currentCell",
b.ui,{_context:{originalEvent:b.event,Ia:!0},changed:!0})});this.grid.addListener("beforeCurrentCell",function(b){return a._trigger("beforeCurrentCell",b.event,b.ui)});this.grid.addListener("sort",function(b){a._trigger("sort",b.event,b.ui)});this.grid.addListener("keydown",function(b){return a._trigger("keydown",b.event,b.ui)});this.grid.addListener("ready",function(){a._trigger("ready",null,{})});this.grid.addListener("scroll",function(b){a._trigger("scroll",b.event,b.ui)});this.grid.addListener("beforeEdit",
function(b){return a._trigger("beforeEdit",b.event,b.ui)});this.grid.addListener("beforeEditEnd",function(b){return a._trigger("beforeEditEnd",b.event,b.ui)})},refresh:function(){this._super();this.Qk(this.root);$(this.root).empty();!0===this.uga&&(this.options.contextMenu=null);this.LX();null!=this.ic&&(zj&&this.ic instanceof zj&&(this.ic.Me(),this.ic.Init()),this.pn(),this.grid.mF(this.ic));this.grid.nF(this.options);this.grid.oF(this.or);"render"!=this.grid.Vt()&&this.grid.Sj("refresh");this.Rw();
null!=this.ic&&this.wj(this.root)},_destroy:function(){$(this.root).removeAttr(w.Components.Zj);null!=this.ic&&this.ic.Me&&this.ic.Me();this.grid.destroy();this.Qk(this.root);$(this.root).empty()},_setOptions:function(a,b){var c;this.ic?(c=this.Caa(a,b),this._super(a,b),"refresh"==c?this.refresh():"pass"==c&&this.grid.IO(a,b)):(this._super(a,b),null!=a.data&&this.refresh())},Nl:function(){this._super();this.Rw()},Xi:function(){this._super();"visible"===this.grid.Vt()&&this.grid.Sj("hidden")},Ml:function(){this._super();
this.Rw()},xg:function(){this._super();"visible"===this.grid.Vt()&&this.grid.Sj("hidden")},Caa:function(a,b){var c,d="ignore";for(c in a)switch(c){case "bandingInterval":case "currentCell":case "editMode":case "gridlines":case "scrollPosition":case "selection":d="pass";break;case "beforeCurrentCell":case "beforeEdit":case "beforeEditEnd":case "create":case "disabled":case "dnd":case "optionChange":case "ready":case "resize":case "rootAttributes":case "scroll":case "selectionMode":case "sort":break;
case "cell":case "header":if(d=b.subkey,null!=d&&(d=d.split("."),"resizable"==d[1]||"sortable"==d[1])){d="pass";break}default:return"refresh"}return d},xB:function(a,b){return this.options.header[a]&&this.options.header[a].resizable?"disable"!==this.options.header[a].resizable[b]:!1},zw:function(a){return this.options.header[a]?"disable"!==this.options.header[a].sortable:!1},pn:function(){var a,b,c=null,d=null,e=null,f=null,h,k;a=this;if(null==this.options.contextMenu){if(null!=this.ic){b=$("\x3cul\x3e");
b.css("display","none").attr("id",this.Mf+"contextmenu");$(this.root).append(b);if(this.xB("column","width")||this.xB("column","height")||this.xB("row","width")||this.xB("row","height"))c=this.Ag("resize");h=this.ic.getCapability("sort");!this.zw("column")||"column"!==h&&"full"!==h||(d=this.Ag("sortCol"));!this.zw("row")||"row"!==h&&"full"!==h||(d=null!=d?d.add(this.Ag("sortRow")):this.Ag("sortRow"));if("enable"===this.options.dnd.reorder.row)switch(this.ic.getCapability("move")){case "none":break;
default:f=this.Xd("cut").add(this.Xd("paste"))}this.rj()&&w.q.ud()&&(this.xA=!1,e=this.Xd("discontiguousSelection"));if(null!=c||null!=d||null!=f||null!=e)b.append(c).append(d).append(f).append(e),b.ojMenu(),this.uga=!0,this._setOption("contextMenu",b.get(0)),b.on("ojselect",this.vh.bind(this))}}else null==this.KJ&&(this.KJ=[]),b=$(this.options.contextMenu),c=b.find("[data-oj-command]"),k=[],c.each(function(){var b;b=$(this).children("a");if(0===b.length||-1!=a.KJ.indexOf(b.get(0)))b=$(this).attr("data-oj-command").split("-"),
b=a.Ag(b[b.length-1]),$(this).replaceWith(b),k.push(b.children("a").get(0))}),this.KJ=k,b.data("oj-ojMenu")&&b.ojMenu("refresh"),b.on("ojselect",this.vh.bind(this))},Ag:function(a){if("resize"===a)return this.Xd("resize").append($("\x3cul\x3e\x3c/ul\x3e").append(this.Xd("resizeWidth")).append(this.Xd("resizeHeight")));if("sortCol"===a)return this.Xd("sortCol").append($("\x3cul\x3e\x3c/ul\x3e").append(this.Xd("sortColAsc")).append(this.Xd("sortColDsc")));if("sortRow"===a)return this.Xd("sortRow").append($("\x3cul\x3e\x3c/ul\x3e").append(this.Xd("sortRowAsc")).append(this.Xd("sortRowDsc")));
if(-1!=Object.keys(this.or.Rg).indexOf(a))return $(this.Xd(a))},Xd:function(a){var b=$("\x3cli\x3e\x3c/li\x3e");b.attr("data-oj-command",this.$l(a));b.append(this.Cv(a));return b},Cv:function(a){var b="label"+a.charAt(0).toUpperCase()+a.slice(1);"discontiguousSelection"===a&&(b="labelEnableNonContiguous");return $('\x3ca href\x3d"#"\x3e\x3c/a\x3e').text(this.dB(b))},lT:function(){return $(this.options.contextMenu).get(0)},dB:function(a,b){return this.r(a,b)},Faa:function(){var a=$("#"+this.Mf+"spinner").ojInputNumber("option",
"value");$("#"+this.Mf+"dialog").ojDialog("close");this.grid.sD(this.Mq,this.Mj,a);this.Mq.target.focus()},x6:function(a,b){var c,d,e,f,h;c=$("#"+this.Mf+"dialog");e=$("#"+this.Mf+"spinner");0===c.length||0===e.length?(c=$("\x3cdiv\x3e"),c.attr("id",this.Mf+"dialog"),d=$('\x3cdiv class\x3d"oj-dialog-body"\x3e\x3c/div\x3e'),f=$('\x3cdiv class\x3d"oj-dialog-footer"\x3e\x3c/div\x3e'),c.append(d).append(f),e=$('\x3cinput id\x3d"'+this.Mf+'spinner"/\x3e'),h=$('\x3cbutton id\x3d"'+this.Mf+'dialogsubmit"/\x3e'),
d.append(e),f.append(h),$(this.root).append(c),h.ojButton({u:"ojButton",label:this.dB("labelResizeDialogSubmit")}),h.on("click",this.Faa.bind(this)),e.ojInputNumber({u:"ojInputNumber",max:1E3,min:20,step:1,value:b}),c.ojDialog({initialVisibility:"show",title:a,position:{my:"center center",at:"center center",collision:"none",of:$(this.root)}})):(c=$("#"+this.Mf+"dialog"),e.ojInputNumber("option","value",b),c.ojDialog("option","title",a),c.ojDialog("open"))},vh:function(a,b){var c;this.Mj=b.item.attr("data-oj-command");
this.Mj===this.$l("sortColAsc")||this.Mj===this.$l("sortColDsc")||this.Mj===this.$l("cut")||this.Mj===this.$l("paste")?this.grid.sD(this.Mq,this.Mj,null):this.Mj===this.$l("resizeWidth")||this.Mj===this.$l("resizeHeight")?(c=$(this.Mq.target).closest("."+this.gc("cell")),0==c.length&&(c=$(this.Mq.target).closest("."+this.gc("headercell"))),0==c.length&&(c=$(this.Mq.target).closest("."+this.gc("endheadercell"))),0<c.length&&(c=this.Mj===this.$l("resizeWidth")?c.outerWidth():c.outerHeight(),this.x6(b.item.text(),
c))):this.Mj===this.$l("discontiguousSelection")&&(this.xA=!this.xA,this.grid.sD(this.Mq,this.Mj,this.xA),c=this.xA?"labelDisableNonContiguous":"labelEnableNonContiguous",b.item.children().first().text(this.dB(c)))},Se:function(a,b,c){this.grid.S_(b,c,this.f7.bind(this))},f7:function(a,b,c){var d;null!=a&&(this.Mq=b.originalEvent,d=a.launcher,a=a.capabilities,this.lca(a),d="keyboard"===c?{position:{of:d},launcher:$(d)}:{launcher:$(d)},this.Te(b,c,d))},H5:function(a){var b;b=$(this.lT());b.find("[data-oj-command\x3d"+
a+"]").hasClass("oj-disabled")||b.find("[data-oj-command\x3d"+a+"]").addClass("oj-disabled")},Vda:function(a){$(this.lT()).find("[data-oj-command\x3d"+a+"]").removeClass("oj-disabled")},lca:function(a){var b,c;for(b in a)a.hasOwnProperty(b)&&(c=this.or.He(b),"disable"===a[b]?this.H5(c):this.Vda(c))},LS:function(a){var b;b=a.parent();a=a.index();return{rowIndex:b.index(),columnIndex:a}},Jka:function(a){var b;b=this.Q9().children().eq(0).children().eq(a.rowIndex+1);a=this.h9().children().eq(0).children().eq(a.columnIndex);
return{rowHeader:b,columnHeader:a}},sT:function(){return $(this.root)},h9:function(){return $("#"+this.Mf+"\\:columnHeader")},Q9:function(){return $("#"+this.Mf+"\\:rowHeader")},j9:function(){return $("#"+this.Mf+"\\:databody ."+this.gc("row"))},LX:function(){this.ic=null!=this.options.data?this.options.data:null},mt:function(){var a=this.options.selection;null!=a&&this.grid.pF(a)},xca:function(a){a.component=w.Components.Pb(this.element,"ojDataGrid")},iC:function(a){this.grid.yO(a)},Qk:function(a){a&&
this.Ce&&w.q.Hi(a,this.Ce)},wj:function(a){a&&(null==this.Ce&&(this.Ce=this.Ae.bind(this)),w.q.Ch(a,this.Ce))},Ae:function(a,b){0<a&&0<b&&(this.Rw(),this.grid.Fr(a,b))},getNodeBySubId:function(a){var b,c,d,e;if(null==a)return this.element?this.element[0]:null;b=a.subId;if("oj-datagrid-cell"===b)b=a.rowIndex-this.grid.dl(),a=a.columnIndex-this.grid.cl(),d=this.j9().eq(b).children().eq(a);else if("oj-datagrid-sort-icon"===b||"oj-datagrid-sort-ascending"===b||"oj-datagrid-sort-descending"===b||"oj-datagrid-header"===
b){e=a.axis;d=a.index;a=null==a.level?0:a.level;"column"===e?c=this.Da(d,a,$("#"+this.Mf+"\\:columnHeader"),this.grid.fc):"row"===e?c=this.Da(d,a,$("#"+this.Mf+"\\:rowHeader"),this.grid.bb):"columnEnd"===e?c=this.Da(d,a,$("#"+this.Mf+"\\:columnEndHeader"),this.grid.jc):"rowEnd"===e&&(c=this.Da(d,a,$("#"+this.Mf+"\\:rowEndHeader"),this.grid.wb));if(null==c)return null;if("oj-datagrid-sort-icon"===b)return c.children("."+this.gc("sortcontainer")).children().get(0);d="oj-datagrid-sort-ascending"===b?
c.find("."+this.gc("sortascending")):"oj-datagrid-sort-descending"===b?c.find("."+this.gc("sortdescending")):c}return null!=d&&0<d.length?d[0]:null},getSubIdByNode:function(a){var b,c;b=$(a).closest("."+this.gc("cell"));if(0<b.length)return a=this.LS(b),{subId:"oj-datagrid-cell",rowIndex:a.rowIndex+this.grid.dl(),columnIndex:a.columnIndex+this.grid.cl()};c=$(a).closest("."+this.gc("headercell"));0==c.length&&(c=$(a).closest("."+this.gc("endheadercell")));return 0<c.length?(b=c[0][this.jj("context")],
a=$(a).hasClass(this.gc("sortascending"))?"oj-datagrid-sort-ascending":$(a).hasClass(this.gc("sortdescending"))?"oj-datagrid-sort-descending":"oj-datagrid-header",{subId:a,axis:b.axis,index:this.uT(c),level:b.level}):null},getContextByNode:function(a){var b;b=$(a).closest("."+this.gc("cell"));if(0<b.length)return a=b[0][this.jj("context")],b=this.LS(b),{subId:"oj-datagrid-cell",component:a.component,cell:a.cell,data:a.data,datasource:a.datasource,indexes:{row:b.rowIndex+this.grid.dl(),column:b.columnIndex+
this.grid.cl()},keys:{row:a.keys.row,column:a.keys.column},mode:a.mode};b=$(a).closest("."+this.gc("headercell"));0==b.length&&(b=$(a).closest("."+this.gc("endheadercell")));return 0<b.length?(a=b[0][this.jj("context")],{subId:"oj-datagrid-header",axis:a.axis,component:a.component,data:a.data,datasource:a.datasource,depth:a.depth,extent:a.extent,index:this.uT(b),key:a.key,level:a.level}):null},gc:function(a){return this.or.g(a)},jj:function(a){return this.or.zb(a)},$l:function(a){return this.or.He(a)},
Eba:function(){return null!=this.root.offsetParent?!0:!1},Rw:function(){var a=this.grid.Vt();this.Eba()?("render"===a?this.grid.render(this.root):"refresh"===a&&this.grid.refresh(this.root),this.grid.Sj("visible")):"visible"===a&&this.grid.Sj("hidden")},Da:function(a,b,c,d){var e;if(0>b)return null;e=c.children().first().children().last();if(e.hasClass(this.gc("headercell")))return c.children().first().children("."+this.gc("headercell")).eq(a-d);if(e.hasClass(this.gc("endheadercell")))return c.children().first().children("."+
this.gc("endheadercell")).eq(a-d);c=this.tT(a,b,0,c.children().first().children());if(null==c)return null;if(b<=parseInt(c.attr(this.jj("level")),10)+parseInt(c.children().eq(0).attr(this.jj("depth")),10)-1)return c.children().eq(0);d=parseInt(c.attr(this.jj("start")),10);a=a-d+1;return c.children().eq(a)},tT:function(a,b,c,d){var e,f,h,k;if(null==d.eq(1)||d.eq(1).hasClass(this.gc("headercell"))||d.eq(1).hasClass(this.gc("endheadercell")))return b===c?d.eq(0).parent():null;e=d.parent().parent();for(h=
e.hasClass(this.gc("header"))||e.hasClass(this.gc("endheader"))?0:1;h<d.length;h++)if(e=parseInt(d.eq(h).attr(this.jj("start")),10),f=parseInt(d.eq(h).attr(this.jj("extent")),10),k=parseInt(d.eq(h).children().eq(0).attr(this.jj("depth")),10),a>=e&&a<e+f)return b<c+k?d.eq(h):this.tT(a,b,c+k,d.eq(h).children());return null},uT:function(a){var b;if(a.parent().hasClass(this.gc("groupingcontainer"))){b=parseInt(a.parent().attr(this.jj("start")),10);if(a.get(0)===a.parent().children(":first").get(0))return b;
b--}else b=a.hasClass(this.gc("rowheadercell"))?this.grid.bb:a.hasClass(this.gc("colheadercell"))?this.grid.fc:a.hasClass(this.gc("colendheadercell"))?this.grid.jc:this.grid.wb;return b+=a.index()},Qka:function(a){var b;return a.parent().hasClass(this.gc("groupingcontainer"))?(b=parseInt(a.parent().attr(this.jj("level")),10),a.get(0)===a.parent().children(":first").get(0)?b:b+1):0},rj:function(){return null==this.options.selectionMode||"multiple"!==this.options.selectionMode.row&&"multiple"!==this.options.selectionMode.cell?
!1:!0},rc:function(a){$(a).remove()},scrollTo:function(a){this.grid.scroll(a)},whenReady:function(){return this.Dda},VR:function(){var a=this;this.Dda=new Promise(function(b){a.Eda=b})},wX:function(){this.Eda(null)}});function pj(a,b,c){c={cellOrHeader:c,readOnly:!Zg(a),currentMode:Ai(a),activeMove:null!=a.xi,rowMove:Pi(a),columnSort:"column"==c?Zi(a,rg(a)):!1,selection:a.tb(),selectionMode:mj(a.Y),multipleSelection:Hi(a)};return a.Aga[Qk(a.Jia,b,c)]}function Qh(a){return"actionable"===a.Bo}
function Yj(a,b){a.Bo=b?"actionable":"navigation";a.Ee(Qh(a)?"accessibleActionableMode":"accessibleNavigationMode")}g=S.prototype;g.DI=function(a,b){this.BA(b);return!1};g.K$=function(){this.Dn();Rh(this);return!1};g.l$=function(a,b){var c=ai(this,b);return 0<c.length&&a.target==c[c.length-1]?(c[0].focus(),!0):!1};g.k$=function(a,b){var c=ai(this,b);return 0<c.length&&a.target==c[0]?(c[c.length-1].focus(),!0):!1};function Rk(a){null==a.ku&&(a.ku=eg(a.Y,"editMode"));return a.ku}
function Ai(a){null==a.Bo&&(a.Bo="navigation");return a.Bo}function dj(a){return"edit"===Ai(a)}function lj(a){a=Rk(a);return"cellNavigation"===a||"cellEdit"===a?!0:!1}function Zg(a){return"cellEdit"===Rk(a)?!0:!1}g.QI=function(a,b){lj(this)?(this.ku=null,this.a1("editMode","cellEdit",{_context:{kc:!0,Ia:!0}}),W(this.J,this.g("readOnly")),cg(this.J,this.g("editable")),qg(this,""),this.Ee("accessibleEditableMode")):this.DI(0,b);return!1};
g.M$=function(){this.ku=null;this.a1("editMode","cellNavigation",{_context:{kc:!0,Ia:!0}});cg(this.J,this.g("readOnly"));W(this.J,this.g("editable"));qg(this,"none");this.Ee("accessibleNavigationMode")};g.A$=function(a,b){var c;c={event:a,ui:{cell:b,cellContext:b[this.N.zb("context")]}};this.fireEvent("beforeEdit",c)&&(Zj(this,b,"edit",this.g("cellEdit")),bi(this,b),this.yW=!0,ei(this,b)?this.Bo="edit":W(b,this.g("cellEdit")),this.yW=!1);return!1};g.L$=function(a,b){return ej(this,a,b,!1)};
g.iB=function(a,b){var c;c={event:a,ui:{cell:b,cellContext:b[this.N.zb("context")]}};(c=this.fireEvent("beforeEdit",c))?(Zj(this,b,"edit",this.g("cellEdit")),bi(this,b),ei(this,b)?this.Bo="edit":W(b,this.g("cellEdit"))):(c=!1,this.BA(b));return c};g.RI=function(a,b){return ej(this,a,b,!1)};g.o$=function(a,b){return ej(this,a,b,!0)};
function ej(a,b,c,d){b={event:b,ui:{cell:c,cellContext:c[a.N.zb("context")],cancelEdit:d}};d||(Eh(a,c),Rh(a));(d=a.fireEvent("beforeEditEnd",b))?(a.Bo="navigation",Eh(a,c),Rh(a),Zj(a,c,"navigation",a.g("cellEdit"))):(d=!1,Lj(a,a.t),bi(a,c),ei(a,c));return d}
function Sk(a,b,c,d,e,f){var h=!0,k=!0,l,m;if(null!=a.t){if("cell"==a.t.type){dj(a)?(l=!0,h=ej(a,b,c,!1),k=!1):Qh(a)&&a.Dn();if(h){m=a.t;var n=d,p,q,r;if(Mg(a))if(d=e?a.Bc:a.t.indexes,null!=d){a.N.fb()&&(n==T.te?n=T.Oe:n==T.Oe&&(n=T.te));r=a.tb()?a.Xm.bind(a):a.lm.bind(a);p=d.row;q=d.column;switch(n){case T.te:0<q&&(!f||-1==a.Qa)?"row"==mj(a.Y)?(f=a.createIndex(a.t.indexes.row,q-1),Oh(a,f,e),a.lm(f,b)):(f=a.createIndex(p,q-1),Oh(a,f,e),e?ik(a,f,b):r(f,b),0===q-1&&a.Ee("accessibleFirstColumn")):!e&&
k&&(Ph(a,{axis:"row",index:p,level:a.vb-1}),a.yb(a.Da(p,a.vb-1,a.$,a.vb,a.bb),b,!0));break;case T.Oe:a.dq(q)||f&&-1!=a.Ka?-1!=a.Ka&&k?(Ph(a,{axis:"rowEnd",index:p,level:a.vc-1}),a.yb(a.Da(p,a.vc-1,a.oa,a.vc,a.wb),b,!0)):e||(r(d,b),Oh(a,d)):"row"==mj(a.Y)?(f=a.createIndex(a.t.indexes.row,q+1),Oh(a,f,e),a.lm(f,b)):(f=a.createIndex(p,q+1),Oh(a,f,e),e?ik(a,f,b):r(f,b),a.dq(q+1)&&a.Ee("accessibleLastColumn"));break;case T.Sh:0<p&&(!f||-1==a.Ac)?(f=a.createIndex(p-1,q),Oh(a,f,e),e?ik(a,f,b):r(f,b),0===
p-1&&a.Ee("accessibleFirstRow")):!e&&k&&(Ph(a,{axis:"column",index:q,level:a.Qb-1}),a.yb(a.Da(q,a.Qb-1,a.Na,a.Qb,a.fc),b,!0));break;case T.Rh:a.fq(p)||f&&-1!=a.Gb?-1!=a.Gb&&k?(Ph(a,{axis:"columnEnd",index:q,level:a.Hc-1}),a.yb(a.Da(q,a.Hc-1,a.Wa,a.Hc,a.jc),b,!0)):e||(r(d,b),Oh(a,d)):(f=a.createIndex(p+1,q),Oh(a,f,e),e?ik(a,f,b):r(f,b),a.fq(p+1)&&a.Ee("accessibleLastRow"));break;case T.bz:f=a.createIndex(p,0);Oh(a,f);r(f,b);break;case T.az:f=Ng(a,"column")||wg(a)?a.createIndex(p,Math.max(0,a.dc)):
a.createIndex(p,Math.max(0,a.ua.getCount("column")-1));Oh(a,f);r(f,b);break;case T.iz:f=a.createIndex(0,q);Oh(a,f);r(f,b);break;case T.hz:f=Ng(a,"column")||wg(a)?a.createIndex(Math.max(0,a.Ja),q):a.createIndex(Math.max(0,a.ua.getCount("row")-1),q),Oh(a,f),r(f,b)}f=!0}else f=void 0;else f=!0;return ah(a.va)&&l&&m!=a.t?a.iB(b,rg(a)):f}return!0}c=d;if(Mg(a))switch(a.N.fb()&&(c==T.te?c=T.Oe:c==T.Oe&&(c=T.te)),l=a.t.axis,k=a.t.index,e=a.t.level,d=rg(a),h=null!=d?Gh(a,d,"depth"):1,"column"==l?(p=a.Na,q=
a.fc,m=a.Ac,r=a.Qb,n=a.Fi):"row"==l&&(p=a.$,q=a.bb,m=a.Qa,r=a.vb,n=a.mg),"columnEnd"==l&&(c==T.Rh?c=T.Sh:c==T.Sh&&(c=T.Rh),p=a.Wa,q=a.jc,m=a.Gb,r=a.Hc,n=a.Ei),"rowEnd"==l&&(c==T.te?c=T.Oe:c==T.Oe&&(c=T.te),p=a.oa,q=a.wb,m=a.Ka,r=a.vc,n=a.lg),c){case T.te:if(("column"===l||"columnEnd"===l)&&0<k){if(1===r)f=k-1,p=null!=d?d.previousSibling:null;else if(p=a.Da(k-1,e,p,r,q),f=null!=p?Gh(a,p.parentNode,"start"):k-1,e=null!=p?Qj(a,p):e,0>f)break;Ph(a,{axis:l,index:f,level:e});a.yb(p,b)}else("row"===l||"rowEnd"===
l)&&0<e&&(p=a.Da(k,e-1,p,r,q),f=Gh(a,p.parentNode,"start"),e=Qj(a,p),Ph(a,{axis:l,index:f,level:e}),a.yb(p,b));break;case T.Oe:"rowEnd"==l&&f&&-1!=a.Qa?(p=a.Da(k,a.vb,a.$,a.vb,a.bb),Ph(a,{axis:"row",index:k,level:0}),a.yb(p,b)):"row"==l&&f&&-1!=a.Ka?(p=a.Da(k,a.vc,a.oa,a.vc,a.wb),Ph(a,{axis:"rowEnd",index:k,level:0}),a.yb(p,b)):"row"===l||"rowEnd"===l?e+h>=r?(f="row"==l?a.createIndex(k,0):wg(a)?a.createIndex(k,a.dc):a.createIndex(k,a.ua.getCount("column")-1),Oh(a,f),a.tb()?a.Xm(f,b):a.lm(f,b)):(p=
a.Da(k,e+h,p,r,q),f=Gh(a,p.parentNode,"start"),e=Qj(a,p),Ph(a,{axis:l,index:f,level:e}),a.yb(p,b)):(1===r?(f=k+1,p=null!=d?d.nextSibling:null):(f=e===r-1?k+1:null!=d?Gh(a,d.parentNode,"start")+Gh(a,d.parentNode,"extent"):k+1,p=a.Da(f,e,p,r,q),e=null!=p?Qj(a,p):e),f>m&&n||!(Ng(a,"column")||f<a.ua.getCount("column"))||(Ph(a,{axis:l,index:f,level:e}),a.yb(p,b)));break;case T.Sh:if(("row"===l||"rowEnd"===l)&&0<k){if(1===r)f=k-1,p=null!=d?d.previousSibling:null;else if(e===r-1?(f=k-1,p=a.Da(f,e,p,r,q)):
(p=a.Da(Gh(a,d.parentNode,"start")-1,e,p,r,q),f=null!=p?Gh(a,p.parentNode,"start"):k-1),e=null!=p?Qj(a,p):e,0>f)break;Ph(a,{axis:l,index:f,level:e});a.yb(p,b)}else("column"===l||"columnEnd"===l)&&0<e&&(p=a.Da(k,e-1,p,r,q),f=Gh(a,p.parentNode,"start"),e=Qj(a,p),Ph(a,{axis:l,index:f,level:e}),a.yb(p,b));break;case T.Rh:"columnEnd"==l&&f&&-1!=a.Ac?(p=a.Da(k,a.Qb,a.Na,a.Qb,a.fc),Ph(a,{axis:"column",index:k,level:0}),a.yb(p,b)):"column"==l&&f&&-1!=a.Gb?(p=a.Da(k,a.Hc,a.Wa,a.Hc,a.jc),Ph(a,{axis:"columnEnd",
index:k,level:0}),a.yb(p,b)):"column"===l||"columnEnd"===l?e+h>=r?(f="column"==l?a.createIndex(0,k):wg(a)?a.createIndex(a.Ja,k):a.createIndex(a.ua.getCount("row")-1,k),Oh(a,f),a.tb()?a.Xm(f,b):a.lm(f,b)):(p=a.Da(k,e+h,p,r,q),f=Gh(a,p.parentNode,"start"),e=Qj(a,p),Ph(a,{axis:l,index:f,level:e}),a.yb(p,b)):(1===r?(f=k+1,p=null!=d?d.nextSibling:null):(f=e===r-1?k+1:null!=d?Gh(a,d.parentNode,"start")+Gh(a,d.parentNode,"extent"):k+1,p=a.Da(f,e,p,r,q),e=null!=p?Qj(a,p):e),f>m&&n||!(Ng(a,"row")||f<a.ua.getCount("row"))||
(Ph(a,{axis:l,index:f,level:e}),a.yb(p,b)));break;case T.iz:if("row"===l||"rowEnd"===l)d=a.Da(0,e,p,r,q),Ph(a,{axis:l,index:0,level:e}),a.yb(d,b);break;case T.hz:if("row"===l||"rowEnd"===l)k=Ng(a,"row")||wg(a)?Math.max(0,m):Math.max(0,a.ua.getCount("row")-1),d=a.Da(k,e,p,r,q),Ph(a,{axis:l,index:k,level:e}),a.yb(d,b);break;case T.bz:if("column"===l||"columnEnd"===l)d=a.Da(0,e,p,r,q),Ph(a,{axis:l,index:0,level:e}),a.yb(d,b);break;case T.az:if("column"===l||"columnEnd"===l)k=Ng(a,"column")||wg(a)?Math.max(0,
m):Math.max(0,a.ua.getCount("column")-1),d=a.Da(k,e,p,r,q),Ph(a,{axis:l,index:k,level:e}),a.yb(d,b)}return!0}return!1}g.Z$=function(a,b){return Sk(this,a,b,T.te,!1,!1)};g.$$=function(a,b){return Sk(this,a,b,T.Oe,!1,!1)};g.eaa=function(a,b){return Sk(this,a,b,T.Sh,!1,!1)};g.Y$=function(a,b){return Sk(this,a,b,T.Rh,!1,!1)};g.baa=function(a,b){return Sk(this,a,b,T.iz,!1,!1)};g.daa=function(a,b){return Sk(this,a,b,T.hz,!1,!1)};g.V$=function(a,b){return Sk(this,a,b,T.bz,!1,!1)};
g.X$=function(a,b){return Sk(this,a,b,T.az,!1,!1)};g.caa=function(a,b){return Sk(this,a,b,T.te,!1,!0)};g.aaa=function(a,b){return Sk(this,a,b,T.Oe,!1,!0)};g.W$=function(a,b){return Sk(this,a,b,T.Sh,!1,!0)};g.U$=function(a,b){return Sk(this,a,b,T.Rh,!1,!0)};
g.Kaa=function(a,b){var c,d,e;if(!this.tb()||!Hi(this))return!1;if(V(b,this.g("cell")))d=c=e=this.t.indexes.row;else{if(null==this.t||"header"!=this.t.type||"row"!=this.t.axis)return!1;e=this.t.index;c=this.t.level;this.vb-1===c?d=c=e:(d=rg(this),c=Gh(this,d.parentNode,"start"),d=c+Gh(this,d.parentNode,"extent")-1)}c=this.createIndex(c,0);d=this.createIndex(d,-1);kk(this,c,d,a);this.Ee("accessibleRowSelected",{row:e+1});return!0};
g.Iaa=function(a,b){var c,d,e;if(!this.tb()||!Hi(this)||"cell"!=mj(this.Y))return!1;if(V(b,this.g("cell")))d=c=e=this.t.indexes.column;else{if(null==this.t||"header"!=this.t.type||"column"!=this.t.axis)return!1;e=this.t.index;c=this.t.level;this.Qb-1===c?d=c=e:(d=rg(this),c=Gh(this,d.parentNode,"start"),d=c+Gh(this,d.parentNode,"extent")-1)}c=this.createIndex(0,c);d=this.createIndex(-1,d);kk(this,c,d,a);this.Ee("accessibleColumnSelected",{column:e+1});return!0};
g.Jaa=function(){aj(this,!this.oy);return!0};g.Q$=function(a,b){return Sk(this,a,b,T.te,!0,!1)};g.R$=function(a,b){return Sk(this,a,b,T.Oe,!0,!1)};g.S$=function(a,b){return Sk(this,a,b,T.Sh,!0,!1)};g.P$=function(a,b){return Sk(this,a,b,T.Rh,!0,!1)};g.Naa=function(a,b){if("true"==b.getAttribute(this.N.zb("sortable"))){if(!bh(this)){var c=b.getAttribute(this.N.zb("sortDir"));$i(this,a,b,null==c||"descending"===c?"ascending":"descending")}return!0}return this.DI(0,b)};g.Aaa=function(){return!1};
g.I$=function(){return!0};function $f(a){this.grid=a}
function Qk(a,b,c){var d,e,f,h,k,l,m,n,p,q;d=b.keyCode;a="Mac"===a.grid.va.qN?b.metaKey:b.ctrlKey;e=b.shiftKey;b=b.altKey;f=c.cellOrHeader;h=c.readOnly;k=c.currentMode;l=c.activeMove;m=c.rowMove;n=c.columnSort;p=c.selection;q=c.selectionMode;c=c.multipleSelection;switch(d){case T.lz:if("actionable"===k)return e?"TAB_PREV_IN_CELL":"TAB_NEXT_IN_CELL";if(!h)return e?"FOCUS_LEFT":"FOCUS_RIGHT";break;case T.VE:if("column"===f&&n)return"SORT";if(!b&&h&&"navigation"===k||"cell"!=f)return"ACTIONABLE";if(h||
b){if(b&&h&&"navigation"===k)return"EDITABLE";if(!h&&("navigation"==k||"edit"===k))return"EDIT"}else return e?"FOCUS_UP":"FOCUS_DOWN";break;case T.WE:if("actionable"===k)return"EXIT_ACTIONABLE";if(l)return"CANCEL_REORDER";if(!h){if("navigation"===k)return"EXIT_EDITABLE";if("edit"===k)return"CANCEL_EDIT"}break;case T.kF:if("row"===f&&p&&("cell"==q&&c||"row"==q))return"SELECT_ROW";if("column"===f&&p&&"cell"==q&&c)return"SELECT_COLUMN";if("cell"===f)if(h&&"navigation"===k){if(a&&p&&"cell"==q&&c)return"SELECT_COLUMN";
if(e&&p&&("cell"==q&&c||"row"==q))return"SELECT_ROW"}else if("navigation"===k)return"DATA_ENTRY";break;case T.iz:if("edit"!==k)return"FOCUS_ROW_FIRST";break;case T.hz:if("edit"!==k)return"FOCUS_ROW_LAST";break;case T.az:if("edit"!==k)return"FOCUS_COLUMN_LAST";break;case T.bz:if("edit"!==k)return"FOCUS_COLUMN_FIRST";break;case T.te:if("actionable"===k)break;else if("edit"!==k)return e&&p&&"cell"==q&&c?"SELECT_EXTEND_LEFT":a&&"column"!=f?"FOCUS_ROW_HEADER":"FOCUS_LEFT";break;case T.Sh:if("actionable"===
k)break;else if("edit"!==k)return e&&p&&c?"SELECT_EXTEND_UP":a&&"row"!=f?"FOCUS_COLUMN_HEADER":"FOCUS_UP";break;case T.Oe:if("actionable"===k)break;else if("edit"!==k)return e&&p&&"cell"==q&&c?"SELECT_EXTEND_RIGHT":a&&"column"!=f?"FOCUS_ROW_END_HEADER":"FOCUS_RIGHT";break;case T.Rh:if("actionable"===k)break;else if("edit"!==k)return e&&p&&c?"SELECT_EXTEND_DOWN":a&&"row"!=f?"FOCUS_COLUMN_END_HEADER":"FOCUS_DOWN";break;case T.XE:if("cell"!=f)return"ACTIONABLE";if(h&&"navigation"===k)return"EDITABLE";
if(!h&&"navigation"==k)return"EDIT";break;case T.Q2:if(e&&p&&c)return"SELECT_DISCONTIGUOUS";break;case T.P2:if(e)break;break;case T.p3:if("navigation"===k&&a&&m)return"PASTE";if(!h&&"navigation"===k)return"DATA_ENTRY";break;case T.q3:if("navigation"===k&&a&&m)return"CUT";if(!h&&"navigation"===k)return"DATA_ENTRY";break;case T.h3:case T.K2:case T.I2:break;case T.gF:if(a&&b)return"READ_CELL";default:if(!h&&"navigation"===k&&"cell"==f)return"DATA_ENTRY"}return"NO_OP"}
w.Components.xa("ojDataGrid","baseComponent",{properties:{bandingInterval:{type:"Object\x3cstring, number\x3e"},cell:{type:"Object"},currentCell:{type:"Object"},data:{},dnd:{type:"Object"},editMode:{type:"string"},gridlines:{type:"Object\x3cstring, string\x3e"},header:{},scrollPolicy:{type:"string"},scrollPosition:{type:"Object\x3cstring, Object\x3e"},selection:{type:"Array\x3cObject\x3e"},selectionMode:{type:"Object\x3cstring, string\x3e"}},methods:{getContextByNode:{},getNodeBySubId:{},getSubIdByNode:{},
refresh:{},scrollTo:{},whenReady:{}},extension:{_widgetName:"ojDataGrid"}});w.Components.register("oj-data-grid",w.Components.getMetadata("ojDataGrid"));function Tk(a){switch(a.which){case 16:case 17:case 18:return!0}return a.metaKey||a.ctrlKey?!0:!1}function Uk(a){a=a.which?a.which:a;return 112<=a&&123>=a}var Vk={x:0,y:0},Wk=function(){var a=1;return function(){return a++}}(),Xk=null;
function Yk(a,b){for(var c=$.isFunction(a[0])?$(a[0]()):$(a[0]),d=-1,e=a.length;++d<e&&(c.context=c[0]=$.isFunction(a[0])?a[d]():a[d])&&!1!==b.call(c[0],d,c););}function Zk(){var a=$("\x3cdiv class\x3d'oj-listbox-measure-scrollbar'\x3e\x3c/div\x3e");a.appendTo("body");var b={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight};a.remove();return b}function $k(a,b){var c,d,e;if(null===a||1>a.length)return[];c=a.split(b);d=0;for(e=c.length;d<e;d+=1)c[d]=$.trim(c[d]);return c}
function al(a){return a.outerWidth(!1)-a.width()}function bl(a){a.on("keydown",function(){void 0===$.data(a,"keyup-change-value")&&$.data(a,"keyup-change-value",a.val())});a.on("keyup",function(b){13===b.which?b.preventDefault():(b=$.data(a,"keyup-change-value"),void 0!==b&&a.val()!==b&&($.removeData(a,"keyup-change-value"),a.trigger("keyup-change")))})}
function cl(a){a.on("mousemove",function(a){if(void 0===Vk||Vk.x!==a.pageX||Vk.y!==a.pageY)$(a.target).trigger("mousemove-filtered",a),Vk.x=a.pageX,Vk.y=a.pageY})}function dl(a){var b=!1,c;return function(){!1===b&&(c=a(),b=!0);return c}}
function el(a){a[0]!==document.activeElement&&window.setTimeout(function(){var b=a[0],c=a.val().length;a.focus();a.is(":visible")&&b===document.activeElement&&(b.setSelectionRange?b.setSelectionRange(c,c):b.createTextRange&&(b=b.createTextRange(),b.collapse(!1),b.select()))},40)}function fl(a){a.preventDefault();a.stopPropagation()}
function gl(a,b){function c(a){return""+a.label}var d=a,e,f;$.isArray(d)&&(f=d,d={Xa:f});!1===$.isFunction(d)&&(f=d,d=function(){return f});var h=d();h&&h.text&&(c=h.text,$.isFunction(c)||(e=h.text,c=function(a){return a[e]}));return function(a){var e={Xa:[]};""!==a.Xo||b?(d()&&Yk($(d().Xa),function(d,f){hl(a,f,e.Xa,b,!0,c)}),a.Eb(e)):a.Eb(d())}}
function il(a,b,c,d){var e=$("\x3coption\x3e");e.addClass("oj-listbox-result oj-listbox-result-selectable oj-listbox-results-depth-"+a);e.attr("role","option");e.attr("id","oj-listbox-result-label-"+Wk());e.text(d(c));e.attr("value",b);return e}function jl(a,b,c){var d=$("\x3coptgroup\x3e");d.addClass("oj-listbox-results-sub");d.attr("label",c(b));a.addClass("oj-listbox-result-with-children");return d}
function kl(a,b,c){function d(a,b,h){var k,l,m,n;b.each(function(){l=$(this);l.is("li")&&(0<l.children("ul").length?(m=l.contents().filter(function(){return 1!==this.nodeType||"ul"!==this.tagName.toLowerCase()}).text(),k=jl(a,m,c),n=l.children("ul"),d(k,n.children(),h+1)):k=il(h,l.attr("oj-data-value"),l.text(),c),k.appendTo(a))})}d(a,b,0)}function ll(a,b,c){c=b[c]||c;return a[c]}
function ml(a,b,c,d){function e(a,b,d,l){for(var m,n,p,q=0,r=b.length;q<r;q++)m=b[q],p=ll(m,l,"children"),n=ll(m,l,"label"),p&&0<p.length?(n=jl(a,n,c),e(n,p,d+1,l.childKeys||{})):(p=ll(m,l,"value"),n=il(d,p,n,c)),n.appendTo(a)}e(a,b,0,d||{})}function nl(a){a.children().remove();a.removeClass("oj-listbox-result-with-children")}
function ol(a,b){return function(c){var d={component:this.A};c.value?d.value=c.value:d.term=c.Xo||"";a(d).then(function(a){var d={Xa:[]};a&&Yk($(a),function(a,e){hl(c,e,d.Xa,b,!1)});c.Eb(d)})}}
function hl(a,b,c,d,e,f){var h,k;b=b[0];!b.label&&d&&d.label&&(b.label=b[d.label]);!b.value&&d&&d.value&&(b.value=b[d.value]);!b.children&&d&&d.children&&(b.children=b[d.children],delete b[d.children]);if(b.children){h={};for(k in b)b.hasOwnProperty(k)&&(h[k]=b[k]);h.children=[];Yk($(b.children),function(b,c){hl(a,c,h.children,d&&d.childKeys?d.childKeys:null,e,f)});(!e||h.children.length||a.Lo(a.Xo,f(h),b))&&c.push(h)}else e&&!a.Lo(a.Xo,f(b),b)||c.push(b)}
function pl(a,b){function c(){}H(c,a,"");c.prototype=$.extend(c.prototype,b);return c}function ql(a){return $.data(a.ka,a.ta+"-last-query-result")}
var Cl=pl(Object,{Nc:function(a){var b=this;return function(){a.apply(b,arguments)}},_init:function(a){var b,c,d=this.ta;b=this.zc;this.A=a.A;this.O=a=this.Wn(a);this.id=a.id;this.c0=!1;void 0!==a.element.data(b)&&null!==a.element.data(b)&&a.element.data(b)._destroy();this.ka=this.Lv();var e=a.rootAttributes;this.tm=e&&e.id?e.id:"ojChoiceId_"+(a.element.attr("id")||"autogen"+Wk());this.tm.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1");this.ka.attr("id",this.tm);this.body=dl(function(){return a.element.closest("body")});
this.ka.attr("style",a.element.attr("style"));this.NL=this.O.element.attr("tabindex");this.O.element.data(b,this).attr("tabindex","-1").before(this.ka);this.ka.data(b,this);this.Xb=this.ka.find(".oj-listbox-drop");this.Xb.data("ojlistbox",this);this.bfa(a.pickerAttributes);this.Xb.attr("data-oj-containerid",this.tm);this.Xa=b=this.ka.find(".oj-listbox-results");this.Xa.on("click",fl);if(e=this.A.jP()){var f=e.attr("id");f?b.attr("aria-labelledby",f):b.attr("aria-label",e.text())}else(e=this.A.element.attr("aria-label"))&&
b.attr("aria-label",e);a.list&&$("#"+a.list).is("ul")&&(b=$("#"+a.list),this.MZ=b.parent(),b.addClass("oj-listbox-results").attr("role","listbox"),this.Xa.replaceWith(b),this.Xa=b=this.ka.find(".oj-listbox-results"),this.Xa.css("display",""));this.search=c="oj-select"==d?this.ka.find("input.oj-listbox-input"):this.ka.find("input."+d+"-input");this.xN=this.I1=0;this.context=null;this.rB();this.ka.on("click",fl);cl(this.Xa);this.Xb.on("mousemove-filtered touchstart touchmove touchend",".oj-listbox-results",
this.Nc(this.QU));$(this.ka).on("change","."+d+"-input",function(a){a.stopPropagation()});$(this.Xb).on("change","."+d+"-input",function(a){a.stopPropagation()});var h=this;bl(c);c.on("keyup-change input paste",this.Nc(this.zx));c.on("focus",function(){c.addClass(d+"-focused");"oj-select"!==d&&h.ka.addClass("oj-focus")});c.on("blur",function(){c.removeClass(d+"-focused");"oj-select"!==d&&h.ka.removeClass("oj-focus")});this.Xb.on("mouseup",".oj-listbox-results",this.Nc(function(a){0<$(a.target).closest(".oj-listbox-result-selectable").length&&
(this.QU(a),this.tK(null,a))}));this.Xb.on("click mouseup mousedown",function(a){a.stopPropagation()});$.isFunction(this.O.uo)&&this.cq();b=a.element.prop("disabled");void 0===b&&(b=!1);this.bj(!b);b=a.element.prop("readonly");void 0===b&&(b=!1);this.Xw(b);Xk=Xk||Zk();this.autofocus=a.element.prop("autofocus");a.element.prop("autofocus",!1);this.autofocus&&this.dj()},aH:function(a){var b=this.Xb;!$(a.target).closest(b).length&&!$(a.target).closest("#"+b.attr("data-oj-containerid")).length&&0<b.length&&
(b=b.data("ojlistbox"),b.close(a))},Fq:function(){this.Xb&&this.Xb.remove()},_destroy:function(){var a=this.vn;isNaN(a)||(delete this.vn,window.clearTimeout(a));var a=this.O.element,b=a.data(this.zc);this.close();this.H1&&(delete this.H1,this.H1=null);this.O.list&&this.Xa&&(this.XG(this.Xa),this.MZ&&this.MZ.append(this.Xa));void 0!==b&&(b.ka.remove(),b.Xb.remove(),a.removeAttr("aria-hidden").removeData(this.zc).off("."+this.ta).prop("autofocus",this.autofocus||!1),this.NL?a.attr({ama:this.NL}):a.removeAttr("tabindex"),
a.show())},XG:function(a){if(a&&a.is("ul")){a.removeClass("oj-listbox-results oj-listbox-result-sub");a.removeAttr("role");for(var b=a.children().length-1;0<=b;b--)this.XG($(a.children()[b]))}else a.is("li")&&((a.hasClass("oj-listbox-placeholder")||a.hasClass("oj-listbox-no-results"))&&a.remove(),a.attr("class")&&a.attr("class",a.attr("class").replace(/\oj-listbox-\S+/g,"")),(b=a.children(".oj-listbox-result-label"))&&b.contents().unwrap(),"none"==a.css("display")&&a.css("display",""),this.XG(a.children("ul")))},
oq:function(a){if(a.is("option"))return{value:a.prop("value"),label:a.text(),element:a.get(),css:a.attr("class"),disabled:a.prop("disabled"),locked:"locked"===a.attr("locked")||!0===a.data("locked")};if(a.is("optgroup"))return{label:a.attr("label"),children:[],element:a.get(),css:a.attr("class")};if(a.is("li")){var b,c=null;(b=a.children())&&0<b.length&&b.is("ul")?(b=a.attr("oj-data-label")?a.attr("oj-data-label"):a.clone().children().remove().end().text().trim(),c=[]):b=a.attr("oj-data-label")?a.attr("oj-data-label"):
a.text().trim();return{value:a.attr("oj-data-value"),label:b,element:a.get(),css:a.attr("class"),children:c}}},Wn:function(a){var b,c,d=this;a.options&&Array.isArray(a.options)&&a.optionsKeys&&(a.options=$.extend(!0,[],a.options));b=a.element;var e=b.get(0).tagName.toLowerCase();"input"===e&&b.attr("list")?this.Yk=c=$("#"+b.attr("list")):"select"===e&&0<b.children().length?this.Yk=c=b:a.list&&(this.Yk=c=$("#"+a.list));a=$.extend({},{cja:function(b,c,k,l){var m,n=this.O.id,p=this.O.optionRenderer;
"function"!==typeof p&&(p=null);m=function(b,c,f,h,l){function y(c,d){if(p){var e={index:C,depth:h,leaf:!d.children,parent:b,data:d,component:a.A,parentElement:c.get(0)},e=p.call(a.A,e);null!==e&&(null===e.parentNode||e.parentNode instanceof DocumentFragment)&&c.get(0).appendChild(e)}else D=a.XZ(d),void 0!==D&&(c.text(D),c.attr("aria-label",D));!0!==k.DD&&(e=c.find(".oj-listbox-highlighter-section"),e.length||(e=c),z(e,k.Xo))}function z(a,b){function c(a,b){var d=0;if(3===a.nodeType){var e=a.data.toUpperCase().indexOf(b);
if(0<=e){d=document.createElement("span");d.className="oj-listbox-highlighter";e=a.splitText(e);e.splitText(b.length);var f=e.cloneNode(!0);d.appendChild(f);e.parentNode.replaceChild(d,e);d=1}}else if(1===a.nodeType&&a.childNodes&&!/(script|style)/i.test(a.tagName))for(e=0;e<a.childNodes.length;++e)e+=c(a.childNodes[e],b);return d}a.length&&b&&b.length&&a.each(function(){c(this,b.toUpperCase())})}function B(a,b){if(b.children&&0<b.children.length){var c=b.element&&$(b.element[0]).is("li")&&$(b.element[0]).children("ul"),
d=c?$(b.element[0]).children("ul"):$("\x3cul\x3e\x3c/ul\x3e");d.hasClass("oj-listbox-result-sub")||d.addClass("oj-listbox-result-sub");m(b,b.children,d,h+1,!1);c||a.append(d)}}var C,F,I,G,E,D;F=d.Kn();l&&null!==F&&!k.Xo&&0>=f.find(".oj-listbox-placeholder").length&&("select"!==e||!d.A.Yj())&&(F={value:"",label:F},E=$("\x3cli\x3e\x3c/li\x3e"),E.addClass("oj-listbox-placeholder oj-listbox-results-depth-0 oj-listbox-result oj-listbox-result-selectable"),E.attr("role","presentation"),I=$(document.createElement("div")),
I.addClass("oj-listbox-result-label"),I.attr("id","oj-listbox-result-label-"+Wk()),I.attr("role","option"),D=a.XZ(F),void 0!==D&&I.text(D),I.attr("aria-label",D),E.append(I),E.data(d.zc,F),f.prepend(E));C=0;for(l=c.length;C<l;C+=1){F=c[C];G=!0===F.disabled;I=!G&&void 0!==n(F);var J=F.element&&$(F.element[0]).is("li");E=J?$(F.element[0]):$("\x3cli\x3e\x3c/li\x3e");E.hasClass("oj-listbox-result")?(F.children&&0<F.children.length&&B(E,F),$(F.element[0]).css("display","")):(E.addClass("oj-listbox-results-depth-"+
h),E.addClass("oj-listbox-result"),E.addClass(I?"oj-listbox-result-selectable":"oj-listbox-result-unselectable"),G&&E.addClass("oj-disabled"),F.children&&E.addClass("oj-listbox-result-with-children"),E.attr("role","presentation"),I=$(document.createElement("div")),I.addClass("oj-listbox-result-label"),I.attr("id","oj-listbox-result-label-"+Wk()),I.attr("role","option"),G&&I.attr("aria-disabled","true"),J||(y(I,F),E.append(I)),F.children&&0<F.children.length&&B(E,F),E.data(d.zc,F),J?($(F.element[0]).contents().filter(function(){return"UL"!==
this.tagName}).wrapAll(I),$(F.element[0]).css("display","")):f.append(E))}};m(null,c,b,0,l)}},rl,a);a.id=function(a){return a.value};a.XZ=function(a){return isNaN(a.label)?a.label:this.A.Op(a.label)};a.bM=function(a){return a&&a.label?isNaN(a.label)?a.label:this.A.Op(a.label):void 0};"select"!==e&&null!==a.manageNewEntry&&(a.manageNewEntry=function(a){var b={};b.value=b.label=$.trim(a);return b});c?a.lr=this.Nc(function(a){var b={Xa:[],Qla:!1},e=a.Xo,l,m;m=function(b,c){var h,r=b.children()&&0<b.children().length&&
b.children().is("ul");if(b.is("option")||b.is("li")&&!r)a.Lo(e,b.text(),b)&&c.push(d.oq(b));else if(b.is("optgroup")||b.is("li")&&r)h=d.oq(b),Yk(b.is("optgroup")?b.children():b.children("ul").children(),function(a,b){m(b,h.children)}),0<h.children.length&&c.push(h)};l=c.children();void 0!==this.Kn()&&0<l.length&&""==l.first().attr("value")&&(l=l.slice(1));Yk(l,function(a,c){m(c,b.Xa)});a.Eb(b)}):"options"in a&&(a.lr=$.isFunction(a.options)?ol(a.options,a.optionsKeys?a.optionsKeys:null):gl(a.options,
a.optionsKeys?a.optionsKeys:null));return a},n7:function(){var a=this.O.element.find(".oj-listbox-header");if(a.length){this.header=$("\x3cli\x3e",{"class":"oj-listbox-result-header oj-listbox-result-unselectable",role:"presentation"});this.header.append(a.children());this.wba();a=$("\x3cul\x3e",{"class":"oj-listbox-results-with-header",role:"listbox"});a.append(this.header);a.appendTo(this.Xa.parent());var b=$("\x3cli\x3e",{role:"presentation"});a.append(b);this.Xa.attr("role","presentation");this.Xa.appendTo(b)}this.c0=
!0},wba:function(){this.Hh=this.header.find("li[role\x3d'option'], li:not([role])");this.Hh.uniqueId();this.header.find("ul").attr("role","presentation");this.header.find("li:not([role])").attr("role","option");this.header.find("a, input, select, textarea, button, object, .oj-component-initnode").each(function(){$(this).attr("tabIndex",-1)})},uV:function(a){var b=!1;this.Hh.each(function(){if($(this).attr("id")===a)return b=!0,!1});return b},E9:function(a){if(!this.Hh)return null;if(!a)return this.Hh.first();
var b=!1,c=null;this.Hh.each(function(){if(b)return c=$(this),!1;b=$(this).attr("id")===a});return c},N9:function(a){if(!this.Hh)return null;var b=null;this.Hh.each(function(){if($(this).attr("id")===a)return!1;b=$(this)});return b},Rea:function(a){var b=a.find(".oj-component .oj-enabled").first();0===b.length&&(b=a.find("a, input, select, textarea, button, object, .oj-component-initnode").first(),0===b.length&&(b=a.children().first()));b&&b.addClass("oj-focus oj-focus-highlight oj-focus-only")},
Yda:function(){this.Hh&&this.Hh.find(".oj-focus").removeClass("oj-focus oj-focus-highlight oj-focus-only")},RY:function(a){a=$.Event(this.zc+"-selecting",{val:this.id(a),object:a});this.O.element.trigger(a);return!a.isDefaultPrevented()},Bk:function(){return!0===this.NZ},rs:function(){var a=this.ts&&!this.Xw;if(a===this.NZ)return!1;this.ka.toggleClass("oj-disabled",!a);this.close();this.NZ=a;return!0},bj:function(a){void 0===a&&(a=!0);this.ts!==a&&(this.ts=a,this.O.element.prop("disabled",!a),this.ka.toggleClass("oj-enabled",
a),this.rs())},vH:function(){this.bj(!1)},Xw:function(a){void 0===a&&(a=!1);if(this.Xw===a)return!1;this.Xw=a;this.O.element.prop("readonly",a);this.rs();return!0},qd:function(){return this.ka.hasClass("oj-listbox-dropdown-open")},l9:function(){return this.ka.children().first()},Cx:function(a,b){if(w.lc.AM(b))this.vn=window.setTimeout($.proxy(this.close,this),1);else{var c=this.ka,d=b.element.element;d.css(a);"bottom"===b.vertical?(c.addClass("oj-listbox-drop-above"),d.addClass("oj-listbox-drop-above")):
(c.removeClass("oj-listbox-drop-above"),d.removeClass("oj-listbox-drop-above"))}},nT:function(){var a={my:"start top",at:"start bottom",of:this.l9(),collision:"flip",using:$.proxy(this.Cx,this)},b="rtl"===w.q.Gj();return w.lc.Nh(a,b)},XJ:function(){var a=this.Xb,b=this.nT();a.css("width",this.ka.outerWidth());a.position(b)},ufa:function(a){return this.qd()||!1===this.ts||!0===this.Xw?!1:this.A._trigger("beforeExpand",a,{component:this.O.element})},oR:function(){this.ka.removeClass("oj-listbox-drop-above");
this.Xb.removeClass("oj-listbox-drop-above")},open:function(a,b){if(!this.ufa(a))return!1;this.nq(a,b);return!0},nq:function(){this.c0||this.n7();this.ka.addClass("oj-listbox-dropdown-open")},pC:function(){if(this.qd()&&"true"!==this.ej().attr("aria-expanded")){this.oR();var a=this.Xb.parent();if("oj-select"===this.ta&&!0!==this.O.multiple&&a&&a.hasClass("oj-listbox-drop-layer"))sl().IE(a,tl);else{this.Xb[0]!==this.body().children().last()[0]&&this.Xb.detach().appendTo(this.body());this.Xb.appendTo(this.body());
this.header&&(this.Xb.find(".oj-listbox-results-with-header").prepend(this.header),this.header.show());a={};a[ul]=$.proxy(this.close,this);a[vl]=$.proxy(this.Fq,this);a[wl]=$.proxy(this.aH,this);a[tl]=$.proxy(this.XJ,this);var b={};b[xl]=this.Xb;b[yl]=this.O.element;b[zl]=a;b[Al]=this.nT();b[Bl]="oj-listbox-drop-layer";sl().open(b);$("#oj-listbox-drop").removeAttr("id");this.Xb.attr("id","oj-listbox-drop");this.Xb.attr("data-oj-containerid",this.tm)}this.XJ();this.ej().attr("aria-expanded",!0)}},
close:function(){if(this.qd()){this.ka.removeClass("oj-listbox-dropdown-open");var a=this.ej().attr("aria-expanded");if(a&&"false"!==a){var a=this.tm,b="scroll."+a,c="resize."+a,d="orientationchange."+a;this.ka.parents().add(window).each(function(){$(this).off(b).off(c).off(d)});this.oR();a={};a[xl]=this.Xb;sl().close(a);this.header&&(this.header.hide(),this.header.appendTo(this.ka));this.Xb.removeAttr("data-oj-containerid");this.Xb.removeAttr("id");this.O.list?this.gx():(this.Xb.detach(),this.Xa.empty());
this.ej().attr("aria-expanded",!1);"ojcombobox"===this.zc&&this.ej().removeAttr("aria-activedescendant");$.removeData(this.ka,this.ta+"-last-term")}}},bfa:function(a){w.Uc.AE(this.Xb,a)},un:function(){},F8:function(){var a=this.Xa,b,c,d,e;c=this.bq();0>c||(0==c?a.scrollTop(0):(b=this.ws().find(".oj-listbox-result-label"),d=$(b[c]),e=d.offset().top+d.outerHeight(!0),c===b.length-1&&(b=a.find("li.oj-listbox-more-results"),0<b.length&&(e=b.offset().top+b.outerHeight(!0))),b=a.offset().top+a.outerHeight(!0),
e>b&&a.scrollTop(a.scrollTop()+(e-b)),e=d.offset().top-a.offset().top,0>e&&"none"!=d.css("display")&&a.scrollTop(a.scrollTop()+e)))},ws:function(){return this.Xa.find(".oj-listbox-result-selectable:not(.oj-disabled, .oj-selected)").filter(function(){return"none"!=$(this).css("display")})},eW:function(a){var b=this.ws(),c=this.bq();if(this.header&&(0>=c||c===b.length-1)){var d=this.ej().attr("aria-activedescendant"),e=this.uV(d);e||(d=null);var f=null;0<a&&(0>c||c===b.length-1)?f=this.E9(d):0>a&&(e&&
0>c||0===c)&&(f=this.N9(d));if(f){this.gx();this.Rea(f);this.ej().attr("aria-activedescendant",f.attr("id"));return}e&&0>a&&(c=0)}for(;-1<=c&&c<b.length;)if(c+=a,c==b.length?c=0:-1==c&&(c=b.length-1),d=$(b[c]),d.hasClass("oj-listbox-result-selectable")&&!d.hasClass("oj-disabled")&&!d.hasClass("oj-selected")){this.bq(c);break}},bq:function(a){var b=this.ws();if(0===arguments.length){var c=b.filter(".oj-hover");c.length||(c=b.children(".oj-hover").closest(".oj-listbox-result"));return b.get().indexOf(c[0])}a>=
b.length&&(a=b.length-1);0>a&&(a=0);this.gx();b=$(b[a]);b.hasClass("oj-listbox-result-with-children")?b.children(".oj-listbox-result-label").addClass("oj-hover"):b.addClass("oj-hover");this.ej().attr("aria-activedescendant",b.find(".oj-listbox-result-label").attr("id"));this.F8()},gx:function(){this.Xa.find(".oj-hover").removeClass("oj-hover");this.Yda();"ojcombobox"===this.zc&&this.ej().removeAttr("aria-activedescendant")},QU:function(a){a=$(a.target).closest(".oj-listbox-result-selectable");if(0<
a.length&&!a.is(".oj-hover")){var b=this.ws();this.bq(b.index(a))}else 0==a.length&&this.gx()},UY:function(a){var b=this.ka.find(".oj-listbox-liveregion");b.length&&b.text(a)},zx:function(a){var b=this,c=this.search.val(),d=$.data(this.ka,this.ta+"-last-term");if(!0===a||!d||c!==d||!0===this.O.multiple)if(d||c||!a||"input"!==a.type)$.data(this.ka,this.ta+"-last-term",c),c.length>=(this.O.minLength||0)?(clearTimeout(this.hja),a&&!0!==a?this.hja=setTimeout(function(){b.PW(a)},70):this.PW(a)):this.close()},
PW:function(a){function b(){f.XJ();if(f.header&&f.Hh.length){var a=f.ws(),b=f.Hh.length+a.length;f.Hh.attr("aria-setsize",b);a.length&&(a=a.children("[role\x3d'option']"),a.attr("aria-setsize",b),a.first().attr("aria-posinset",f.Hh.length+1))}}var c=this.search,d=this.Xa,e=this.O,f=this,h;h=c.val();var k;(e.minLength||0)>h.length?this.close():(this.open(null,!0),k=++this.I1,this.gx(),h=this.search.val(),h=void 0!==h&&null!==h&&(!0!==a||e.Lb||0<e.minLength)?h:"",this.xN=1,e.lr({element:e.element,Xo:h,
page:this.xN,context:null,Lo:e.Lo,Eb:this.Nc(function(h){if(k===this.I1&&this.qd()){this.context=h&&void 0!==h.context?h.context:null;var m;if(!(m=h&&0!==h.Xa.length)){m=e.WZ;if($.isFunction(m))m=!0;else{if(m)throw Error("formatNoMatches must be a function or a false value");m=!1}m=!m}m?($.data(this.ka,this.ta+"-last-query-result",h.Xa),this.pC(),this.EW(d),f.O.cja.call(this,d,h.Xa,{Xo:c.val(),page:this.xN,context:null,DD:a},this.jY()),this.Sw(h,a),b(),this.UY(e.yha(f.A,h.Xa.length))):"oj-select"===
this.ta&&!0!==this.O.multiple||this.header?(h=$("\x3cli\x3e"),h.addClass("oj-listbox-no-results"),m=e.WZ(f.A,c.val()),h.text(m),this.pC(),this.EW(d),d.append(h),b(),this.UY(m)):this.close()}})}))},EW:function(a){this.O.list?(a=a.children(),this.NU(a)):a.empty()},NU:function(a){for(var b=0;b<a.length;b++){$(a[b]).is("LI")&&(($(a[b]).hasClass("oj-listbox-no-results")||$(a[b]).hasClass("oj-listbox-placeholder"))&&$(a[b]).remove(),$(a[b]).css("display","none"),$(a[b]).hasClass("oj-selected")&&$(a[b]).removeClass("oj-selected"));
var c=$(a[b]).children("ul");c&&c.children()&&this.NU(c.children())}},PG:function(a){this.close(a)},zs:function(){el(this.search)},tK:function(a,b){if(this.header){var c=this.ej().attr("aria-activedescendant");if(this.uV(c)){var c=$("#"+c),d=c.find("a, input, select, textarea, button, object").first();0===d.length&&(d=c.children());d.length&&d[0].click();this.close(b);return}}c=this.bq();(d=this.Xa.find(".oj-hover").closest(".oj-listbox-result").data(this.zc))?(this.bq(c),a=a||{},a.trigger="option_selected",
this.Nw(d,a,b),this.yx(d,a,b),b&&"keydown"===b.type&&(this.PZ=!0)):a&&a.Sia&&this.close(b)},Kn:function(){return this.O.element.attr("placeholder")||this.O.element.attr("data-placeholder")||this.O.element.data("placeholder")||this.O.placeholder},Mk:function(){var a=this.Kn();a&&(this.search.attr("placeholder",a),this.ka.removeClass(this.ta+"-allowclear"))},WU:function(){var a;a:{var b,c,d;a=this.O.element.attr("style");if(void 0!==a)for(a=a.split(";"),c=0,d=a.length;c<d;c+=1)if(b=a[c].replace(/\s/g,
""),b=b.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==b&&1<=b.length){a=b[1];break a}a=void 0}null!==a&&this.ka.css("width",a)},Ab:function(){return this.A.option("value")},Uo:function(a,b,c){var d={Pq:!1};c&&(d._context=c);"string"===typeof a?this.A.rb([a],b,d):this.A.rb(a,b,d);this.O.element.val(a)},yx:function(){},jY:function(){return!1},ej:function(){return this.search},kB:function(){return void 0!==this.O.minimumResultsForSearch&&void 0!==this.ka.kB},xe:function(a,
b){for(var c=0;c<a.length;c++)if($(a[c]).data(this.zc).value===b)return a[c];return null}}),rl={HL:!0,Vla:!0,WZ:function(a){return a.r("noMatchesFound")},yha:function(a,b){return 1===b?a.r("oneMatchesFound"):a.r("moreMatchesFound",{num:""+b})},id:function(a){return a.id},Lo:function(a,b){return 0<=(""+b).toUpperCase().indexOf((""+a).toUpperCase())},separator:","},Dl=pl(Cl,{rs:function(){Dl.o.rs.apply(this,arguments)&&this.search.prop("disabled",!this.Bk())},dj:function(){this.qd()&&this.close()},
_destroy:function(){$("label[for\x3d'"+this.search.attr("id")+"']").attr("for",this.O.element.attr("id"));Dl.o._destroy.apply(this,arguments)},YG:function(a){this.selection.data(this.zc)&&(a||w.l.warn("Event should not be null when user modified the value in UI"),"oj-select"===this.ta&&this.A.Yj()||this.Uo([],a),this.search.val(""),this.selection.removeData(this.zc));this.Mk()},cq:function(){this.O.uo.call(null,this.Yk?this.Yk:this.O.element,this.Nc(this.VY))},gs:function(a){if(this.Bk())if(33===
a.which||34===a.which)a.preventDefault();else{switch(a.which){case 38:case 40:this.qd()?this.eW(38===a.which?-1:1):this.open(a);a.preventDefault();return;case 13:this.tK(null,a);a.preventDefault();this.qd()||(this.Ct=!1);return;case 9:this.close(a);this.Ct=!1;return;case 27:this.qd()&&(this.PG(a),a.preventDefault());this.Ct=!1;return}this.Ct=!0}},b7:function(a){this.Bk()&&!this.qd()&&this.open(a)},rB:function(){var a,b=this.ka,c,d=(c=this.O.rootAttributes)&&c.id?c.id:this.O.element.attr("id")||Wk();
this.selection=a=b.find("."+this.ta+"-choice");a.attr("id",this.ta+"-choice-"+d);c=$("label[for\x3d'"+this.O.element.attr("id")+"']");c.attr("id")||c.attr("id",this.ta+"-label-"+d);a.find("."+this.ta+"-input").attr("id",this.ta+"-input-"+d);this.Xa.attr("id")||this.Xa.attr("id","oj-listbox-results-"+d);b=b.find(".oj-listbox-liveregion");b.length&&b.attr("id","oj-listbox-live-"+d);"oj-select"!==this.ta&&this.search.attr("aria-owns",this.Xa.attr("id"));this.search.attr("aria-labelledby",c.attr("id"));
this.O.element.attr("aria-labelledby",c.attr("id"));this.search.attr("id")&&c.attr("for",this.search.attr("id"));this.O.element.attr("aria-label")&&this.search.attr("aria-label",this.O.element.attr("aria-label"));this.O.element.attr("aria-controls")&&this.search.attr("aria-controls",this.O.element.attr("aria-controls"));a.on("keydown",this.Nc(this.gs));a.on("mousedown","abbr",this.Nc(function(a){this.Bk()&&(this.YG(a),a.preventDefault(),a.stopImmediatePropagation(),this.close(a),this.selection.focus())}));
a.on("mousedown",this.Nc(function(b){this.O.element.prop("disabled")&&fl(b);a.removeClass("oj-focus-highlight");this.qd()?this.close(b):this.Bk()&&this.open(b);var c=this.search.parent().attr("aria-hidden");c&&"true"==c?this.selection.focus():this.search.focus();$(b.target).hasClass("oj-combobox-open-icon")&&fl(b);this.ka.addClass("oj-active")}));a.on("mouseup",this.Nc(function(){this.ka.removeClass("oj-active")}));a.on("focus",this.Nc(function(a){fl(a)}));this.search.on("input",this.Nc(function(a){this.A.Ol(this.search.val(),
a)}));this.search.on("focus",this.Nc(function(){this.GW=this.search.val()}));this.search.on("blur keyup",this.Nc(function(a){if("keyup"!==a.type||10===a.keyCode||13===a.keyCode){if(void 0!==this.search.val()&&0>=this.Xa.find(".oj-hover").length&&("keyup"!==a.type||!this.PZ))if(this.O.manageNewEntry){var b=this.search.val(),c=this.O.manageNewEntry(b),d={trigger:"blur"===a.type?"blur":"enter_pressed"},l=this.selection.data(this.zc);!l&&""!==b||l&&l.label!==b||!this.A.isValid()&&b!==this.GW?(this.Nw(c,
d,a),"blur"!==a.type&&this.yx(c,d,a)):this.O.Lb&&"keyup"===a.type&&(l&&l.label===b&&(c=l),this.yx(c,d,a))}else null==this.O.manageNewEntry&&((c=this.selection.data(this.zc),""==this.search.val())?this.YG(a):c||""===this.search.val()?"oj-select"!==this.ta&&(a=this.O.bM(c),void 0!==a&&this.search.val(a)):this.un());this.search.removeClass(this.ta+"-focused");this.ka.removeClass("oj-focus");this.PZ=!1}}));this.WU();this.O.element.hide().attr("aria-hidden",!0);this.Mk()},Wn:function(){var a=Dl.o.Wn.apply(this,
arguments),b=this,c=a.element.get(0).tagName.toLowerCase();if("input"===c&&a.element.attr("list")||"select"===c&&0<a.element.children().length||a.list){var d=a.list?"li":"option";a.uo=function(a,f){var h,k=b.Ab();Array.isArray(k)&&(k=k[0]);void 0!==k&&null!==k&&(h=b.oq(a.find(d).filter(function(){if("li"==d)return this.getAttribute("oj-data-value")===k;if("option"==d)return this.value===k})),"select"===c&&void 0===h&&(k=null));if(void 0===k||null===k)h=b.oq(a.find(d).filter(function(){if("li"==d)return!0===
this.getAttribute("oj-data-selected");if("option"==d)return this.selected}));f(h)};a.validate=function(a,c){var h;void 0!==c&&null!==c&&(h=b.oq(a.find(d).filter(function(){if("li"==d)return this.getAttribute("oj-data-value")===c;if("option"==d)return this.value===c})));return!!h}}else if("options"in a||this.Ab()&&0<this.Ab().length)$.isFunction(a.options)?a.uo=function(c,d){function h(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c===a.id(f))return f;if(f.children&&(f=h(f.children,c)))return f}return null}
var k="";b.Ab()&&b.Ab().length&&(k=b.Ab()[0]);var l=null;if(k){var m=ql(b);m&&(l=h(m,k));l||(m=b.currentItem)&&m.length&&k===a.id(m[0])&&(l=m[0]);l||b.RN?d(l):a.lr({value:[k],Eb:$.isFunction(d)?function(a){a&&a.Xa&&(l=h(a.Xa,k));d(l)}:$.noop})}else d(l)}:(a.uo=function(d,f){var h="";b.Ab()&&b.Ab().length&&(h=b.Ab()[0]);var k="select"==c&&b.A.qp()&&!b.A.Yj()?b.Kn():null,l=null;a.lr({Lo:function(b,c,d){(b=h===a.id(d))&&(l=d);null==k&&(k=d);return b},Eb:$.isFunction(f)?function(){l||"select"!==c||(l=
k);f(l)}:$.noop})},a.validate=function(b,c){var d=null;a.lr({Lo:function(b,e,m){(b=c===a.id(m))&&(d=m);return b},Eb:$.noop});return!!d});return a},Sw:function(a,b,c){var d=-1,e=this;a=this.ws();Yk(a,function(a,b){if(e.Ab()&&e.Ab()[0]===e.id(b.data(e.zc)))return d=a,!1});!1!==c&&!0===b&&0<=d&&this.bq(d)},Nw:function(a,b,c){if(this.RY(a)){var d;b&&b.trigger&&(d={No:{trigger:b.trigger}});this.close(c);this.Uo(0===this.id(a).length?[]:this.id(a),c,d);"blur"!==c.type&&this.zs()}},un:function(){this.search.val("")}}),
El=pl(Dl,{zc:"ojcombobox",ta:"oj-combobox",Lv:function(){return $(document.createElement("div")).attr({"class":"oj-combobox oj-component"}).html("\x3cdiv class\x3d'oj-combobox-choice' tabindex\x3d'-1' role\x3d'presentation'\x3e   \x3cinput type\x3d'text' autocomplete\x3d'off' autocorrect\x3d'off' autocapitalize\x3d'off'       spellcheck\x3d'false' class\x3d'oj-combobox-input' role\x3d'combobox' aria-expanded\x3d'false' aria-autocomplete\x3d'list' /\x3e   \x3cabbr class\x3d'oj-combobox-clear-entry' role\x3d'presentation'\x3e\x3c/abbr\x3e   \x3cspan class\x3d'oj-combobox-divider' role\x3d'presentation'\x3e\x3c/span\x3e   \x3ca class\x3d'oj-combobox-arrow oj-combobox-icon oj-component-icon oj-clickable-icon-nocontext oj-combobox-open-icon'       role\x3d'button' aria-label\x3d'expand'\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d'oj-listbox-drop' style\x3d'display:none' role\x3d'presentation'\x3e   \x3cul class\x3d'oj-listbox-results' role\x3d'listbox'\x3e   \x3c/ul\x3e\x3c/div\x3e")},
bj:function(a){El.o.bj.apply(this,arguments);this.ts?this.ka.find(".oj-combobox-arrow").removeClass("oj-disabled"):this.ka.find(".oj-combobox-arrow").addClass("oj-disabled")},close:function(a){this.qd()&&El.o.close.apply(this,arguments)},nq:function(a,b){El.o.nq.apply(this,arguments);b||this.zx(!0)},gs:function(a){Tk(a)||Uk(a)||El.o.gs.apply(this,arguments)},Rk:function(a){var b,c=[];this.selection.data(this.zc,a);null!==a&&0!=a.length?(b=this.O.bM(a),void 0!==b&&this.search.val()!==b&&this.search.val(b),
this.search.removeClass(this.ta+"-default"),c.push(a)):(this.search.val(""),this.Mk());this.currentItem=c;this.O.Fga&&this.ka.addClass(this.ta+"-allowclear")},VY:function(a){if(void 0===a||null===a)a=(a=this.Ab())?Array.isArray(a)?Array.isArray(a)&&a.length?{label:a[0]}:null:{label:a}:null;this.Rk(a)}}),Fl=pl(Dl,{zc:"ojselect",ta:"oj-select",Ct:!1,Lv:function(){return $(document.createElement("div")).attr({"class":"oj-select oj-component"}).html("\x3cdiv class\x3d'oj-select-choice' tabindex\x3d'0' role\x3d'combobox'      aria-autocomplete\x3d'none' aria-expanded\x3d'false'\x3e  \x3cspan class\x3d'oj-select-chosen'\x3e\x3c/span\x3e  \x3cabbr class\x3d'oj-select-search-choice-close' role\x3d'presentation'\x3e\x3c/abbr\x3e  \x3ca class\x3d'oj-select-arrow oj-component-icon oj-clickable-icon-nocontext oj-select-open-icon' role\x3d'presentation'\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d'oj-listbox-drop' style\x3d'display:none' role\x3d'dialog'\x3e  \x3cdiv class\x3d'oj-listbox-search-wrapper'\x3e  \x3cdiv class\x3d'oj-listbox-search'\x3e    \x3cinput type\x3d'text' autocomplete\x3d'off' autocorrect\x3d'off' autocapitalize\x3d'off'           spellcheck\x3d'false' class\x3d'oj-listbox-input' title\x3d'Search field'            role\x3d'combobox' aria-expanded\x3d'false' aria-autocomplete\x3d'list' /\x3e    \x3cspan class\x3d'oj-listbox-spyglass-box'\x3e      \x3cspan class\x3d'oj-component-icon oj-clickable-icon-nocontext oj-listbox-search-icon' role\x3d'presentation'\x3e       \x3cb role\x3d'presentation'\x3e\x3c/b\x3e\x3c/span\x3e    \x3c/span\x3e  \x3c/div\x3e  \x3c/div\x3e   \x3cul class\x3d'oj-listbox-results' role\x3d'listbox'\x3e   \x3c/ul\x3e\x3c/div\x3e\x3cdiv role\x3d'region' class\x3d'oj-helper-hidden-accessible oj-listbox-liveregion' aria-live\x3d'polite'\x3e\x3c/div\x3e")},
bj:function(a){Fl.o.bj.apply(this,arguments);this.ts?(this.selection.attr("tabindex","0"),this.ka.find(".oj-select-arrow").removeClass("oj-disabled")):(this.selection.attr("tabindex","-1"),this.ka.find(".oj-select-arrow").addClass("oj-disabled"))},close:function(a){this.qd()&&(Fl.o.close.apply(this,arguments),this.selection.attr("aria-expanded",!1).removeAttr("aria-haspopup").removeAttr("aria-owns"),this.search.attr("aria-expanded",!1).removeAttr("aria-controls"),this.PK(a)||this.un(),a instanceof
MouseEvent&&a.target!=this.selection&&a.target!=this.search||el(this.selection),this.ka.find(".oj-listbox-spyglass-box").off("mouseup click"))},nq:function(a,b){Fl.o.nq.apply(this,arguments);var c,d=a.which||a.keyCode;a&&"keydown"==a.type&&(32==d||47<d&&58>d||64<d&&91>d||95<d&&112>d||185<d&&193>d||218<d&&223>d)&&(c=String.fromCharCode(a.which),a.shiftKey||(c=c.toLowerCase()),a.preventDefault());this.Afa(c);b||(c?this.zx():this.zx(!0))},pC:function(){if(this.qd()){var a="true"!==this.selection.attr("aria-expanded");
Fl.o.pC.apply(this,arguments);a&&(this.selection.attr("aria-expanded",!0).attr("aria-haspopup","dialog").attr("aria-owns",this.Xb.attr("id")),this.search.attr("aria-expanded",!0).attr("aria-controls",this.Xa.attr("id")+" "+this.ka.find(".oj-listbox-liveregion").attr("id")))}},rB:function(){var a=this.tm+"_selected";this.text=this.ka.find(".oj-select-chosen").attr("id",a);Fl.o.rB.apply(this,arguments);this.selection.attr({"aria-labelledby":this.search.attr("aria-labelledby"),"aria-describedby":a});
(a=this.O.element.attr("aria-label"))&&this.selection.attr("aria-label",a);this.search.on("keydown",this.Nc(this.gs));this.search.on("keyup-change input",this.Nc(this.b7));this.search.attr("title",this.A.r("searchField"));var b=this;this.selection.on("blur",function(a){b.PK(a)})},cq:function(){this.BV()?(this.Rk(null),this.close(),this.Mk()):Fl.o.cq.apply(this,arguments)},VY:function(a){if(void 0!==a&&null!==a){var b,c=this.Ab(),c=Array.isArray(c)?c[0]:c;b=this.O.id(a);c!==b&&(void 0===c||null===
c?this.A.options.value=Array.isArray(b)?b:[b]:this.Uo(Array.isArray(b)?b:[b]));this.Rk(a);this.close()}},Rk:function(a){this.selection.data(this.zc,a);null!==a&&this.text.text(a.label);a&&""!=a.id&&this.text.removeClass(this.ta+"-default");this.O.Fga&&this.ka.addClass(this.ta+"-allowclear")},ej:function(){return this.search.attr("aria-expanded")&&this.kB()?this.search:this.selection},BV:function(){if(null===this.Kn())return!1;var a=this.Ab(),a=Array.isArray(a)?a[0]:a;return""===a||void 0===a||null===
a},Kn:function(){return this.O.placeholder},jY:function(){return!0},Mk:function(){var a=this.Kn();this.BV()&&void 0!==a&&(void 0===a&&(a=""),this.text.text(a).addClass(this.ta+"-default"),this.ka.removeClass(this.ta+"-allowclear"))},Uo:function(a,b,c){Fl.o.Uo.call(this,a,b,c);this.selection.data("selectVal",a)},gs:function(a){if(!(Tk(a)&&16!=a.which||Uk(a))){switch(a.which){case 9:this.close(a);this.selection.focus();this.PK(a);return;case 13:if(a.target===this.selection[0]&&!this.qd()){this.open(a);
a.preventDefault();return}}Fl.o.gs.apply(this,arguments);this.Ct&&!this.qd()&&this.open(a)}},PK:function(a){return""==this.text.text()?(this.YG(a),!0):!1},Afa:function(a){var b=!1,c=this.Xb.find(".oj-listbox-search");c&&(this.kB()?(this.Xb.find(".oj-listbox-search-wrapper").removeClass("oj-helper-hidden-accessible"),$(c).removeAttr("aria-hidden"),this.search.val(a),b=!0):(this.Xb.find(".oj-listbox-search-wrapper").addClass("oj-helper-hidden-accessible"),$(c).attr("aria-hidden","true")));el(b?this.search:
this.selection);if(b){var d=this;c.find(".oj-listbox-spyglass-box").on("mouseup click",function(a){d.search.focus();a.preventDefault()})}},kB:function(){var a=this.O.minimumResultsForSearch;return(this.O.list?$("#"+this.O.list).find("li").length:this.Yk?this.Yk[0].length:this.O.options?this.O.options.length:0)>a||this.Ct}}),Gl=pl(Cl,{Wn:function(){var a=Gl.o.Wn.apply(this,arguments),b=this,c=a.element.get(0).tagName.toLowerCase();if("input"===c&&a.element.attr("list")||"select"===c&&0<a.element.children().length||
a.list){var d=a.list?"li":"option";a.uo=function(a,f){var h=[];if(b.Ab())for(var k,l=b.Ab(),m=0;m<l.length;m++){var n=l[m];(k=a.find(d).filter(function(){if("option"===d)return this.value===n;if("li"===d)return this.getAttribute("oj-data-value")===n}))&&k.length?h.push(b.oq(k)):h.push({value:n,label:n})}else"select"!==c&&(k=a.find(d).filter(function(){if("option"===d)return this.selected;if("li"===d)return!0===this.getAttribute("oj-data-selected")}),Yk(k,function(a,c){h.push(b.oq(c))}));f(h)}}else"options"in
a&&(a.uo=$.isFunction(a.options)?function(c,d){function h(){for(var c=[],e=0;e<l.length;e++){for(var h=l[e],k=!1,u=0;u<m.length;u++){var n=m[u];if(h===a.id(n)){c.push(n);m.splice(u,1);k=!0;break}}if(!k){if((u=b.currentItem)&&u.length)for(n=0;n<u.length;n++)if(h===a.id(u[n])){c.push(u[n]);k=!0;break}k||c.push({value:h,label:h})}}d(c)}function k(b,c){for(var d=[],e=0,f=b.length;e<f;e++){var h=b[e];0<=c.indexOf(a.id(h))&&d.push(h);h.children&&(h=k(h.children,c))&&h.length&&$.merge(d,h)}return d}var l=
b.Ab(),m=[],n=ql(b);n&&(m=k(n,l));b.RN?h():a.lr({value:l,Eb:function(a){a&&a.Xa&&(a=k(a.Xa,l))&&a.length&&$.merge(m,a);h()}})}:a.uo||function(c,d){var h=b.Ab(),k=[];a.lr({Lo:function(b,c,d){(b=$.grep(h,function(b){return b===a.id(d)}).length)&&k.push(d);return b},Eb:$.isFunction(d)?function(){for(var b=[],c=0;c<h.length;c++){for(var e=h[c],p=!1,q=0;q<k.length;q++){var r=k[q];if(e===a.id(r)){b.push(r);k.splice(q,1);p=!0;break}}p||b.push({value:e,label:e})}d(b)}:$.noop})});return a},kt:function(a){var b=
this.ka.find("."+this.ta+"-selected-choice.oj-focus");b.length&&a&&a[0]==b[0]||(b.length&&this.O.element.trigger("choice-deselected",b),b.removeClass("oj-focus"),a&&a.length&&(this.close(),a.addClass("oj-focus"),this.ka.find("."+this.ta+"-description").text(a.attr("valueText")+". Press back space to delete.").attr("aria-live","assertive"),this.O.element.trigger("choice-selected",a)))},_destroy:function(){$("label[for\x3d'"+this.search.attr("id")+"']").attr("for",this.O.element.attr("id"));Gl.o._destroy.apply(this,
arguments)},rB:function(){var a="."+this.ta+"-choices",b,c=Wk(),d;this.AN=this.ka.find("."+this.ta+"-search-field");this.selection=b=this.ka.find(a);var e=this;this.selection.on("click","."+this.ta+"-selected-choice:not(."+this.ta+"-locked)",function(){e.search[0].focus();e.kt($(this))});d=$("label[for\x3d'"+this.O.element.attr("id")+"']");d.attr("id")||d.attr("id",this.ta+"-label-"+c);b.find("."+this.ta+"-input").attr("id",this.ta+"-input-"+c);this.Xa.attr("id")||this.Xa.attr("id","oj-listbox-results-"+
c);this.search.attr("aria-owns",this.Xa.attr("id"));this.search.attr("aria-labelledby",d.attr("id"));this.O.element.attr("aria-labelledby",d.attr("id"));this.search.attr("id")&&d.attr("for",this.search.attr("id"));this.O.element.attr("aria-label")&&this.search.attr("aria-label",this.O.element.attr("aria-label"));this.O.element.attr("aria-controls")&&this.search.attr("aria-controls",this.O.element.attr("aria-controls"));this.search.attr("tabindex",this.NL);this.HM=0;this.search.on("keydown",this.Nc(function(a){var c,
d;if(this.Bk()){++this.HM;var e=b.find("."+this.ta+"-selected-choice.oj-focus"),m=e.prev("."+this.ta+"-selected-choice:not(."+this.ta+"-locked)"),n=e.next("."+this.ta+"-selected-choice:not(."+this.ta+"-locked)");c=this.search;c=$(c)[0];var p=0;d=0;"selectionStart"in c?(p=c.selectionStart,d=c.selectionEnd-p):"selection"in document&&(c.focus(),p=document.selection.createRange(),d=document.selection.createRange().text.length,p.moveStart("character",-c.value.length),p=p.text.length-d);c=p;if(!e.length||
37!=a.which&&39!=a.which&&8!=a.which&&46!=a.which&&13!=a.which)if((8!==a.which||1!=this.HM)&&37!=a.which||0!=c||d){this.kt(null);if(this.qd())switch(a.which){case 38:case 40:this.eW(38===a.which?-1:1);a.preventDefault();return;case 13:this.tK(null,a);a.preventDefault();return;case 9:this.close(a);return;case 27:this.PG(a);a.preventDefault();return}if(!(9===a.which||Tk(a)||Uk(a)||27===a.which||13===a.which&&this.search.val()&&"ojcombobox"===this.zc))switch(a.which){case 38:case 40:this.open();a.preventDefault();
break;case 33:case 34:a.preventDefault();break;case 13:a.preventDefault()}}else this.kt(b.find("."+this.ta+"-selected-choice:not(."+this.ta+"-locked)").last()),a.preventDefault();else d=e,37==a.which&&m.length?d=m:39==a.which?d=n.length?n:null:8===a.which?(this.jL(e.first(),a),this.search.width(10),d=m.length?m:n):46==a.which?(this.jL(e.first(),a),this.search.width(10),d=n.length?n:null):13==a.which&&(d=null),this.kt(d),a.preventDefault(),d&&d.length||this.open()}}));this.search.on("keyup",this.Nc(function(){this.HM=
0}));this.search.on("input",this.Nc(function(a){this.A.Ol(this.search.val(),a)}));this.search.on("blur keyup",this.Nc(function(a){if("keyup"!==a.type||10===a.keyCode||13===a.keyCode){if(this.O.manageNewEntry&&this.search.val()&&0>=this.Xa.find(".oj-hover").length){var b=this.O.manageNewEntry(this.search.val());this.Nw(b,{trigger:"blur"===a.type?"blur":"enter_pressed"},a)}this.search.removeClass(this.ta+"-focused");this.ka.removeClass("oj-focus");this.kt(null);this.qd()||this.un();a.stopImmediatePropagation()}}));
this.ka.on("click touchstart",a,this.Nc(function(a){!this.Bk()||0<$(a.target).closest("."+this.ta+"-selected-choice").length||(this.kt(null),this.qd()?this.close(a):(this.open(),this.zs()),a.preventDefault())}));this.ka.on("focus",a,this.Nc(function(){}));this.WU();this.O.element.hide().attr("aria-hidden",!0);this.un()},rs:function(){Gl.o.rs.apply(this,arguments)&&this.search.prop("disabled",!this.Bk())},cq:function(){null!==this.Ab()&&0!==this.Ab().length||"oj-select"!==this.ta&&""!==this.O.element.text()||
(this.Rk([]),this.close(),this.un());if(this.Yk||null!==this.Ab()&&this.Ab().length){var a=this;this.O.uo.call(null,this.Yk?this.Yk:this.O.element,function(b){void 0!==b&&null!==b&&0!==b.length&&(a.Rk(b),a.close(),a.un())})}},un:function(){var a=this.Kn(),b=this.A9();void 0===a||this.Ab()&&0!==this.Ab().length?(this.search.attr("placeholder",""),this.search.val("").width(10),this.AN.width("auto")):(this.search.attr("placeholder",a),this.search.val("").width(0<b?b:this.ka.css("width")),this.AN.width("100%"))},
nq:function(a,b){this.oea();Gl.o.nq.apply(this,arguments);this.zs();b||this.zx(!0);this.search.focus()},close:function(a){this.qd()&&Gl.o.close.apply(this,arguments)},dj:function(){this.close();this.search.focus()},Rk:function(a){var b=[],c=[],d=this;$(a).each(function(){0>b.indexOf(d.id(this))&&(b.push(d.id(this)),c.push(this))});a=c;this.selection.find("."+this.ta+"-selected-choice").remove();$(a).each(function(){d.T5(this)});this.currentItem=a;this.O.element.val(0===b.length?"":b.join(this.O.separator));
d.Sw()},Nw:function(a,b,c){if(this.RY(a)){var d;b&&b.trigger&&(d={No:{trigger:b.trigger}});var e=this.id(a),f=this.Ab()?this.Ab().slice(0):[];this.A.isValid()||(f=$k(this.O.element.val(),this.O.separator));$(a).each(function(){0>f.indexOf(e)&&f.push(e)});this.Uo(f,c,d);!this.select&&this.O.HL||this.Sw(a,!1,!0===this.O.HL);this.O.HL&&(this.close(c),this.search.width(10));b&&b.Sia||this.zs()}},PG:function(a){this.close(a);this.zs()},T5:function(a){var b=!a.locked,c=$("\x3cli class\x3d'"+this.ta+"-selected-choice'\x3e    \x3cdiv\x3e\x3c/div\x3e    \x3ca href\x3d'#' onclick\x3d'return false;' role\x3d'button' aria-label\x3d'remove' class\x3d'"+
this.ta+"-clear-entry       oj-component-icon oj-clickable-icon-nocontext "+this.ta+"-clear-entry-icon' tabindex\x3d'-1'\x3e    \x3c/a\x3e\x3c/li\x3e"),d=$("\x3cli class\x3d'"+this.ta+"-selected-choice "+this.ta+"-locked'\x3e\x3cdiv\x3e\x3c/div\x3e\x3c/li\x3e"),c=b?c:d;this.id(a);d=this.O.bM(a);void 0!==d&&(c.find("div").addClass(this.ta+"-selected-choice-label").text(d),c.find("."+this.ta+"-clear-entry").attr("aria-label",d+" remove"),c.attr("valueText",d));if(b)c.find("."+this.ta+"-clear-entry").on("mousedown",
fl).on("click dblclick",this.Nc(function(a){this.Bk()&&($(a.target).closest("."+this.ta+"-selected-choice").fadeOut("fast",this.Nc(function(){this.jL($(a.target),a);this.selection.find("."+this.ta+"-selected-choice.oj-focus").removeClass("oj-focus");this.close(a);this.zs()})).dequeue(),fl(a))}));c.data(this.zc,a);c.insertBefore(this.AN)},jL:function(a,b){var c=this.Ab()?this.Ab().slice(0):[],d,e;a=a.closest("."+this.ta+"-selected-choice");if(0===a.length)throw"Invalid argument: "+a+". Must be ."+
this.ta+"-selected-choice";if(d=a.data(this.zc)){for(this.A.isValid()||(c=$k(this.O.element.val(),this.O.separator));0<=(e=c.indexOf(this.id(d)));)c.splice(e,1),this.Uo(c,b),this.select&&this.Sw();a.remove()}},Sw:function(){var a=this.Ab()&&(this.O.element.val()||this.A.isValid())?this.Ab():[],b=this.Xa.find(".oj-listbox-result"),c=this.Xa.find(".oj-listbox-result-with-children"),d=this;Yk(b,function(b,c){var h=d.id(c.data(d.zc));a&&0<=a.indexOf(h)&&(c.addClass("oj-selected"),c.find(".oj-listbox-result-selectable").addClass("oj-selected"))});
Yk(c,function(a,b){b.is(".oj-listbox-result-selectable")||0!==b.find(".oj-listbox-result-selectable:not(.oj-selected)").length||b.addClass("oj-selected")});0< !b.filter(".oj-listbox-result:not(.oj-selected)").length&&this.close()},A9:function(){return this.selection.width()-al(this.search)},Rfa:function(a){var b=document.createElement("span");a=document.createTextNode(a);b.style.display="none";b.appendChild(a);$("body").append(b);b=$("body").find("span:last").width();$("body").find("span:last").remove();
return b},oea:function(){var a,b,c,d,e=al(this.search);a=this.Rfa(this.search.val())+10;b=this.search.offset().left;c=this.selection.width();d=this.selection.offset().left;b=c-(b-d)-e;b<a&&(b=c-e);40>b&&(b=c-e);0>=b&&(b=a);this.search.width(Math.floor(b))},Uo:function(a,b,c){var d;d=[];"string"===typeof a&&(a=$k(a,this.O.separator));for(var e=0;e<a.length;e++)0>d.indexOf(a[e])&&d.push(a[e]);a={Pq:!1};c&&(a._context=c);this.A.rb(d,b,a);(this.A.isValid()||0===d.length)&&this.O.element.val(0===d.length?
"":d.join(this.O.separator));this.search.attr("aria-activedescendant",this.O.element.attr("id"))}}),Hl=pl(Gl,{zc:"ojcombobox",ta:"oj-combobox",Lv:function(){return $(document.createElement("div")).attr({"class":"oj-combobox oj-combobox-multi oj-component"}).html("\x3cul class\x3d'oj-combobox-choices'\x3e  \x3cli class\x3d'oj-combobox-search-field'\x3e\x3cspan style\x3d'display:none'\x3e\x26nbsp;\x3c/span\x3e    \x3cinput type\x3d'text' role\x3d'combobox' aria-expanded\x3d'false' aria-autocomplete\x3d'list' autocomplete\x3d'off' autocorrect\x3d'off' autocapitalize\x3d'off' spellcheck\x3d'false' class\x3d'oj-combobox-input'\x3e  \x3c/li\x3e\x3c/ul\x3e\x3cdiv class\x3d'oj-combobox-description oj-helper-hidden-accessible'/\x3e\x3cdiv class\x3d'oj-listbox-drop oj-listbox-drop-multi' style\x3d'display:none'\x3e   \x3cul class\x3d'oj-listbox-results' role\x3d'listbox'\x3e   \x3c/ul\x3e\x3c/div\x3e")}}),
Il=pl(Gl,{zc:"ojselect",ta:"oj-select",Lv:function(){return $(document.createElement("div")).attr({"class":"oj-select oj-select-multi oj-component"}).html("\x3cul class\x3d'oj-select-choices'\x3e  \x3cli class\x3d'oj-select-search-field'\x3e\x3cspan style\x3d'display:none'\x3e\x26nbsp;\x3c/span\x3e    \x3cinput type\x3d'text' role\x3d'combobox' aria-expanded\x3d'false' aria-autocomplete\x3d'list' autocomplete\x3d'off' autocorrect\x3d'off' autocapitalize\x3d'off' spellcheck\x3d'false' class\x3d'oj-listbox-input'\x3e  \x3c/li\x3e\x3c/ul\x3e\x3cdiv class\x3d'oj-select-description oj-helper-hidden-accessible'/\x3e\x3cdiv class\x3d'oj-listbox-drop oj-listbox-drop-multi' style\x3d'display:none'\x3e   \x3cul class\x3d'oj-listbox-results' role\x3d'listbox'\x3e   \x3c/ul\x3e\x3c/div\x3e")}});
w.sa("oj.ojCombobox",$.oj.editableValue,{defaultElement:"\x3cinput\x3e",widgetEventPrefix:"oj",options:{converter:void 0,placeholder:"",list:void 0,multiple:!1,options:null,optionsKeys:null,pickerAttributes:null,optionRenderer:null,minLength:0,beforeExpand:null,rawValue:void 0},widget:function(){return this.sc.ka},_ComponentCreate:function(){this._super();this.Aa()},Vd:function(a,b){this._super(a,b);w.Uc.fl([{U:"disabled",yc:!0},{U:"placeholder"},{U:"required",We:!0,yc:!0},{U:"title"}],b,this);if(void 0===
this.options.value)this.options.value=void 0!==this.element.attr("value")?$k(this.element.val(),","):null;else{var c=this.options.value;Array.isArray(c)?c=c.slice(0):"string"===typeof c&&(c=!0===this.options.multiple?$k(c,","):[c]);this.options.value=c}},Aa:function(){var a={},b=this.options.multiple;a.element=this.element;a.A=this;a=$.extend(this.options,a);this.sc=b?new Hl:new El;this.sc._init(a)},_destroy:function(){this.sc._destroy();this._super()},refresh:function(){this._super();this.sc._destroy();
this.Aa();this.Jz();this.yg("required",this.options.required)},_setOption:function(a,b,c){"value"===a&&(Array.isArray(b)?b=b.slice(0):"string"===typeof b&&(b=!0===this.options.multiple?$k(b,","):[b]),this.sc.RN=c&&c._context&&c._context.No?c._context.No.trigger:null);this._super(a,b,c);"options"===a&&(this.sc.O.options=b,this.sc.O=this.sc.Wn(this.sc.O));"disabled"===a&&(b?this.sc.vH():this.sc.bj())},xg:function(){this._superApply(arguments);this.sc.close()},Xi:function(){this._superApply(arguments);
this.sc.close()},Uh:function(){this.sc.cq()},mn:function(a){this.sc&&(this.sc.O.placeholder=a,this.sc.Mk&&this.sc.Mk())},validate:function(){var a=this.sc.search.val(),b=null;!0!==this.options.multiple?b=void 0===a||null===a||""===a?[]:[a]:(b=[],this.isValid()&&(b=this.sc.Ab()),void 0!==a&&null!==a&&""!==a&&b.push(a));return this.rb(b,null,this.ov)},OB:function(a){var b=[];"string"===typeof a&&(a=!0===this.options.multiple?$k(a,","):[a]);if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=this._super(a[c]);
b.push(d.toString())}return b},_GetMessagingLauncherElement:function(){return this.sc.search},Se:function(a,b,c){a=this._GetMessagingLauncherElement();this.Te(b,c,{launcher:a})},Ud:function(){return this.sc.search},_GetDefaultStyleClass:function(){return"oj-combobox"},hw:function(){if(this.sc&&this.sc.qd())for(var a=$(".oj-listbox-drop"),b=0;b<a.length;b++)if("oj-listbox-drop"==$(a[b]).attr("id")&&$(a[b]).attr("data-oj-containerid")==this.sc.tm)return $(a[b]);return null},xe:function(a,b){for(var c=
0;c<a.length;c++)if($(a[c]).data("ojcombobox").value===b)return a[c];return null},getNodeBySubId:function(a){var b=null,c;if(null==a)return this.sc.ka?this.sc.ka[0]:null;b=this._super(a);if(!b){c=a.subId;"oj-combobox-drop"===c&&(c="oj-listbox-drop");"oj-combobox-results"===c&&(c="oj-listbox-results");"oj-combobox-selection"===c&&(c="oj-combobox-selected-choice");var d=this.hw();switch(c){case "oj-combobox-input":case "oj-combobox-arrow":b=this.widget().find("."+c)[0];break;case "oj-listitem":d&&(b=
d.find(".oj-listbox-result"),b=this.xe(b,a.value));break;case "oj-combobox-remove":b=this.widget().find(".oj-combobox-selected-choice");b=(a=this.xe(b,a.value))?$(a).find(".oj-combobox-clear-entry-icon")[0]:null;break;case "oj-listbox-drop":d&&(b=d[0]);break;case "oj-listbox-results":d&&(b=d.find("."+c)[0]);break;case "oj-combobox-selected-choice":b=this.widget().find("."+c).toArray()}}return b||null},getSubIdByNode:function(a){var b=null;null!=a&&(a=$(a),a.hasClass("oj-combobox-input")?b={subId:"oj-combobox-input"}:
a.hasClass("oj-combobox-arrow")?b={subId:"oj-combobox-arrow"}:a.hasClass("oj-listbox-result")?b={subId:"oj-listitem",value:a.data("ojcombobox").value}:a.hasClass("oj-combobox-clear-entry-icon")&&(b={subId:"oj-combobox-remove",value:a.closest(".oj-combobox-selected-choice").data("ojcombobox").value}));return b}});
w.sa("oj.ojSelect",$.oj.editableValue,{defaultElement:"\x3cselect\x3e",widgetEventPrefix:"oj",options:{minimumResultsForSearch:10,placeholder:null,list:void 0,multiple:!1,options:null,optionsKeys:null,pickerAttributes:null,beforeExpand:null,renderMode:"jet"},widget:function(){return this.select?this.select.ka:this.element.parent()},_ComponentCreate:function(){this._super();this.Aa()},gW:function(a){a?(this.element.attr("disabled",""),this.element.parent().addClass("oj-disabled").removeClass("oj-enabled")):
(this.element.removeAttr("disabled"),this.element.parent().removeClass("oj-disabled").addClass("oj-enabled"))},Eca:function(a){var b=[],c=!this.Yj()&&this.qp();$(a.target).find("option").each(function(){this.selected&&(this.value||c&&""===this.value)&&b.push(this.value)});this.rb(b,a,{Pq:!1,_context:{Ia:!0}})},Gca:function(){var a=this.element;a.wrap("\x3cdiv\x3e").parent().addClass("oj-select-native oj-component oj-select oj-form-control");a.addClass("oj-select-select oj-component-initnode");this.options.multiple?
(a[0].multiple||(a[0].multiple=!0),a.parent().prepend("\x3ca class\x3d'oj-select-arrow oj-component-icon oj-clickable-icon-nocontext oj-select-multiple-open-icon' role\x3d'presentation'\x3e\x3c/a\x3e")):a.parent().prepend("\x3ca class\x3d'oj-select-arrow oj-component-icon oj-clickable-icon-nocontext oj-select-open-icon' role\x3d'presentation'\x3e\x3c/a\x3e");this.gW(this.options.disabled);this.options.list?(kl(a,$("#"+this.options.list).children(),this.Op.bind(this)),a.addClass("oj-select-options-generated")):
this.options.options&&(ml(a,this.options.options,this.Op.bind(this),this.options.optionsKeys),a.addClass("oj-select-options-generated"));this._focusable({element:a,applyHighlight:!0});a.change(this.Eca.bind(this))},Vba:function(){var a={},b=this.options.multiple;a.element=this.element;a.A=this;a=$.extend(this.options,a);this.select=b?new Il:new Fl;this.select._init(a);this.select.ka.addClass("oj-select-jet oj-form-control");this._focusable({element:this.select.selection,applyHighlight:!0})},Aa:function(){this.gq()?
this.Gca():this.Vba()},refresh:function(){this._super();this.fk();this.Aa();this.Jz();this.yg("required",this.options.required)},_destroy:function(){this.fk();this._super()},xg:function(){this._superApply(arguments);this.select&&this.select.close()},Xi:function(){this._superApply(arguments);this.select&&this.select.close()},mn:function(a){if(this.gq()&&null!=a){var b=$(this.element.children("option:first-child"));b&&""===b.attr("value")?(b.text(this.options.placeholder),b.attr("value","")):(b=il(0,
"",a,this.Op.bind(this)),b.addClass("oj-listbox-placeholder"),this.MU(b,this.Yj()),b.prependTo(this.element))}},qp:function(){return"string"===typeof this.options.placeholder},UO:function(){this.dQ(null);this.mn(null)},Vd:function(a,b){this._super(a,b);w.Uc.fl([{U:"disabled",yc:!0},{U:"placeholder"},{U:"required",We:!0,yc:!0},{U:"title"}],b,this);if(void 0===this.options.value)this.options.value=void 0!==this.element.attr("value")?$k(this.element.val(),","):null;else{var c=this.options.value;Array.isArray(c)&&
(c=c.slice(0));this.options.value=c}},validate:function(){if(!0===this.options.multiple){var a=this.select.search.val(),b=[];this.isValid()&&(b=this.select.Ab());void 0!==a&&null!==a&&""!==a&&b.push(a);return this.rb(b,null,this.ov)}return this.select?this.rb(this.select.Ab(),null,this.ov):!0},Uh:function(a){this.select?this.select.cq():null==a?this.qp()?(this.element[0].selectedIndex=0,this.element.addClass("oj-select-default")):(a=this.element.children(),0<a.length&&(this.options.value=[a.first().attr("value")])):
this.element.val(a)},fW:function(){var a=this.element.children("option:not(:disabled)");return 0<a.length?[$(a[0]).attr("value")]:null},Fca:function(a){var b=this.options.value,c=this.element;if(c.hasClass("oj-select-options-generated"))nl(c);else{var d=c.children();0<d.length&&d.remove()}ml(c,a,this.Op.bind(this),this.options.optionsKeys);c.addClass("oj-select-options-generated");a=null;this.qp()&&(this.options.required&&(a=this.fW()),this.mn());null===a&&(a=this.fW());this.options.value=a;this._setOption("value",
b)},bea:function(a){for(var b,c=[],d=0;d<a.length;d++)b=a[d],null!=b&&(0<b.length?(1==c.length&&""===c[0]&&c.pop(),c.push(b)):0==c.length&&c.push(b));return c},_setOption:function(a,b,c){if("value"===a)if(this.qp()&&b&&0==b.length)this._super(a,b,c);else{var d;this.select&&(d=this.select.Yk,d||(d=this.select.O.element));Array.isArray(b)||(b=[b]);this.gq()&&(b=this.bea(b),1==b.length&&""==b[0]?this.element.addClass("oj-select-default"):this.element.removeClass("oj-select-default"));for(var e=[],f=
0;f<b.length;f++)this.select?(this.options.multiple||this.select.O.validate(d,b[f]))&&e.push(b[f]):0<this.element.find("option[value\x3d'"+b[f]+"']").length&&e.push(b[f]);(0<e.length||this.options.multiple)&&this._super(a,e,c)}else"placeholder"===a?this.select?(this.select.O.placeholder=b,this.select.Mk()):(d=this.options.value,d&&0!==d.length&&d[0]||(this.element[0].selectedIndex=0)):"minimumResultsForSearch"===a?this.select&&(this.select.O.minimumResultsForSearch=b):"renderMode"===a&&(this.fk(),
this.options.renderMode=b,this.refresh()),this._super(a,b,c),"disabled"===a?this.select?b?this.select.vH():this.select.bj():this.gW(b):"options"===a?this.select?(this.select.O.options=b,this.select.O=this.select.Wn(this.select.O),this._super("value",this.select.Ab())):this.Fca(b):"required"===a&&this.gq()&&(a=$(this.element.find(".oj-listbox-placeholder")))&&""===a.attr("value")&&this.MU(a,b)},hw:function(){if(this.select&&this.select.qd()){var a=this.select.Xb;if(a&&a.attr("data-oj-containerid")===
this.select.tm)return a}return null},MU:function(a,b){b?(a.attr("disabled",""),a.attr("hidden","")):(a.removeAttr("disabled"),a.removeAttr("hidden"))},gq:function(){return"native"===this.options.renderMode},fk:function(){var a=this.gq();a&&this.element.parent().hasClass("oj-select-native")?(this.element.off("change"),this.element.hasClass("oj-select-options-generated")&&nl(this.element),this.element.parent().hasClass("oj-select-native")&&(this.element.parent().children(".oj-select-arrow").remove(),
this.element.unwrap()),this.element.removeClass("oj-select-select oj-component-initnode"),this.element.attr({"aria-labelledby":""})):!a&&this.select&&(this.select._destroy(),this.select=void 0)},getNodeBySubId:function(a){var b=null,c;if(null==a)return(a=this.widget())?a[0]:null;if(this.gq())return null;b=this._super(a);if(!b){var d=this.hw();c=a.subId;switch(c){case "oj-select-drop":d&&(b=d[0]);break;case "oj-select-results":d&&(b=d.find(".oj-listbox-results")[0]);break;case "oj-select-search":d&&
(b=d.find(".oj-listbox-search")[0]);break;case "oj-select-input":case "oj-listbox-input":!0===this.options.multiple?b=this.widget().find(".oj-listbox-input")[0]:d&&(b=d.find(".oj-listbox-input")[0]);break;case "oj-select-choice":case "oj-select-chosen":case "oj-select-arrow":b=this.widget().find("."+c)[0];break;case "oj-listitem":d&&(b=d.find(".oj-listbox-result"),b=this.select.xe(b,a.value));break;case "oj-select-remove":b=this.widget().find(".oj-select-selected-choice");b=(a=this.select.xe(b,a.value))?
$(a).find(".oj-select-clear-entry-icon")[0]:null;break;case "oj-listbox-result-label":d&&(d=$("#"+this.select.Xa.attr("id")).children(),a=a.index,d.length&&a<d.length&&(b=d.eq(a).find("."+c)[0]))}}return b||null},getSubIdByNode:function(a){if(this.gq())return this._super(a);var b=null;null!=a&&(a=$(a),a.hasClass("oj-listbox-input")?b={subId:"oj-select-input"}:a.hasClass("oj-select-arrow")?b={subId:"oj-select-arrow"}:a.hasClass("oj-listbox-result")?b={subId:"oj-listitem",value:a.data("ojselect").value}:
a.hasClass("oj-select-clear-entry-icon")&&(b={subId:"oj-select-remove",value:a.closest(".oj-select-selected-choice").data("ojselect").value}));return b},_GetDefaultStyleClass:function(){return"oj-select"},_GetMessagingLauncherElement:function(){return this.select?this.select.selection:this.element},Ud:function(){return this.select?this.select.selection:this.element}});
w.Components.Rj({ojSelect:{displayOptions:{converterHint:["none"]},renderMode:w.Components.ad(function(){return(w.Ob.Tc("oj-select-option-defaults")||{}).renderMode})}});
var Jl=pl(El,{zc:"ojinputsearch",ta:"oj-inputsearch",Lv:function(){var a=$(document.createElement("div")).attr({"class":"oj-inputsearch oj-component"}).html("\x3cdiv class\x3d'oj-inputsearch-choice' tabindex\x3d'-1' role\x3d'presentation'\x3e   \x3cinput type\x3d'text' autocomplete\x3d'off' autocorrect\x3d'off' autocapitalize\x3d'off'       spellcheck\x3d'false' class\x3d'oj-inputsearch-input' role\x3d'combobox' aria-expanded\x3d'false' aria-autocomplete\x3d'list' /\x3e   \x3ca class\x3d'oj-inputsearch-search-button oj-inputsearch-search-icon oj-component-icon oj-clickable-icon-nocontext'       role\x3d'button' aria-label\x3d'search'\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d'oj-listbox-drop' style\x3d'display:none' role\x3d'presentation'\x3e   \x3cul class\x3d'oj-listbox-results' role\x3d'listbox'\x3e   \x3c/ul\x3e\x3c/div\x3e"),b=
a.find(".oj-inputsearch-search-button");this.j6(b);return a},j6:function(a){var b=this;a.on("click",function(a){if(b.Bk()){if(b.O.manageNewEntry){var d=b.search.val(),e=b.O.manageNewEntry(d),f={trigger:"search_icon_clicked"},h=b.selection.data(b.zc);!h&&""!==d||h&&h.label!==d||!b.A.isValid()&&d!==b.GW?b.Nw(e,f,a):h&&h.label===d&&(e=h);b.yx(e,f,a)}return!1}}).on("mousedown",function(a){a.stopPropagation();return!1})},bj:function(a){Jl.o.bj.apply(this,arguments);this.ts?this.ka.find(".oj-inputsearch-search-button").removeClass("oj-disabled"):
this.ka.find(".oj-inputsearch-search-button").addClass("oj-disabled")},yx:function(a,b,c){var d;b&&(d=b.trigger);b={_context:{No:{trigger:d}}};a=0===this.id(a).length?[]:this.id(a);void 0!==this.A.gG(a,c,b)&&this.A.isValid()&&("string"===typeof a&&(a=[a]),this.A._trigger("update",c,{value:a,optionMetadata:{trigger:d}}))}});
w.sa("oj.ojInputSearch",$.oj.editableValue,{defaultElement:"\x3cinput\x3e",widgetEventPrefix:"oj",options:{placeholder:void 0,list:void 0,options:null,optionsKeys:null,pickerAttributes:null,optionRenderer:null,minLength:0,beforeExpand:null,rawValue:void 0,optionChange:null,update:null},widget:function(){return this.Lb.ka},_ComponentCreate:function(){this._super();this.Aa()},Vd:function(a,b){this._super(a,b);w.Uc.fl([{U:"disabled",yc:!0},{U:"placeholder"},{U:"required",We:!0,yc:!0},{U:"title"}],b,
this);if(void 0===this.options.value)this.options.value=void 0!==this.element.attr("value")?$k(this.element.val(),","):null;else{var c=this.options.value;Array.isArray(c)?c=c.slice(0):"string"===typeof c&&(c=[c]);this.options.value=c}},Aa:function(){var a={};a.element=this.element;a.A=this;a.Lb=!0;a=$.extend(this.options,a);this.Lb=new Jl;this.Lb._init(a)},_destroy:function(){this.Lb._destroy();this._super()},refresh:function(){this._super();this.Lb._destroy();this.Aa();this.Jz();this.yg("required",
this.options.required)},_setOption:function(a,b,c){"value"===a&&(Array.isArray(b)?b=b.slice(0):"string"===typeof b?b=[b]:w.l.error("ojInputSearch value has to be an array of string or a string."),this.Lb.RN=c&&c._context&&c._context.No?c._context.No.trigger:null);this._super(a,b,c);"options"===a&&(this.Lb.O.options=b,this.Lb.O=this.Lb.Wn(this.Lb.O));"disabled"===a&&(b?this.Lb.vH():this.Lb.bj())},xg:function(){this._superApply(arguments);this.Lb.close()},Xi:function(){this._superApply(arguments);this.Lb.close()},
Uh:function(){this.Lb.cq()},mn:function(a){this.Lb&&(this.Lb.O.placeholder=a,this.Lb.Mk&&this.Lb.Mk())},validate:function(){var a=this.Lb.search.val(),b=null,b=[];this.isValid()&&(b=this.Lb.Ab());b=void 0===a||null===a||""===a?b:[a];return this.rb(b,null,this.ov)},OB:function(a){var b=[];if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=this._super(a[c]);b.push(d.toString())}else"string"===typeof a?(d=this._super(a),b.push(d.toString())):w.l.error("ojInputSearch value has to be an array of string or a string.");
return b},_GetMessagingLauncherElement:function(){return this.Lb.search},Ud:function(){return this.Lb.search},_GetDefaultStyleClass:function(){return"oj-inputsearch"},hw:function(){if(this.Lb&&this.Lb.qd())for(var a=$(".oj-listbox-drop"),b=0;b<a.length;b++)if("oj-listbox-drop"==$(a[b]).attr("id")&&$(a[b]).attr("data-oj-containerid")==this.Lb.tm)return $(a[b]);return null},expand:function(){this.Lb.open()},collapse:function(){this.Lb.close()},getNodeBySubId:function(a){var b=null,c;if(null===a)return this.Lb.ka?
this.Lb.ka[0]:null;b=this._super(a);if(!b)switch(c=a.subId,"oj-inputsearch-search"===c&&(c="oj-inputsearch-search-button"),c){case "oj-inputsearch-input":case "oj-inputsearch-search-button":b=this.widget().find("."+c)[0];break;case "oj-listitem":if(c=this.hw())b=c.find(".oj-listbox-result"),b=this.Lb.xe(b,a.value)}return b||null},getSubIdByNode:function(a){var b=null;null!=a&&(a=$(a),a.hasClass("oj-inputsearch-input")?b={subId:"oj-inputsearch-input"}:a.hasClass("oj-inputsearch-search-button")?b={subId:"oj-inputsearch-search"}:
a.hasClass("oj-listbox-result")&&(b={subId:"oj-listitem",value:a.data("ojinputsearch").value}));return b}});
w.Components.xa("ojCombobox","editableValue",{properties:{converter:{type:"Object"},list:{type:"string"},minLength:{type:"number"},multiple:{type:"boolean"},optionRenderer:{},options:{type:"Array"},optionsKeys:{type:"Object"},pickerAttributes:{type:"Object"},placeholder:{type:"string"},rawValue:{type:"string",readOnly:!0,writeback:!0},value:{type:"string|Array",writeback:!0}},methods:{getNodeBySubId:{},getSubIdByNode:{},refresh:{},validate:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"input",
_widgetName:"ojCombobox"}});w.Components.register("oj-combobox",w.Components.getMetadata("ojCombobox"));
w.Components.xa("ojInputSearch","editableValue",{properties:{list:{type:"string"},minLength:{type:"number"},optionRenderer:{},options:{type:"Array"},optionsKeys:{type:"Object"},pickerAttributes:{type:"Object"},placeholder:{type:"string"},rawValue:{type:"string",readOnly:!0,writeback:!0},value:{type:"string|Array",writeback:!0}},methods:{getNodeBySubId:{},collapse:{},expand:{},getSubIdByNode:{},refresh:{},validate:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojInputSearch"}});
w.Components.register("oj-input-search",w.Components.getMetadata("ojInputSearch"));
w.Components.xa("ojSelect","editableValue",{properties:{list:{type:"string"},minimumResultsForSearch:{type:"number"},multiple:{type:"boolean"},options:{type:"Array"},optionsKeys:{type:"Object"},pickerAttributes:{type:"Object"},placeholder:{type:"string"},renderMode:{type:"string"},value:{type:"Array",writeback:!0}},methods:{getNodeBySubId:{},getSubIdByNode:{},refresh:{},validate:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"select",_widgetName:"ojSelect"}});
w.Components.register("oj-select",w.Components.getMetadata("ojSelect"));function Kl(a,b){b=a.parse(b);var c=w.pa._dateTime(b,"date fullYear month hours minutes seconds".split(" "),!0),d=new Date;d.setFullYear(c.fullYear);d.setDate(c.date);d.setMonth(c.month);d.setHours(c.hours);d.setMinutes(c.minutes);d.setSeconds(c.seconds);d.setMilliseconds(0);return d}function Ll(a){return this.options.converter.parse(a)}
function Ml(a,b){var c=a.translations.dateTimeRange||{},d=[{category:"hint",entries:["min","max","inRange"]},{category:"messageDetail",entries:["rangeUnderflow","rangeOverflow"]},{category:"messageSummary",entries:["rangeUnderflow","rangeOverflow"]}],e={min:a.min,max:a.max,converter:b};if(!$.isEmptyObject(c))for(var f=0,h=d.length;f<h;f++){var k=c[d[f].category];if(k){for(var l={},m=d[f].entries,n=0,p=m.length;n<p;n++)l[m[n]]=k[m[n]];e[d[f].category]=l}}return w.ea.xr(w.kd.VALIDATOR_TYPE_DATETIMERANGE).createValidator(e)}
function Nl(a,b){var c=a.filter("span");b?c.addClass("oj-disabled").removeClass("oj-enabled oj-default"):c.removeClass("oj-disabled").addClass("oj-enabled oj-default")}function Ol(a,b,c){if(!a||b===c.length)return a;var d=b+1;return Ol(a[c[b]],d,c)||Ol(a["*"],d,c)}
function Pl(a){return a.delegate(".oj-datepicker-prev-icon, .oj-datepicker-prev-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-next-icon, .oj-datepicker-next-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-calendar td a","mouseout",function(){$(this).removeClass("oj-hover")}).delegate(".oj-datepicker-prev-icon, .oj-datepicker-prev-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-next-icon, .oj-datepicker-next-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-calendar td a",
"mouseover",function(){$(this).addClass("oj-hover")}).delegate(".oj-datepicker-prev-icon, .oj-datepicker-prev-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-next-icon, .oj-datepicker-next-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-calendar td a","focus",function(){$(this).addClass("oj-focus")}).delegate(".oj-datepicker-prev-icon, .oj-datepicker-prev-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-next-icon, .oj-datepicker-next-icon .oj-clickable-icon-nocontext.oj-component-icon, .oj-datepicker-calendar td a",
"blur",function(){$(this).removeClass("oj-focus")})}function Ql(a){var b=$(a.element[0]).parent().parent();a.jh(b)}function Rl(a){return"native"===a.options.renderMode&&window.cordova&&window.datePicker}var Sl=w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter({year:"numeric"});
w.sa("oj.ojInputDate",$.oj.inputBase,{version:"1.0.0",widgetEventPrefix:"oj",_CLASS_NAMES:"oj-inputdatetime-input",_WIDGET_CLASS_NAMES:"oj-inputdatetime-date-only oj-component oj-inputdatetime",_ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES:"",_INPUT_HELPER_KEY:"inputHelp",_ATTR_CHECK:[{attr:"type",setMandatory:"text"}],_GET_INIT_OPTIONS_PROPS:[{U:"disabled",yc:!0},{U:"pattern"},{U:"title"},{U:"placeholder"},{U:"value",We:Ll},{U:"required",We:!0,yc:!0},{U:"readonly",option:"readOnly",yc:!0},{U:"min",We:Ll},
{U:"max",We:Ll}],eG:"oj-inputdatetime-input-trigger",dG:"oj-inputdatetime-calendar-icon",vF:"oj-datepicker-current-day",Nr:"oj-datepicker-days-cell-over",Kz:"oj-datepicker-unselectable",YO:"oj-datepicker-desc",cv:"oj-datepicker-calendar",o4:"oj-datepicker-div",X3:"oj-datepicker-inline",BF:" oj-inputdatetime-input-container",Y3:" oj-inputdatetime-inline",kn:"selection",jn:"cancelled",Bz:"tab",ve:"close",a4:"enabled",FF:"disabled",options:{datePicker:{footerLayout:"",changeMonth:"select",changeYear:"select",
currentMonthPos:0,daysOutsideMonth:"hidden",numberOfMonths:1,showOn:"focus",stepMonths:"numberOfMonths",stepBigMonths:12,weekDisplay:"none",yearRange:"c-10:c+10"},converter:w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter({day:"2-digit",month:"2-digit",year:"2-digit"}),keyboardEdit:"enabled",max:void 0,min:void 0,pickerAttributes:null,renderMode:"jet",dayFormatter:null},uz:function(){this.ei=this.Dd=null;this.Ek=this.nj=this.yw=this.uq=!1;this.mq=4;this.Zh=this.jf=this.rh=this.Cg=this.Sl=0;this.Pv=
{};this.IB=null;var a=this.element[0].nodeName.toLowerCase();this.od="div"===a||"span"===a;this.Jb=Pl($("\x3cdiv id\x3d'"+this.Ti(this.o4)+"' role\x3d'region' aria-describedby\x3d'"+this.Ti(this.YO)+"' class\x3d'oj-datepicker-content'\x3e\x3c/div\x3e"));$("body").append(this.Jb);if(this.od)this._WIDGET_CLASS_NAMES+=this.Y3,this._CLASS_NAMES="";else{this._ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES+=this.BF;var b=this;this.QB=this.Jb.ojPopup({initialFocus:"none",modality:"modeless",open:function(){"image"===
b.options.datePicker.showOn&&b.Jb.find(".oj-datepicker-calendar").focus()},rootAttributes:{"class":"oj-datepicker-popup"}});(a=this.options.pickerAttributes)&&w.Uc.AE(this.QB.ojPopup("widget"),a)}},_ComponentCreate:function(){this.uz();var a=this._super();this.options.dayMetaData&&(this.options.dayFormatter=function(a){return function(b){return Ol(a,0,[b.fullYear,b.month,b.date])}}(this.options.dayMetaData));if(this.options.value){var b=this.mb().format(this.options.value);this.rb(b,{})}this.kC(this.fj());
this.od?(this.element.append(this.Jb),this.element.addClass(this.X3),this.Jb.css("display","block")):(this.tq(),this.pG());this.ht();Ql(this);return a},cf:function(){var a=this._superApply(arguments);this.sS(this.options.disabled);return a},_setOption:function(a,b,c){var d=null;if("value"===a)return b||(b=null),d=this._super(a,b,c),this.kC(b),this.qh()&&this.vf(!(this.od&&this.Cd&&this.Cd[0]===document.activeElement)),d;if("dayMetaData"===a)this._setOption("dayFormatter",function(a){return Ol(b,0,
[a.fullYear,a.month,a.date])},c);else return d=this._super(a,b,c),"disabled"===a?this.sS(b):"max"===a||"min"===a?(this.Pv[w.kd.VALIDATOR_TYPE_DATETIMERANGE]=this.gB("min"),this.Kr()):"readOnly"===a?(this.tq(),b&&this._hide(this.ve)):"keyboardEdit"===a?this.tq():"dayFormatter"===a?(this.Pv[w.kd.VALIDATOR_TYPE_DATERESTRICTION]=this.gB("dayFormatter"),this.Kr()):"converter"===a&&(this.IB=null),"datePicker"===a&&"currentMonthPos"===c.subkey&&this.kC(this.fj()),c={max:!0,min:!0,dayFormatter:!0,datePicker:!0,
translations:!0},this.qh()&&a in c&&this.vf(),d},tq:function(){this.element.prop("readOnly",!(!this.options.readOnly&&!this.rJ()))},rJ:function(){return this.options.keyboardEdit===this.FF},RO:function(){return this.Dd},_destroy:function(){var a=this._super(),b=$(this.element[0]).parent().parent();this.YF(b);this.element.off("focus touchstart");this.Pg.off("touchstart");this.Dd&&this.Dd.remove();this.od&&(this.element.removeProp("disabled"),this.element.removeProp("readonly"));this.Jb.remove();return a},
qh:function(){return this.od||this.QB.ojPopup("isOpen")||this.Ek},hG:function(){this.ei=this._superApply(arguments);this.ei.attr({role:"combobox","aria-haspopup":"true",tabindex:"-1"})},SJ:function(){var a=this.options.datePicker.showOn;this.uq?(this.uq=!1,this.ei.focus()):"focus"===a?this.show():this.qh()&&this._hide(this.ve)},Dz:function(){if("focus"===this.options.datePicker.showOn)if(this.qh())this.nj=!0,this._hide(this.ve);else{var a=this.element[0]===document.activeElement;this.show();this.uq=
!0;a&&this.ei.focus()}},pG:function(){var a=this.options.datePicker.showOn,b=$("\x3cspan\x3e").addClass(this.eG),c=$("\x3cspan title\x3d'"+this.WH()+"'/\x3e").addClass(this.dG+" oj-clickable-icon-nocontext oj-component-icon");b.append(c);this.element.on("focus",$.proxy(this.SJ,this));this.element.on("touchstart",$.proxy(this.Dz,this));var d=this;this.Pg.on("touchstart",function(){d.yw=!0});"image"===a&&(c.css("display","block"),this.De?(this.element.css("border-top-left-radius",0),this.element.css("border-bottom-left-radius",
0)):(this.element.css("border-top-right-radius",0),this.element.css("border-bottom-right-radius",0)));c.on("click",function(){d.qh()?d._hide(d.ve):(d.show(),d.Jb.find(".oj-datepicker-calendar").focus());return!1});this.ld(c);this.jh(c);this.Dd=b;this.element.after(b)},h8:function(a){var b;b=!1;var c=$.ui.keyCode,d=this.De;if(this.qh())switch(a.keyCode){case 84:a.altKey&&a.ctrlKey&&(this.Jb.find(".oj-datepicker-current").focus(),b=!0);break;case c.SPACE:case c.ENTER:return b=$("td."+this.Nr,this.Jb),
b[0]&&this.GX(this.Cg,this.jf,b[0],a),a.preventDefault(),a.stopPropagation(),!1;case c.ESCAPE:this._hide(this.jn);b=!0;break;case c.PAGE_UP:a.ctrlKey&&a.altKey?this.sb(-this.options.datePicker.stepBigMonths,"M",!0):a.altKey?this.sb(-1,"Y",!0):this.sb(-this.Ln(),"M",!0);b=!0;break;case c.PAGE_DOWN:a.ctrlKey&&a.altKey?this.sb(+this.options.datePicker.stepBigMonths,"M",!0):a.altKey?this.sb(1,"Y",!0):this.sb(+this.Ln(),"M",!0);b=!0;break;case c.END:this.Sl=this.gj(this.jf,this.Cg);this.vf(!0);b=!0;break;
case c.HOME:this.Sl=1;this.vf(!0);b=!0;break;case c.LEFT:this.sb(d?1:-1,"D",!0);a.originalEvent.altKey&&this.sb(a.ctrlKey?-this.options.datePicker.stepBigMonths:-this.Ln(),"M",!0);b=!0;break;case c.UP:this.sb(-7,"D",!0);b=!0;break;case c.RIGHT:this.sb(d?-1:1,"D",!0);a.originalEvent.altKey&&this.sb(a.ctrlKey?+this.options.datePicker.stepBigMonths:+this.Ln(),"M",!0);b=!0;break;case c.DOWN:this.sb(7,"D",!0),b=!0}else a.keyCode===c.HOME&&a.ctrlKey&&(this.show(),b=!0);b&&(a.preventDefault(),a.stopPropagation())},
j8:function(a){var b;b=!1;var c=$.ui.keyCode,d=this.De;if(this.qh())switch(a.keyCode){case 84:a.altKey&&a.ctrlKey&&(this.Jb.find(".oj-datepicker-current").focus(),b=!0);break;case c.SPACE:case c.ENTER:return b=$("td."+this.Nr,this.Jb),b[0]&&this.hC(b[0],"M"),a.preventDefault(),a.stopPropagation(),!1;case c.ESCAPE:this.hide();b=!0;break;case c.PAGE_UP:a.ctrlKey&&a.altKey?this.sb(-this.options.datePicker.stepBigMonths,"M",!0,"month"):a.altKey?this.sb(-1,"Y",!0,"month"):this.sb(-this.Ln(),"M",!0,"month");
b=!0;break;case c.PAGE_DOWN:a.ctrlKey&&a.altKey?this.sb(+this.options.datePicker.stepBigMonths,"M",!0,"month"):a.altKey?this.sb(1,"Y",!0,"month"):this.sb(+this.Ln(),"M",!0,"month");b=!0;break;case c.END:this.Cg=11;this.vf(!0,"month");b=!0;break;case c.HOME:this.Cg=0;this.vf(!0,"month");b=!0;break;case c.LEFT:this.sb(d?1:-1,"M",!0,"month");b=!0;break;case c.UP:this.sb(-3,"M",!0,"month");b=!0;break;case c.RIGHT:this.sb(d?-1:1,"M",!0,"month");b=!0;break;case c.DOWN:this.sb(3,"M",!0,"month"),b=!0}else a.keyCode===
c.HOME&&a.ctrlKey&&(this.show(),b=!0);b&&(a.preventDefault(),a.stopPropagation())},l8:function(a){var b;b=!1;var c=$.ui.keyCode,d=this.De;if(this.qh())switch(a.keyCode){case 84:a.altKey&&a.ctrlKey&&(this.Jb.find(".oj-datepicker-current").focus(),b=!0);break;case c.SPACE:case c.ENTER:return b=$("td."+this.Nr,this.Jb),b[0]&&this.hC(b[0],"Y"),a.preventDefault(),a.stopPropagation(),!1;case c.ESCAPE:this.hide();b=!0;break;case c.PAGE_UP:a.altKey&&this.sb(-1,"Y",!0,"year");b=!0;break;case c.PAGE_DOWN:a.altKey&&
this.sb(1,"Y",!0,"year");b=!0;break;case c.END:this.jf=10*Math.floor(this.jf/10)+9;this.vf(!0,"year");b=!0;break;case c.HOME:this.jf=10*Math.floor(this.jf/10);this.vf(!0,"year");b=!0;break;case c.LEFT:this.sb(d?1:-1,"Y",!0,"year");b=!0;break;case c.UP:this.sb(-3,"Y",!0,"year");b=!0;break;case c.RIGHT:this.sb(d?-1:1,"Y",!0,"year");b=!0;break;case c.DOWN:this.sb(3,"Y",!0,"year"),b=!0}else a.keyCode===c.HOME&&a.ctrlKey&&(this.show(),b=!0);b&&(a.preventDefault(),a.stopPropagation())},vf:function(a,b,
c){this.mq=4;var d;d="year"===b?this.Z8():"month"===b?this.X8():this.W8();d.html="\x3cdiv class\x3d'oj-datepicker-wrapper'\x3e"+d.html+"\x3c/div\x3e";this.Ul=b;if(c){var e=this.Jb.children().first();e.css({position:"absolute",left:0,top:0});this.Jb.prepend(d.html);var f=this.Jb.children().first();c="previous"==c?"end":"start";w.D.Ii(f[0],"open",{effect:"slideIn",direction:c});var h=this;w.D.Ii(e[0],"close",{effect:"slideOut",direction:c,persist:"all"}).then(function(){e&&e.remove();h.cY(a,b,d.aD)})}else this.Jb.empty().append(d.html),
this.cY(a,b,d.aD)},cY:function(a,b,c){var d=$("button",this.Jb);0<d.length&&(1===d.length&&$(d[0]).addClass("oj-datepicker-single-button"),$.each(d,function(a,b){$(b).ojButton()}));this.h6();c&&this.Jb.find(".oj-datepicker-calendar").attr("aria-activedescendant",c);c=this.WA();var d=c[1],e=275;this.Jb.removeClass("oj-datepicker-multi-2 oj-datepicker-multi-3 oj-datepicker-multi-4").width("");if("year"===b||"month"===b)this.Jb.removeClass("oj-datepicker-multi");else{c=this.WA();d=c[1];if(1<d){b=this.Jb.find(".oj-datepicker-calendar");
var f=b.find("tbody a"),f=parseFloat(f.css("width"));b=parseFloat(b.css("margin-left"));isNaN(f)||isNaN(b)||(e=f*("number"===this.options.datePicker.weekDisplay?8:7)+2*b);this.Jb.addClass("oj-datepicker-multi-"+d).css("width",e*d+(this.od?2:0)+"px")}this.Jb[(1!==c[0]||1!==c[1]?"add":"remove")+"Class"]("oj-datepicker-multi")}this.qh()&&this.element.is(":visible")&&!this.element.is(":disabled")&&(a?(b=this.Jb.find(".oj-datepicker-calendar"),b[0]!==document.activeElement&&$(b[0]).focus()):this.od||this.element[0]===
document.activeElement||this.element.focus())},sb:function(a,b,c,d,e){this.options.disabled||(this.DQ(a+("M"===b?this.options.datePicker.currentMonthPos:0),b),this.vf(c,d,e))},j$:function(){var a=new Date;this.Sl=a.getDate();this.rh=this.Cg=a.getMonth();this.Zh=this.jf=a.getFullYear();this.sb(null,null,!0,"day")},hC:function(a,b){var c,d=w.pa,e=this.fj();if(c=a.getAttribute("data-year"))this.jf=this.Zh=c=parseInt(c,10);"M"===b?(this.Cg=this.rh=c=parseInt(a.getAttribute("data-month"),10),d._dateTime(e,
{fullYear:this.jf,month:this.Cg})):d._dateTime(e,{fullYear:this.jf});$("#"+this.Ti(this.cv)).html(this.tg(this.options.monthWide[this.rh])+" "+Sl.format(w.pa.dateToLocalIso(new Date(this.Zh,this.rh,1))));this.sb(0,0,!0,"M"===b?"day":this.Xfa)},GX:function(a,b,c){$(c).hasClass(this.Kz)||this.options.disabled||(this.Sl=$("a",c).html(),this.Cg=a,this.jf=b,a=w.pa,b=this.options.value,c=new Date(this.jf,this.Cg,this.Sl),b=b?a._dateTime(b,{fullYear:c.getFullYear(),month:c.getMonth(),date:c.getDate()}):
a.dateToLocalIso(c),this.Mea(b,{}),this._hide(this.kn))},Mea:function(a,b){var c=this.mb().format(a);this.Uh(c);this.rb(c,b)},mT:function(){return w.pa.dateToLocalIso(this.b$())},kC:function(a){a=w.pa._dateTime(a||this.mT(),["fullYear","month","date"],!0);this.Sl=a.date;this.rh=this.Cg=a.month;this.Zh=this.jf=a.fullYear;this.DQ()},Ln:function(){var a=this.options.datePicker.stepMonths;return $.isNumeric(a)?a:this.options.datePicker.numberOfMonths},ww:function(a){return!this.options.disabled&&("click"===
a.type||"keydown"===a.type&&32===a.keyCode)},iU:function(a){"year"===this.Ul?this.sb(-10,"Y",!0,"year","previous"):"month"===this.Ul?this.sb(-1,"Y",!0,"month","previous"):this.sb(-a,"M",!0,"day","previous")},hU:function(a){"year"===this.Ul?this.sb(10,"Y",!0,"year","next"):"month"===this.Ul?this.sb(1,"Y",!0,"month","next"):this.sb(+a,"M",!0,"day","next")},h6:function(){var a=this.Ln(),b=this;this.Jb.find("[data-handler]").map(function(){$(this).bind(this.getAttribute("data-event"),{prev:function(c){if(b.ww(c))return b.iU(a),
!1},next:function(c){if(b.ww(c))return b.hU(a),!1},today:function(a){if(b.ww(a))return b.j$(),!1},selectDay:function(a){b.GX(+this.getAttribute("data-month"),+this.getAttribute("data-year"),this,a);return!1},selectMonth:function(){b.hC(this,"M");return!1},selectYear:function(){b.hC(this,"Y");return!1},calendarKey:function(a){"year"===b.Ul?b.l8(a):"month"===b.Ul?b.j8(a):b.h8(a)},selectMonthHeader:function(a){if(b.ww(a))return"month"===b.Ul?b.vf(!0,"day"):b.vf(!0,"month"),!1},selectYearHeader:function(a){if(b.ww(a))return"year"===
b.Ul?b.vf(!0,"day"):(b.Xfa=b.Ul,b.vf(!0,"year")),!1}}[this.getAttribute("data-handler")])});this.Jb.find(".oj-datepicker-calendar").map(function(){w.q.lE({element:$(this),applyHighlight:!0})});var c=this.Jb.find(".oj-datepicker-header a, .oj-datepicker-buttonpane a");this.ld(c);this.jh(c)},ht:function(){if(w.q.ud()){var a=this,b=this.Ln(),c=this.De;this.Jb.ng({recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_HORIZONTAL}]]}).on(c?"swiperight":"swipeleft",function(){a.hU(b);return!1}).on(c?"swipeleft":
"swiperight",function(){a.iU(b);return!1})}},rk:function(a){if(a=this.options[a]){var b=this.fj();a=w.pa._minMaxIsoString(a,b)}return a},bw:function(a,b,c,d,e){var f,h=this.De;f=this.tg(this.r("prevText"));d=d?"\x3ca role\x3d'button' href\x3d'#' class\x3d'oj-datepicker-prev-icon oj-enabled oj-default oj-component-icon oj-clickable-icon-nocontext' data-handler\x3d'prev' data-event\x3d'click keydown' title\x3d'"+f+"'\x3e\x3c/a\x3e":"\x3ca class\x3d'oj-datepicker-prev-icon oj-disabled oj-component-icon oj-clickable-icon-nocontext' title\x3d'"+
f+"'\x3e\x3c/a\x3e";f=this.tg(this.r("nextText"));f=e?"\x3ca role\x3d'button' href\x3d'#' class\x3d'oj-datepicker-next-icon oj-enabled oj-default oj-component-icon oj-clickable-icon-nocontext' data-handler\x3d'next' data-event\x3d'click keydown' title\x3d'"+f+"'\x3e\x3c/a\x3e":"\x3ca class\x3d'oj-datepicker-next-icon oj-disabled oj-component-icon oj-clickable-icon-nocontext' title\x3d'"+f+"'\x3e\x3c/a\x3e";e="\x3cdiv class\x3d'oj-datepicker-header"+(this.options.disabled?" oj-disabled ":" oj-enabled oj-default ")+
"'\x3e";e+=/all|left/.test(c)?h?f:d:"";e+=/all|right/.test(c)?h?d:f:"";e+=this.Y8(a,b);return e+"\x3c/div\x3e"},aw:function(a,b){var c="",d=this.tg(this.r("currentText")),e="\x3ca role\x3d'button' href\x3d'#' class\x3d'oj-datepicker-current oj-priority-secondary "+(this.options.disabled?"oj-disabled' disabled":"oj-enabled'")+" data-handler\x3d'today' data-event\x3d'click keydown'\x3e"+d+"\x3c/a\x3e";if(1<a.length){d=0;e=[{index:a.indexOf("today"),content:this.vB(b)?e:""}];for(e.sort(function(a,b){return a.index-
b.index});d<e.length&&0>e[d].index;)d++;for(;d<e.length;)c+=e[d++].content;0<c.length&&(c="\x3cdiv class\x3d'oj-datepicker-buttonpane'\x3e"+c+"\x3c/div\x3e")}return c},W8:function(){var a,b,c=w.pa;a=["date","month","fullYear"];b=this.mb();var d,e,f=this.options.dayWide,h=this.options.dayNarrow,k=this.options.firstDayOfWeek,l,m,n,p,q,r,s,u,v,y="",z,B,C,F,I,G,E,D,J,Q=new Date,Q=new Date(Q.getFullYear(),Q.getMonth(),Q.getDate()),P=this.De;d=this.options.datePicker.footerLayout;var U=this.WA(),K=this.options.datePicker.currentMonthPos,
ha=this.options.dayFormatter;J=null;var ra=1!==U[0]||1!==U[1];e=this.rk("min");var ia;l=this.rk("max");var Aa,K=this.rh-K,fa=this.Zh,Nb=new Date(this.jf,this.Cg,this.Sl);m=this.fj();var Qa=c._dateTime(m,a,!0),Xb=Qa.fullYear,Fa=Qa.date,Qa=Qa.month,na=new Date(Xb,Qa,Fa),$a=this.options.disabled,Hc=this.tg(this.r("weekText"));e&&(e=b.parse(e),ia=c._dateTime(e,a,!0));l&&(l=b.parse(l),Aa=c._dateTime(l,a,!0));c._clearTime(m);0>K&&(K+=12,fa--);if(ia)for(a=new Date(ia.fullYear,ia.month,ia.date),Aa&&0>b.Qc(l,
e)&&(a=new Date(Aa.fullYear,Aa.month,Aa.date));new Date(fa,K,this.gj(fa,K))<a;)K++,11<K&&(K=0,fa++);if(Aa)for(a=new Date(Aa.fullYear,Aa.month-U[0]*U[1]+1,Aa.date),ia&&0>b.Qc(l,e)&&(a=new Date(ia.fullYear,ia.month,ia.date));new Date(fa,K,1)>a;)K--,0>K&&(K=11,fa--);this.rh=K;this.Zh=fa;b=this.hR(-1,fa,K)&&!$a;a=this.hR(1,fa,K)&&!$a;d=this.aw(d,Q);e=this.options.datePicker.weekDisplay;l=this.options.datePicker.daysOutsideMonth;m="";n="all";for(p=0;p<U[0];p++){q="";this.mq=4;for(r=0;r<U[1];r++){n=0===
p?"all":"";B="";if(ra){B+="\x3cdiv class\x3d'oj-datepicker-group";if(1<U[1])switch(r){case 0:B+=" oj-datepicker-group-first";n=0===p?P?"right":"left":"";break;case U[1]-1:B+=" oj-datepicker-group-last";n=0===p?P?"left":"right":"";break;default:B+=" oj-datepicker-group-middle",n=""}B+="'\x3e"}B+=this.bw(K,fa,n,b,a);B+="\x3ctable class\x3d'oj-datepicker-calendar"+("number"===e?" oj-datepicker-weekdisplay":"")+($a?" oj-disabled ":" oj-enabled oj-default ")+"' tabindex\x3d-1 data-handler\x3d'calendarKey' data-event\x3d'keydown' aria-readonly\x3d'true' role\x3d'grid' aria-labelledby\x3d'"+
this.Ti(this.cv)+"'\x3e\x3cthead role\x3d'presentation'\x3e\x3ctr role\x3d'row'\x3e";C="number"===e?"\x3cth class\x3d'oj-datepicker-week-col'\x3e"+this.tg(this.r("weekHeader"))+"\x3c/th\x3e":"";for(n=0;7>n;n++)F=(n+parseInt(k,10))%7,C+="\x3cth role\x3d'columnheader' aria-label\x3d'"+f[F]+"'"+(5<=(n+k+6)%7?" class\x3d'oj-datepicker-week-end'":"")+"\x3e\x3cspan title\x3d'"+f[F]+"'\x3e"+h[F]+"\x3c/span\x3e\x3c/th\x3e";B+=C+"\x3c/tr\x3e\x3c/thead\x3e\x3ctbody role\x3d'presentation'\x3e";C=this.gj(fa,
K);fa===Xb&&K===Qa&&(Fa=Math.min(Fa,C));n=(this.p9(fa,K)-k+7)%7;C=Math.ceil((n+C)/7);this.mq=C=ra?this.mq>C?this.mq:C:C;F=new Date(fa,K,1-n);for(I=0;I<C;I++){B+="\x3ctr role\x3d'row'\x3e";n=this.mb().oo(c.dateToLocalIso(F));G="none"===e?"":"\x3ctd class\x3d'oj-datepicker-week-col' role\x3d'rowheader' aria-label\x3d'"+Hc+" "+n+"'\x3e"+n+"\x3c/td\x3e";for(n=0;7>n;n++){D=F.getMonth()!==K;s=F.getTime()===na.getTime();u="oj-dp-"+this.uuid+"-"+I+"-"+n+"-"+p+"-"+r;(v=F.getTime()===Nb.getTime()&&K===this.Cg)?
(y=u,z=" "+this.Nr):z="";E=[!0,""];J=F.getFullYear();var kc=F.getMonth(),zb=F.getDate();ha&&(J=ha({fullYear:J,month:kc+1,date:zb}))&&(E=[!J.disabled,J.className||""],J.tooltip&&E.push(J.tooltip));kc=F.getTime()===na.getTime();J=D&&"selectable"!==l||!E[0]||this.ada(F,ia,Aa);G+="\x3ctd role\x3d'gridcell' aria-disabled\x3d'"+!!J+"' aria-selected\x3d'"+s+"' id\x3d'"+u+"' class\x3d'"+(5<=(n+k+6)%7?" oj-datepicker-week-end":"")+(D?" oj-datepicker-other-month":"")+z+(J||$a?" "+this.Kz+" oj-disabled":" oj-enabled ")+
(D&&"hidden"===l?"":" "+E[1]+(s?" "+this.vF:"")+(F.getTime()===Q.getTime()?" oj-datepicker-today":""))+"'"+(D&&"hidden"===l||!E[2]?"":" title\x3d'"+E[2].replace(/'/g,"\x26#39;")+"'")+(J?"":" data-handler\x3d'selectDay' data-event\x3d'click' data-month\x3d'"+F.getMonth()+"' data-year\x3d'"+F.getFullYear()+"'")+"\x3e"+(D&&"hidden"===l?"\x26#xa0;":J||$a?"\x3cspan class\x3d'oj-disabled'\x3e"+F.getDate()+"\x3c/span\x3e":"\x3ca role\x3d'button' class\x3d'oj-enabled"+(kc?" oj-selected":"")+(D?" oj-priority-secondary":
"")+"' "+(v?"":"tabindex\x3d'-1' ")+" href\x3d'#'\x3e"+F.getDate()+"\x3c/a\x3e")+"\x3c/td\x3e";F.setDate(F.getDate()+1)}B+=G+"\x3c/tr\x3e"}K++;11<K&&(K=0,fa++);B+="\x3c/tbody\x3e\x3c/table\x3e"+(ra?"\x3c/div\x3e"+(0<U[0]&&r===U[1]-1?"\x3cdiv class\x3d'oj-datepicker-row-break'\x3e\x3c/div\x3e":""):"");q+=B}m+=q}return{html:m+d,aD:y}},Y8:function(a,b){var c=this.options.datePicker.changeMonth,d=this.options.datePicker.changeYear,e=w.za.o0()?"before":"after",f="\x3cdiv class\x3d'oj-datepicker-title' role\x3d'header'\x3e",
h="",k=w.pa,l=this.options.monthWide,m=this.options.disabled;l&&(h="none"===c?h+("\x3cspan class\x3d'oj-datepicker-month'\x3e"+l[a]+"\x3c/span\x3e"):h+("\x3ca role\x3d'button' href\x3d'#' data-handler\x3d'selectMonthHeader' data-event\x3d'click keydown' class\x3d'oj-datepicker-month "+(m?"oj-disabled' disabled":"oj-enabled'")+"\x3e")+(l[a]+"\x3c/a\x3e"),"before"===e&&(f+=h+("select"!==c||"select"!==d?"\x26#xa0;":"")));this.H2||(this.H2="","none"===d?f+="\x3cspan class\x3d'oj-datepicker-year'\x3e"+
Sl.format(k.dateToLocalIso(new Date(b,a,1)))+"\x3c/span\x3e":(f=f+("\x3ca role\x3d'button' href\x3d'#' data-handler\x3d'selectYearHeader' data-event\x3d'click keydown' class\x3d'oj-datepicker-year "+(m?"oj-disabled' disabled":"oj-enabled'")+"\x3e")+(Sl.format(k.dateToLocalIso(new Date(b,a,1)))+"\x3c/a\x3e"),this.H2=null));l&&"after"===e&&(f+=("select"!==c||"select"!==d?"\x26#xa0;":"")+h);f+="\x3cspan class\x3d'oj-helper-hidden-accessible' id\x3d'"+this.Ti(this.cv)+"'\x3e";f+=(l?l[a]+" ":"")+Sl.format(k.dateToLocalIso(new Date(b,
a,1)))+"\x3c/span\x3e";f+="\x3cspan class\x3d'oj-helper-hidden-accessible' id\x3d'"+this.Ti(this.YO)+"'\x3e"+this.tg(this.r("datePicker"))+"\x3c/span\x3e";return f+="\x3c/div\x3e"},DQ:function(a,b){var c=this.Zh+("Y"===b?a:0),d=this.rh+("M"===b?a:0),e=Math.min(this.Sl,this.gj(c,d))+("D"===b?a:0),c=new Date(c,d,e);this.Sl=c.getDate();this.rh=this.Cg=c.getMonth();this.Zh=this.jf=c.getFullYear()},X8:function(){var a,b,c;a=w.pa;var d=["date","month","fullYear"];b=this.mb();var e,f=this.options.monthAbbreviated,
h,k,l,m,n,p="",q,r,s=new Date;e=new Date(s.getFullYear(),s.getMonth(),s.getDate());h=this.options.datePicker.footerLayout;c=this.rk("min");var u;q=this.rk("max");var v;k=this.rh;var s=this.Zh,y=this.fj(),z=a._dateTime(y,d,!0);l=z.fullYear;m=z.date;n=z.month;var z=new Date(l,n,m),B=this.options.disabled;c&&(c=b.parse(c),u=a._dateTime(c,d,!0));q&&(q=b.parse(q),v=a._dateTime(q,d,!0));a._clearTime(y);0>k&&(k+=12,s--);if(u)for(a=new Date(u.fullYear,u.month,u.date),v&&0>b.Qc(q,c)&&(a=new Date(v.fullYear,
v.month,v.date));new Date(s,k,this.gj(s,k))<a;)k++,11<k&&(k=0,s++);if(v)for(a=new Date(v.fullYear,v.month,v.date),u&&0>b.Qc(q,c)&&(a=new Date(u.fullYear,u.month,u.date));new Date(s,k,1)>a;)k--,0>k&&(k=11,s--);this.rh=k;this.Zh=s;b=this.iR(-1,s)&&!B;c=this.iR(1,s)&&!B;e=this.aw(h,e);h="";this.mq=4;b=""+this.bw(k,s,"all",b,c);b+="\x3ctable class\x3d'oj-datepicker-calendar oj-datepicker-monthview"+(B?" oj-disabled ":" oj-enabled oj-default ")+"' tabindex\x3d-1 data-handler\x3d'calendarKey' data-event\x3d'keydown' aria-readonly\x3d'true' role\x3d'grid' aria-labelledby\x3d'"+
this.Ti(this.cv)+"'\x3e";b+="\x3ctbody role\x3d'presentation'\x3e";c=this.gj(s,k);s===l&&k===n&&Math.min(m,c);q=new Date(s,0,1);for(a=0;4>a;a++){b+="\x3ctr role\x3d'row'\x3e";d="";for(k=0;3>k;k++){y=3*a+k;l=q.getMonth()===z.getMonth();m="oj-dp-"+this.uuid+"-"+a+"-"+k+"-0-0";(n=y===this.Cg)?(p=m,c=" "+this.Nr):c="";var C=q.getMonth()===z.getMonth();r=v&&v.fullYear===s;r=!((!u||u.fullYear!==s||y>=u.month)&&(!r||y<=v.month));d+="\x3ctd role\x3d'gridcell' aria-disabled\x3d'"+!!r+"' aria-selected\x3d'"+
l+"' id\x3d'"+m+"' class\x3d'"+c+(r||B?" "+this.Kz+" oj-disabled":" oj-enabled ")+(l?" "+this.vF:"")+"'"+(r?"":" data-handler\x3d'selectMonth' data-event\x3d'click' data-month\x3d'"+q.getMonth()+"' data-year\x3d'"+q.getFullYear()+"'")+"\x3e"+(r||B?"\x3cspan class\x3d'oj-disabled'\x3e"+f[y]+"\x3c/span\x3e":"\x3ca role\x3d'button' class\x3d'oj-enabled"+(C?" oj-selected":"")+"' "+(n?"":"tabindex\x3d'-1' ")+" href\x3d'#'\x3e"+f[y]+"\x3c/a\x3e")+"\x3c/td\x3e";q.setMonth(q.getMonth()+1)}b+=d+"\x3c/tr\x3e"}h+=
b+"\x3c/tbody\x3e\x3c/table\x3e";return{html:h+e,aD:p}},Z8:function(){var a,b,c,d=w.pa;a=["date","month","fullYear"];b=this.mb();var e,f,h,k,l,m,n="",p,q,r,s=new Date;e=new Date(s.getFullYear(),s.getMonth(),s.getDate());f=this.options.datePicker.footerLayout;c=this.rk("min");var u;q=this.rk("max");s=this.rh;k=this.Zh;var v=this.fj(),y=d._dateTime(v,a,!0);l=y.fullYear;m=y.date;p=y.month;var y=new Date(l,p,m),z=this.options.disabled;c&&(c=b.parse(c),u=d._dateTime(c,a,!0));q&&(q=b.parse(q),h=d._dateTime(q,
a,!0));d._clearTime(v);0>s&&(s+=12,k--);if(u)for(a=new Date(u.fullYear,u.month,u.date),h&&0>b.Qc(q,c)&&(a=new Date(h.fullYear,h.month,h.date));new Date(k,s,this.gj(k,s))<a;)s++,11<s&&(s=0,k++);if(h)for(a=new Date(h.fullYear,h.month,h.date),u&&0>b.Qc(q,c)&&(a=new Date(u.fullYear,u.month,u.date));new Date(k,s,1)>a;)s--,0>s&&(s=11,k--);this.rh=s;this.Zh=k;b=this.gR(-1,k)&&!z;c=this.gR(1,k)&&!z;e=this.aw(f,e);f="";this.mq=4;b=""+this.bw(s,k,"all",b,c);b+="\x3ctable class\x3d'oj-datepicker-calendar oj-datepicker-yearview"+
(z?" oj-disabled ":" oj-enabled oj-default ")+"' tabindex\x3d-1 data-handler\x3d'calendarKey' data-event\x3d'keydown' aria-readonly\x3d'true' role\x3d'grid' aria-labelledby\x3d'"+this.Ti(this.cv)+"'\x3e";b+="\x3ctbody role\x3d'presentation'\x3e";c=this.gj(k,s);k===l&&s===p&&Math.min(m,c);u=this.h$(k,u,h);v=10*Math.floor(k/10);c=new Date(v,s,1);for(q=0;4>q;q++){b+="\x3ctr role\x3d'row'\x3e";a="";for(h=0;3>h&&(3!=q||1!=h);h++){r=v+3*q+h;k=c.getFullYear()===y.getFullYear();l="oj-dp-"+this.uuid+"-"+q+
"-"+h+"-0-0";(m=r===this.jf)?(n=l,p=" "+this.Nr):p="";var B=c.getFullYear()===y.getFullYear(),C=Sl.format(d.dateToLocalIso(new Date(r,s,1)));r=r<u.startYear||r>u.endYear;a+="\x3ctd role\x3d'gridcell' aria-disabled\x3d'"+!!r+"' aria-selected\x3d'"+k+"' id\x3d'"+l+"' class\x3d'"+p+(r||z?" "+this.Kz+" oj-disabled":" oj-enabled ")+(k?" "+this.vF:"")+"'"+(r?"":" data-handler\x3d'selectYear' data-event\x3d'click' data-month\x3d'"+c.getMonth()+"' data-year\x3d'"+c.getFullYear()+"'")+"\x3e"+(r||z?"\x3cspan class\x3d'oj-disabled'\x3e"+
C+"\x3c/span\x3e":"\x3ca role\x3d'button' class\x3d'oj-enabled"+(B?" oj-selected":"")+"' "+(m?"":"tabindex\x3d'-1' ")+" href\x3d'#'\x3e"+C+"\x3c/a\x3e")+"\x3c/td\x3e";c.setFullYear(c.getFullYear()+1)}b+=a+"\x3c/tr\x3e"}f+=b+"\x3c/tbody\x3e\x3c/table\x3e";return{html:f+e,aD:n}},h$:function(a,b,c){var d,e,f,h;d=this.options.datePicker.yearRange.split(":");e=(new Date).getFullYear();f=function(b){b=b.match(/c[+\-].*/)?a+parseInt(b.substring(1),10):b.match(/[+\-].*/)?e+parseInt(b,10):parseInt(b,10);return isNaN(b)?
e:b};h=f(d[0]);d=Math.max(h,f(d[1]||""));h=b?Math.max(h,b.fullYear):h;d=c?Math.min(d,c.fullYear):d;return{startYear:h,endYear:d}},WA:function(){var a=this.options.datePicker.numberOfMonths,a="string"===typeof a?parseInt(a,10):a;return null==a?[1,1]:"number"===typeof a?[1,a]:a},gj:function(a,b){return 32-(new Date(a,b,32)).getDate()},p9:function(a,b){return(new Date(a,b,1)).getDay()},hR:function(a,b,c){var d=this.WA();b=new Date(b,c+(0>a?a:d[0]*d[1]),1);0>a&&b.setDate(this.gj(b.getFullYear(),b.getMonth()));
return this.vB(b)},iR:function(a,b){var c;0>a?(c=new Date(b+a,12,1),c.setDate(this.gj(c.getFullYear(),c.getMonth()))):c=new Date(b+a,1,1);return this.vB(c)},gR:function(a,b){var c;c=10*Math.floor(b/10);0>a?(c=new Date(c+9+10*a,12,1),c.setDate(this.gj(c.getFullYear(),c.getMonth()))):c=new Date(c+10*a,1,1);return this.vB(c)},ada:function(a,b,c){b=b?new Date(b.fullYear,b.month,b.date):null;c=c?new Date(c.fullYear,c.month,c.date):null;return null!==b&&a<b||null!==c&&a>c},vB:function(a){var b,c,d=w.pa,
e=this.mb(),f,h,k=this.rk("min"),l=null,m=this.rk("max"),n=null;if(b=this.options.datePicker.yearRange)b=b.split(":"),c=(new Date).getFullYear(),l=parseInt(b[0],10),n=parseInt(b[1],10),b[0].match(/[+\-].*/)&&(l+=c),b[1].match(/[+\-].*/)&&(n+=c);k&&(k=e.parse(k),f=d._dateTime(k,["fullYear","month","date"],!0),f=new Date(f.fullYear,f.month,f.date));m&&(m=e.parse(m),d=d._dateTime(m,["fullYear","month","date"],!0),h=new Date(d.fullYear,d.month,d.date));return(!f||a.getTime()>=f.getTime())&&(!h||a.getTime()<=
h.getTime())&&(!l||a.getFullYear()>=l)&&(!n||a.getFullYear()<=n)},WH:function(){return this.tg(this.r("tooltipCalendar"+(this.options.disabled?"Disabled":"")))},sS:function(a){this.Dd&&(Nl(this.Dd.children(),a),this.Dd.find("."+this.dG).attr("title",this.WH()));a&&this._hide(this.ve);this.od&&this.vf()},sF:function(){this.od||this._superApply(arguments)},RJ:function(a){this.od||this._superApply(arguments)},KB:function(a){if(!this.od){this._superApply(arguments);var b=$.ui.keyCode,c=!1;if(this.qh())switch(a.keyCode){case b.TAB:this._hide(this.Bz);
break;case b.ESCAPE:this._hide(this.jn);c=!0;break;case b.UP:case b.DOWN:this.Jb.find(".oj-datepicker-calendar").focus(),c=!0}else switch(a.keyCode){case b.UP:case b.DOWN:this.rb(this.Tf(),a),this.show(),c=!0}if(c)return a.preventDefault(),a.stopPropagation(),!1}},Uh:function(a){this.od||this._superApply(arguments);this.kC(this.fj());this.qh()&&this.vf(!(this.od&&this.Cd&&this.Cd[0]===document.activeElement))},mb:function(){return this.options.converter?this._superApply(arguments):$.oj.ojInputDate.prototype.options.converter},
Pr:function(){return this.options.value||""},_GetDefaultStyleClass:function(){return"oj-inputdate"},hv:function(){var a=this._superApply(arguments);if(null!=this.options.min||null!=this.options.max)this.Pv[w.kd.VALIDATOR_TYPE_DATETIMERANGE]=this.gB("min");null!=this.options.dayFormatter&&(this.Pv[w.kd.VALIDATOR_TYPE_DATERESTRICTION]=this.gB("dayFormatter"));return $.extend(this.Pv,a)},xg:function(){this._hide(this.ve);this._superApply(arguments)},Xi:function(){this._hide(this.ve);this._superApply(arguments)},
gB:function(a){var b=null;"min"===a||"max"===a?b=Ml(this.options,this.mb()):"dayFormatter"===a&&(a={dayFormatter:this.options.dayFormatter,converter:this.mb()},$.extend(a,this.options.translations.dateRestriction||{}),b=w.ea.xr(w.kd.VALIDATOR_TYPE_DATERESTRICTION).createValidator(a));return b},b$:function(){var a=new Date;a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0);return a},fj:function(){return this.options.value||this.mT()},getNodeBySubId:function(a){var b=null,c=a&&a.subId,
d=this.Jb;if(c)switch(c){case "oj-datepicker-content":b=d[0];break;case "oj-inputdatetime-calendar-icon":b=$(".oj-inputdatetime-calendar-icon",this.Dd)[0];break;case "oj-datepicker-prev-icon":b=$(".oj-datepicker-prev-icon",d)[0];break;case "oj-datepicker-next-icon":b=$(".oj-datepicker-next-icon",d)[0];break;case "oj-datepicker-month":b=$(".oj-datepicker-month",d)[0];break;case "oj-datepicker-year":b=$(".oj-datepicker-year",d)[0];break;case "oj-datepicker-current":b=$(".oj-datepicker-current",d)[0];
break;case "oj-inputdatetime-date-input":b=this.od?null:this.element[0];break;default:b=null}return b||this._superApply(arguments)},getSubIdByNode:function(a){var b=this.Jb,c=null,d=[{selector:".oj-inputdatetime-calendar-icon",ele:this.Dd},{selector:".oj-datepicker-prev-icon",ele:b},{selector:".oj-datepicker-next-icon",ele:b},{selector:".oj-datepicker-month",ele:b},{selector:".oj-datepicker-year",ele:b},{selector:".oj-datepicker-current",ele:b}];if(a===b[0])return"oj-datepicker-content";if(!this.od&&
a===this.element[0])return"oj-inputdatetime-date-input";for(var b=0,e=d.length;b<e;b++){var f=d[b],h=$(f.selector,f.ele);if(1===h.length&&h[0]===a){c=f.selector.substr(1);break}}return c||this._superApply(arguments)},hide:function(){return this._hide(this.ve)},_hide:function(a){Rl(this)||!this.qh()||this.od||(this.QB.ojPopup("close"),this.Fk(a));return this},Fk:function(){this.yw&&"focus"===this.options.datePicker.showOn?this.ei.focus():("focus"===this.options.datePicker.showOn&&(this.nj=!0),this.element.focus())},
refresh:function(){this.Dd&&this.Dd.find("."+this.dG).attr("title",this.WH());return this._superApply(arguments)||this},show:function(){if(!(this.qh()||this.options.disabled||this.options.readOnly))if(this.nj)this.nj=!1;else{if(Rl(this)){this.element.blur();var a={};a.date=Kl(this.FT(),this.fj());a.mode="date";return this.eQ(a)}return this.vfa()}},FT:function(){if(null===this.IB){var a=this.mb().resolvedOptions(),b={};$.extend(b,a,{isoStrFormat:"offset"});this.IB=w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter(b)}return this.IB},
eQ:function(a){var b=this.rk("min"),c=this.rk("max"),d=this.FT();b&&(a.minDate=Kl(d,b).valueOf());c&&(a.maxDate=Kl(d,b).valueOf());var e=this;e.Ek=!0;window.datePicker.show(a,$.proxy(this.QP,this),function(a){e.Ek=!1;a.startsWith("cancel")?e.Fk(e.jn):w.l.log("Error: native date or time picker failed: "+a)})},QP:function(a){this.Ek=!1;a&&(a=w.pa._dateTime(this.fj(),{month:a.getMonth(),date:a.getDate(),fullYear:a.getFullYear()}),a=this.mb().format(a),this.rb(a,{}));this.Fk(this.kn)},vfa:function(){var a=
this.De;this.Jb.empty();this.vf();a=w.lc.Nh({my:"start top",at:"start bottom",of:this.element,collision:"flipfit flipfit"},a);this.QB.ojPopup("open",this.element.parent(),a);return this}});
w.Components.Rj({ojInputDate:{firstDayOfWeek:w.Components.ad(function(){return w.za.Rx()}),dayWide:w.Components.ad(function(){return w.za.Ox("wide")}),dayNarrow:w.Components.ad(function(){return w.za.Ox("narrow")}),monthWide:w.Components.ad(function(){return w.za.Sx("wide")}),monthAbbreviated:w.Components.ad(function(){return w.za.Sx("abbreviated")}),datePicker:w.Components.ad(function(){return(w.Ob.Tc("oj-inputdatetime-option-defaults")||{}).datePicker}),renderMode:w.Components.ad(function(){return(w.Ob.Tc("oj-inputdatetime-option-defaults")||
{}).renderMode}),keyboardEdit:w.Components.ad(function(){return(w.Ob.Tc("oj-inputdatetime-option-defaults")||{}).keyboardEdit})}});function Tl(a){a=a.split(":");if(4!==a.length)throw Error("timeIncrement value should be in the format of hh:mm:ss:SSS");a={CD:parseInt(a[0].substring(0),10),nE:parseInt(a[1],10),wja:parseInt(a[2],10),Nia:parseInt(a[3],10)};var b=0,c;for(c in a)b+=a[c];if(0===b)throw Error("timeIncrement must have a non 00:00:00:000 value");return a}
function Ul(a,b){var c=a.resolvedOptions(),d={},e="hour hour12 minute second millisecond timeFormat timeZone timeZoneName isoStrFormat dst".split(" "),f,h;f=0;for(h=e.length;f<h;f++)e[f]in c&&("timeFormat"===e[f]&&(d.formatType="time"),d[e[f]]=c[e[f]]);if($.isEmptyObject(d))throw Error("Empty object for creating a time picker converter");$.extend(d,b||{});return w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter(d)}
w.sa("oj.ojInputTime",$.oj.inputBase,{version:"1.0.0",widgetEventPrefix:"oj",_CLASS_NAMES:"oj-inputdatetime-input",_WIDGET_CLASS_NAMES:"oj-inputdatetime-time-only oj-component oj-inputdatetime",BF:"oj-inputdatetime-input-container",_ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES:"",_INPUT_HELPER_KEY:"inputHelp",_ATTR_CHECK:[{attr:"type",setMandatory:"text"}],_GET_INIT_OPTIONS_PROPS:[{U:"disabled",yc:!0},{U:"pattern"},{U:"title"},{U:"placeholder"},{U:"value",We:Ll},{U:"required",We:!0,yc:!0},{U:"readonly",option:"readOnly",
yc:!0},{U:"min",We:Ll},{U:"max",We:Ll}],gQ:"ojInputTime",eG:"oj-inputdatetime-input-trigger",fG:"oj-inputdatetime-time-icon",kn:"selection",jn:"cancelled",Bz:"tab",ve:"close",a4:"enabled",FF:"disabled",options:{converter:w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter({hour:"2-digit",hour12:!0,minute:"2-digit"}),keyboardEdit:"enabled",max:void 0,min:void 0,datePickerComp:null,pickerAttributes:null,renderMode:"jet",timePicker:{footerLayout:"",timeIncrement:"00:30:00:00",showOn:"focus"}},Vd:function(a,
b){this._super(a,b);null===this.options.datePickerComp&&w.Uc.fl(this._GET_INIT_OPTIONS_PROPS,b,this)},Ck:function(){return w.T.temporarilyEnableWheelStyleTimePickerForJet22},uz:function(){this.RK={};this.kf=this.options.datePickerComp;this.ei=null;this.Ek=this.nj=this.yw=this.uq=!1;this.uC=null;var a=this.options.pickerAttributes,b=this;this.Ck()?(this.Bh=$("\x3cdiv id\x3d'"+this.Ti(this.gQ)+"' class\x3d'oj-timepicker-content' style\x3d'display:none'\x3e\x3c/div\x3e"),$("body").append(this.Bh),this.SB=
this.Bh.ojPopup({initialFocus:"none",rootAttributes:{"class":"oj-timepicker-popup"},chrome:"default",modality:"modeless",open:function(){},beforeClose:function(){}}),a&&w.Uc.AE(this.SB.ojPopup("widget"),a)):(this.rd=$("\x3cdiv id\x3d'"+this.Ti(this.gQ)+"' class\x3d'oj-listbox-drop' style\x3d'display:none'\x3e\x3c/div\x3e"),$("body").append(this.rd),this.RB=this.rd.ojPopup({initialFocus:"none",rootAttributes:{"class":"datetimepicker-dropdown"},chrome:"none",modality:"modeless",open:function(){var a=
$("[aria-selected]",b.rd);1===a.length&&b.WG(a.parent(),!0);"image"!==b.options.timePicker.showOn&&b.wh()||$("ul",b.rd).focus()},beforeClose:function(){b.JY=$("ul",b.rd).scrollTop()}}),a&&w.Uc.AE(this.RB.ojPopup("widget"),a));this.wh()&&(this._ELEMENT_TRIGGER_WRAPPER_CLASS_NAMES+=this.BF)},fo:function(){return(this.Ck()?this.SB.ojPopup("isOpen"):this.RB.ojPopup("isOpen"))||this.Ek},_ComponentCreate:function(){this.uz();var a=this._superApply(arguments);if(this.Ig()&&!this.qV())this._CLASS_NAMES="";
else{if(this.options.value){var b=this.mb().format(this.options.value);this.rb(b,{})}Ql(this)}this.tq();this.pG();return a},cf:function(){var a=this._superApply(arguments);Nl(this.Dd.children(),this.options.disabled);return a},_setOption:function(a,b,c){var d=null,e;if("value"===a)return b||(b=null),d=this._super(a,b,c),this.Ck()?this.oA():this.HA(),d;"timePicker"===a&&this.Ck()&&void 0===b.footerLayout&&(e=this.options.timePicker.footerLayout);d=this._superApply(arguments);e&&(this.options.timePicker.footerLayout=
e);"disabled"===a?(b&&this._hide(this.ve),this.Dd.find("."+this.fG).attr("title",this.wI()),Nl(this.Dd.children(),b)):"max"!==a&&"min"!==a||this.Ig()?"readOnly"===a?(this.tq(),b&&this._hide(this.ve)):"keyboardEdit"===a?this.tq():"converter"===a&&(this.uC=null):(this.RK[w.kd.VALIDATOR_TYPE_DATETIMERANGE]=Ml(this.options,this.mb()),this.Kr());a in{max:!0,min:!0,converter:!0,timePicker:!0}&&(this.Ck()?this.oA():this.HA());return d},_destroy:function(){var a=this._super();this.wh()&&(this.element.off("focus touchstart"),
this.Pg.off("touchstart"));this.Dd&&this.Dd.remove();this.rd&&this.rd.remove();this.Bh&&this.Bh.remove();return a},tq:function(){this.element.prop("readOnly",!(!this.options.readOnly&&!this.rJ()))},rJ:function(){return this.options.keyboardEdit===this.FF},sF:function(){this.wh()&&this._superApply(arguments)},KB:function(a){if(this.wh()){this._superApply(arguments);var b=$.ui.keyCode,c=!1;if(this.fo())switch(a.keyCode){case b.TAB:this._hide(this.Bz);break;case b.ESCAPE:this._hide(this.jn);c=!0;break;
case b.UP:case b.DOWN:this.Ck()?this.Bh.focus():$("ul",this.rd).focus(),c=!0}else switch(a.keyCode){case b.UP:case b.DOWN:this.rb(this.Tf(),a),this.show(),c=!0}if(c||a.keyCode===b.ENTER)return a.preventDefault(),a.stopPropagation(),!1}},wI:function(){return this.tg(this.r("tooltipTime"+(this.options.disabled?"Disabled":"")))},hG:function(){this.ei=this._superApply(arguments);this.ei.attr({role:"combobox","aria-haspopup":"true",tabindex:"-1"})},SJ:function(){var a=this.options.timePicker.showOn;this.uq?
(this.uq=!1,this.ei.focus()):"focus"===a?this.show():this.fo()&&this._hide(this.ve)},Dz:function(){if("focus"===this.options.timePicker.showOn)if(this.fo())this.nj=!0,this._hide(this.ve);else{var a=this.element[0]===document.activeElement;this.show();this.uq=!0;a&&this.ei.focus()}},pG:function(){var a=this.options.timePicker.showOn,b=this.wh(),c=b?$("\x3cspan\x3e").addClass(this.eG):$("+ span",this.element),d=$("\x3cspan title\x3d'"+this.wI()+"'/\x3e").addClass(this.fG+" oj-clickable-icon-nocontext oj-component-icon"),
e=this;b&&(this.element.on("focus",$.proxy(this.SJ,this)),this.element.on("touchstart",$.proxy(this.Dz,this)));(this.wh()?this.Pg:this.kf.widget.Pg).on("touchstart",function(){e.yw=!0});"image"===a&&(d.css("display","block"),this.De?(this.element.css("border-top-left-radius",0),this.element.css("border-bottom-left-radius",0)):(this.element.css("border-top-right-radius",0),this.element.css("border-bottom-right-radius",0)));if(b||!Rl(this))c.append(d),d.on("click",function(){e.fo()?e._hide(e.ve):(e.show(),
$("ul",e.rd).focus())}),this.ld(d),this.jh(d);this.Dd=c;b&&this.element.after(c)},Qca:function(a,b,c){var d=this.mb();return b&&0>d.Qc(a,b)||c&&0<d.Qc(a,c)},lf:function(){return this.Ig()?this.kf.widget.K_():this.options.value},HA:function(){var a=this.lf(),b,c=this.mb(),d=$("\x3cul class\x3d'oj-listbox-results' tabindex\x3d'-1' role\x3d'listbox'\x3e\x3c/ul\x3e"),e=a?c.format(a):"";b=[];a?this.Ig()||(a=c.parse(e)):(b=new Date,b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),a=w.pa.dateToLocalIso(b));
b=this.a$(a);e=e||b[0].value;this.rd.empty();a=0;for(c=b.length;a<c;a++){var f=b[a].value,h=b[a].minMaxRange,k=$("\x3cli class\x3d'oj-listbox-result "+(h?"oj-disabled":"")+"' role\x3d'presentation'\x3e"),l=this.uuid+"_sel"+a,h=$("\x3cdiv class\x3d'oj-listbox-result-label' "+(h?"aria-disabled ":"")+"data-value\x3d'"+f+"' role\x3d'option' id\x3d'"+l+"'\x3e"+b[a].label+"\x3c/li\x3e");e===f&&(h.attr("aria-selected","true"),k.addClass("oj-hover"),d.attr("aria-activedescendant",l));k.append(h);d.append(k)}this.rd.append(d);
$(".oj-listbox-result",d).on("mousemove",function(){var a=$(this);a.hasClass("oj-disabled")||($(".oj-hover",d).removeClass("oj-hover"),a.addClass("oj-hover"),d.attr("aria-activedescendant",a.children()[0].id))});var m=this;d.on("click",function(a){var b=$(a.target);b.hasClass("oj-disabled")||void 0!==b.attr("aria-disabled")||m.NW(a)}).on("keydown",function(a){m.Ufa(a)});$("ul",this.rd).one("focus",function(){var a=$("[aria-selected]",m.rd);1===a.length&&m.WG($(a))})},$T:function(){null===this.uC&&
(this.uC=Ul(this.mb(),{isoStrFormat:"offset"}));return this.uC},a$:function(a){var b=[],c=this.mb(),d=w.pa,e="",e=this.Ig(),f=new Date,h=e?this.kf.widget.options.min:this.options.min,k=e?this.kf.widget.options.max:this.options.max,l=Tl(this.options.timePicker.timeIncrement),h=h?d._minMaxIsoString(h,this.lf()):h,k=k?d._minMaxIsoString(k,this.lf()):k;f.setDate(1);f.setHours(0);f.setMinutes(0);f.setSeconds(0);f.setMilliseconds(0);var m=new Date(f);m.setDate(2);a=this.$T().parse(a);a=d._clearTime(a);
do e=this.tg(c.format(a)),b.push({label:e,value:e,minMaxRange:this.Qca(a,h,k)}),f.setHours(f.getHours()+l.CD),f.setMinutes(f.getMinutes()+l.nE),f.setSeconds(f.getSeconds()+l.wja),f.setMilliseconds(f.getMilliseconds()+l.Nia),a=d._dateTime(a,{hours:f.getHours(),minutes:f.getMinutes(),seconds:f.getSeconds(),milliseconds:f.getMilliseconds()});while(f.getDate()!==m.getDate());return b},Ufa:function(a){if(this.fo()){var b=$.ui.keyCode,c=!1;switch(a.keyCode){case b.TAB:this._hide(this.Bz);break;case b.ESCAPE:this._hide(this.jn);
c=!0;break;case b.UP:this.JW(a,"prev");c=!0;break;case b.DOWN:this.JW(a,"next");c=!0;break;case b.ENTER:this.NW(a),c=!0}if(c)return a.preventDefault(),a.stopPropagation(),!1}},JW:function(a,b){var c=$(".oj-hover",this.rd),d=$("ul",this.rd),e=null;1===c.length?(e=c[b](),1===e.length&&c.removeClass("oj-hover")):e=$(d.children()[0]);e&&1===e.length&&(e.addClass("oj-hover"),d.attr("aria-activedescendant",e.children()[0].id),this.WG(e))},NW:function(a){var b=this.rd,c=$("[aria-selected]",b),d=$("ul",b),
b=$(".oj-hover div",b);1===b.length&&(1===c.length&&(c.removeAttr("aria-selected"),c.parent().removeClass("oj-hover")),b.attr("aria-selected","true"),b.parent().addClass("oj-hover"),this._hide(this.kn),this.Uh(b.attr("data-value")),this.rb(b.attr("data-value"),a),d.attr("aria-activedescendant",b[0].id),this.Ig()&&this.kf.widget._hide(this.kn))},RJ:function(a){this.wh()&&this._superApply(arguments)},show:function(){if(!(this.fo()||this.options.disabled||this.options.readOnly))if(this.nj)this.nj=!1;
else return Rl(this)?(this.element.blur(),this.zfa()):this.Ck()?this.Cfa():this.wfa()},zfa:function(){var a={},b=this.$T(),c=Kl(b,this.lf());a.date=c;a.mode="time";c=Tl(this.options.timePicker.timeIncrement);a.minuteInterval=0===c.CD?c.nE:1;var d=this.Ig()?this.kf.widget.options.min:this.options.min,c=this.Ig()?this.kf.widget.options.max:this.options.max;d&&(d=Kl(b,w.pa._minMaxIsoString(d,this.lf())),a.minDate=d.valueOf());c&&(b=Kl(b,w.pa._minMaxIsoString(c,this.lf())),a.maxDate=b.valueOf());var e=
this;this.Ek=!0;window.datePicker.show(a,function(a){e.Ek=!1;a&&(a=w.pa._dateTime(e.lf(),{hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds()}),a=e.mb().format(a),e.rb(a,{}));e.Fk(e.kn)},function(a){e.Ek=!1;a.startsWith("cancel")?e.Fk(e.jn):w.l.log("Error: native time picker failed: "+a)})},wfa:function(){this.Ig()&&this.kf.widget._hide(this.ve);this.HA();var a=this.rd,b=this.RB;a.width(this.element.parent().width());a.css({position:"relative"});var c=w.lc.Nh({my:"start top",at:"start bottom",
of:this.element,collision:"flipfit flipfit"},this.De);b.ojPopup("open",this.element.parent(),c);a.find("[aria-selected]").parent().addClass("oj-hover")},hide:function(){return this._hide(this.ve)},_hide:function(a){!Rl(this)&&this.fo()&&(this.Ck()?this.SB.ojPopup("close"):this.RB.ojPopup("close"),this.Fk(a));return this},Fk:function(){this.yw&&"focus"===this.options.timePicker.showOn?(this.wh()?this.ei:this.kf.widget.ei).focus():("focus"===this.options.timePicker.showOn&&(this.wh()?this.nj=!0:this.kf.widget.nj=
!0),this.element.focus())},refresh:function(){this.Dd&&this.Dd.find("."+this.fG).attr("title",this.wI());return this._superApply(arguments)||this},Uh:function(a){this.wh()&&this._superApply(arguments);this.fo()&&(this.Ck()?this.oA():this.HA())},rb:function(a,b,c){if(this.Ig()){this._super(a,null,c);try{var d=this.mb(),e=d.parse(a),f=w.pa,h=this.kf.widget,k=h.K_()||f.dateToLocalIso(new Date);if(!e||0!==d.Qc(k,e)){var l=f._copyTimeOver(e||f.dateToLocalIso(new Date),k);h.Qja(l,b)}}catch(m){}}else this._superApply(arguments)},
fv:function(){return this.wh()},wh:function(){return!this.Ig()||this.qV()},_GetDefaultStyleClass:function(){return"oj-inputtime"},Pr:function(){return this.options.value||""},hv:function(){var a=this._superApply(arguments);null==this.options.min&&null==this.options.max||this.Ig()||(this.RK[w.kd.VALIDATOR_TYPE_DATETIMERANGE]=Ml(this.options,this.mb()));return $.extend(this.RK,a)},mb:function(){return this.options.converter?this._superApply(arguments):$.oj.ojInputTime.prototype.options.converter},WG:function(a,
b){var c=a.parent();b&&this.JY&&$(c).scrollTop(this.JY);var d=$(c).scrollTop(),e=d+$(c).height(),f=a[0].offsetTop,h=f+$(a).height();f<d?$(c).scrollTop(f):h>e&&$(c).scrollTop(h-$(c).height())},Ig:function(){return null!==this.kf},qV:function(){return this.kf.inline},xg:function(){this._hide(this.ve);this._superApply(arguments)},Xi:function(){this._hide(this.ve);this._superApply(arguments)},zka:function(a){return a?$.contains((this.Ck()?this.Bh:this.rd)[0],a):!1},bw:function(){var a=this.tg(this.r("cancelText")),
a="\x3ca role\x3d'button' href\x3d'#' class\x3d'oj-enabled oj-default oj-timepicker-cancel-button' title\x3d'"+a+"'\x3e"+a+"\x3c/a\x3e",b=this.tg(this.r("okText")),c="\x3cdiv class\x3d'oj-timepicker-header"+(this.options.disabled?" oj-disabled ":" oj-enabled oj-default ")+"'\x3e",c=c+a+("\x3ca role\x3d'button' href\x3d'#' class\x3d'oj-enabled oj-default oj-timepicker-ok-button' title\x3d'"+b+"'\x3e"+b+"\x3c/a\x3e");return c+="\x3c/div\x3e"},aw:function(a,b){var c="",d="\x3ca role\x3d'button' href\x3d'#' class\x3d'oj-timepicker-now oj-priority-secondary oj-enabled'\x3e"+
this.tg(this.r("currentTimeText"))+"\x3c/a\x3e";if(a&&1<a.length){var e=0,d=[{index:a.indexOf("now"),content:b?d:""}];for(d.sort(function(a,b){return a.index-b.index});e<d.length&&0>d[e].index;)e++;for(;e<d.length;)c+=d[e++].content;0<c.length&&(c="\x3cdiv class\x3d'oj-timepicker-footer'\x3e"+c+"\x3c/div\x3e")}return c},yT:function(a,b,c){a=(b=(b=(b=this.Ig()?this.kf.widget.options[b]:this.options[b])?w.pa._minMaxIsoString(b,this.lf()):b)?a.parse(b):b)?w.pa._clearTime(b):null;c&&a&&c.substring(0,
c.indexOf("T"))!==a.substring(0,a.indexOf("T"))&&(b=null);return b},u9:function(a){var b=this.lf();b||(b=new Date,b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b=w.pa.dateToLocalIso(b));return b=a.parse(b)},a9:function(){var a=w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter({pattern:"a"});return[a.format("2016-01-01T01:00:00Z"),a.format("2016-01-01T13:00:00Z")]},oA:function(){var a=this.Bh;a.empty();var b=this.mb(),c=b.resolvedOptions();"zulu"===c.FM&&(c.FM="offset",b=w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter(c),
c=b.resolvedOptions());var d=w.pa,e=this.lf(),f=new Date;e||(e=w.pa.dateToLocalIso(f));var e=b.parse(e),e=d._clearTime(e),d=this.yT(b,"min",e),e=this.yT(b,"max",e),h=this.options.timePicker.footerLayout,k=this.KY=new Vl;(c=c.pattern||c.patternFromOptions)&&(k.format=c);k.ampmStrings=this.a9();if(c=this.options.timePicker.timeIncrement)c=Tl(c),k.increment=60*c.CD+c.nE;k.isoValue=this.u9(b);d&&(k.isoMin=d);e&&(k.isoMax=e);a.append($(this.bw(a)));this.bZ=$(Wl(k));a.append(this.bZ);a.append($(this.aw(h,
f)));a.find(".oj-timepicker-hour").attr("aria-label",this.r("hourWheelLabel"));a.find(".oj-timepicker-minute").attr("aria-label",this.r("minuteWheelLabel"));a.find(".oj-timepicker-meridian").attr("aria-label",this.r("ampmWheelLabel"));this.Bh.append(a)},Cfa:function(){this.Ig()&&this.kf.widget.hide();var a=this,b=this.SB;this.oA();this.Bh.find(".oj-timepicker-cancel-button").on("click",function(c){c.preventDefault();b.ojPopup("close");a.Fk(a.jn)});this.Bh.find(".oj-timepicker-ok-button").on("click",
function(c){a.rb(a.KY.isoValue,c);c.preventDefault();b.ojPopup("close");a.Fk(a.kn)});this.Bh.find(".oj-timepicker-now").on("click",function(b){var c=w.pa.dateToLocalIso(new Date),c=a.mb().parse(c);a.KY.isoValue=c;b.preventDefault()});var c=w.lc.Nh({my:"start top",at:"start bottom",of:this.element,collision:"flipfit flipfit"},this.De);b.ojPopup("open",this.element.parent(),c);this.bZ.children().first().focus()},getNodeBySubId:function(a){var b=null,c=a&&a.subId,d=this.Bh;if(c)switch(c){case "oj-listbox-drop":b=
this.rd?this.rd[0]:null;break;case "oj-inputdatetime-time-icon":b=$(".oj-inputdatetime-time-icon",this.Dd)[0];break;case "oj-inputdatetime-time-input":b=this.element[0];break;case "oj-timepicker-content":b=d?d[0]:null;break;case "oj-timepicker-cancel-button":b=$(".oj-timepicker-cancel-button",d)[0];break;case "oj-timepicker-ok-button":b=$(".oj-timepicker-ok-button",d)[0];break;case "oj-timepicker-hour":b=$(".oj-timepicker-hour",d)[0];break;case "oj-timepicker-minute":b=$(".oj-timepicker-minute",d)[0];
break;case "oj-timepicker-meridian":b=$(".oj-timepicker-meridian",d)[0];break;case "oj-timepicker-now":b=$(".oj-timepicker-now",d)[0];break;default:b=null}return b||this._superApply(arguments)},getSubIdByNode:function(a){var b=$(".oj-inputdatetime-time-icon",this.Dd),c=null,d=this.Bh,e=[{selector:".oj-timepicker-cancel-button",ele:d},{selector:".oj-timepicker-ok-button",ele:d},{selector:".oj-timepicker-hour",ele:d},{selector:".oj-timepicker-minute",ele:d},{selector:".oj-timepicker-meridian",ele:d},
{selector:".oj-timepicker-now",ele:d}];if(this.rd&&a===this.rd[0])c="oj-listbox-drop";else if(a===b[0])c="oj-inputdatetime-time-icon";else if(a===this.element[0])c="oj-inputdatetime-time-input";else if(d&&a===d[0])c="oj-timepicker-content";else for(b=0;b<e.length;b++){var d=e[b],f=$(d.selector,d.ele);if(1===f.length&&f[0]===a){c=d.selector.substr(1);break}}return c||this._superApply(arguments)},widget:function(){return this.wh()?this._super():this.kf.widget.widget()}});
w.Components.Rj({ojInputTime:{renderMode:w.Components.ad(function(){return(w.Ob.Tc("oj-inputdatetime-option-defaults")||{}).renderMode}),keyboardEdit:w.Components.ad(function(){return(w.Ob.Tc("oj-inputdatetime-option-defaults")||{}).keyboardEdit}),timePicker:w.Components.ad(function(){return(w.Ob.Tc("oj-inputdatetime-option-defaults")||{}).timePicker})}});
function Xl(a,b){function c(a){e.classList.remove("oj-timepicker-wheel-item-position"+f);e.classList.add("oj-timepicker-wheel-item-position"+a);f=a;return Promise.resolve()}function d(){e.parentNode.focus()}var e,f,h=!1,k=a.getText(b);if(k){e=document.createElement("div");e.classList.add("oj-timepicker-wheel-item");e.classList.add("oj-timepicker-wheel-item-position"+b);f=b;a.xia(b)&&(h=!0,e.classList.add("oj-disabled"));e.Xia=c;var l=document.createElement("div");l.textContent=k;l.classList.add("oj-timepicker-wheel-item-content");
e.appendChild(l);Object.defineProperty(e,"ojDisabled",{enumerable:!0,get:function(){return h},set:function(a){a!==h&&($(e).toggleClass("oj-disabled"),h=a)}});e.addEventListener("focus",d,!1);l.addEventListener("focus",d,!1)}return e}
function Yl(a,b,c){function d(){if(D[y+1]){f(1);var b=D.shift();b&&E.removeChild(b);(b=Xl(a,y))&&E.appendChild(b);D.push(b)}}function e(){if(D[y-1]){f(-1);var b=D.pop();b&&E.removeChild(b);(b=Xl(a,-y))&&E.insertBefore(b,D[0]);D.unshift(b)}}function f(b){for(var c=0;c<D.length;c++){var d=D[c];d&&d.Xia(c-y-b)}E.setAttribute("aria-valuenow",a.getText(0))}function h(){D.forEach(function(a){a&&E.removeChild(a)});D=[];for(var b=-y;b<=y;b++){var c=Xl(a,b);c&&E.appendChild(c);D.push(c)}E.setAttribute("aria-valuenow",
a.getText(0))}function k(c){var d=c.keyCode;switch(d){case I:a.position++;c.preventDefault();break;case G:a.position--;c.preventDefault();break;case F:a.v0=a.v0.slice(0,-1);c.preventDefault();break;default:if(47<d&&58>d||95<d&&112>d||!b&&64<d&&91>d)a.keyboardValue+=c.key}}function l(b){E.focus();b=b.center.y;var c=K.offset().top,d=K.height();b=(b-c)/d;for(c=0;4>c&&b>B[c];)c++;2!==c&&(a.position+=c-2)}function m(a){E.focus();var b=a.velocityY;U=Math.floor(b*b/C/K.height()*5);a.preventDefault()}function n(a){E.focus();
var b=a.velocityY;U=-Math.floor(b*b/C/K.height()*5);a.preventDefault()}function p(a){E.focus();J=Q=a.center.y;U=P=0}function q(){E.focus();U&&(a.position+=U);P=J=Q=null}function r(b){E.focus();var c=b.center.y,d=Math.round((J-c)/K.height()*5);d!==P&&Math.abs(Q-c)>z&&(Q=c,a.position+=d-P,P=d);b.preventDefault()}function s(b){b.deltaY&&(b.currentTarget.focus(),b.preventDefault());0>b.deltaY&&a.position++;0<b.deltaY&&a.position--}function u(){a.v0="";E.classList.add("oj-focus")}function v(){E.classList.remove("oj-focus");
a.update()}var y=7,z=2,B=[.152,.362,.638,.848],C=.007,F=8,I=38,G=40,E,D=[],J,Q,P,U;(function(b){E=document.createElement("div");E.classList.add("oj-timepicker-wheel");b&&E.classList.add(b);E.setAttribute("id","_ojWheel"+Zl++);E.setAttribute("tabIndex","0");E.setAttribute("role","spinbutton");a.yr=E})(c);var K=$(E);(function(){E.Wia=d;E.Via=e;E.t1=h;E.s1=function(){return a.linked}})();(function(){var a=new Hammer(E);a.get("pan").set({direction:Hammer.DIRECTION_VERTICAL});a.get("swipe").set({direction:Hammer.DIRECTION_VERTICAL});
a.on("tap",l);a.on("swipeup",m);a.on("swipedown",n);a.on("panstart",p);a.on("panend pancancel",q);a.on("panup pandown",r);E.addEventListener("wheel",s,!1);E.addEventListener("keydown",k,!1);E.addEventListener("focus",u,!1);E.addEventListener("blur",v,!1)})();h();return E}var Zl=0;
function Vl(){function a(a){try{if(Q=!0,a)for(var c in a)P[c]=a[c]}finally{Q=!1,b()}}function b(){if(!Q){u=Math.ceil(s/r)*r;y=Math.ceil((v-1)/r)*r;if(y<u)throw Error("Invalid min and max settings with current increment: "+s+" "+v+ +r);q<u&&(q=u);q>y&&(q=y);q=Math.round(q/r)*r;if(B){E.displayRange=12;var a=C;"auto"===a&&(a=l(r,60),a=a===r||60===a?"hoursMeridiem":"all");switch(a){case "all":G.displayMultiplier=1;G.valueMultiplier=1;G.valueRange=1440;G.linked=!0;E.displayMultiplier=60;E.valueMultiplier=
1;E.valueRange=1440;E.linked=!0;D.displayMultiplier=1;D.valueMultiplier=720;D.valueRange=2;D.linked=!0;break;case "none":G.displayMultiplier=1;G.valueMultiplier=1;G.valueRange=60;G.linked=!1;E.displayMultiplier=1;E.valueMultiplier=60;E.valueRange=12;E.linked=!1;D.displayMultiplier=1;D.valueMultiplier=720;D.valueRange=2;D.linked=!1;break;case "hoursMinutes":G.displayMultiplier=1;G.valueMultiplier=1;G.valueRange=720;G.linked=!0;E.displayMultiplier=60;E.valueMultiplier=1;E.valueRange=720;E.linked=!0;
D.displayMultiplier=1;D.valueMultiplier=720;D.valueRange=2;D.linked=!1;break;case "hoursMeridiem":G.displayMultiplier=1,G.valueMultiplier=1,G.valueRange=60,G.linked=!1,E.displayMultiplier=1,E.valueMultiplier=60,E.valueRange=24,E.linked=!0,D.displayMultiplier=1,D.valueMultiplier=720,D.valueRange=2,D.linked=!0}}else switch(E.xla=24,a=C,"auto"===a&&(a=l(r,60),a=a===r||60===a?"none":"all"),a){case "none":case "hoursMeridiem":G.displayMultiplier=1;G.valueMultiplier=1;G.valueRange=60;G.linked=!1;E.displayMultiplier=
1;E.valueMultiplier=60;E.valueRange=24;E.linked=!1;break;case "all":case "hoursMinutes":G.displayMultiplier=1,G.valueMultiplier=1,G.valueRange=1440,G.linked=!0,E.displayMultiplier=60,E.valueMultiplier=1,E.valueRange=1440,E.linked=!0}for(a=0;a<J.length;a++)J[a].refresh()}}function c(a){a=m.exec(a);return 60*parseInt(a[1],10)+parseInt(a[2],10)}function d(a){a=Math.floor(a);var b=Math.floor(a/60);a%=60;return"T"+e(b)+":"+f(a)}function e(a){return("0"+a).slice(-2)}function f(a){return("0"+a).slice(-2)}
function h(a){return a.match(/^\d+$/)?parseInt(a,10):-1}function k(a){return a.match(/^\d+$/)?(a=parseInt(a,10),0===a&&(a=-1),12===a&&(a=0),a):-1}function l(a,b){return 0===b?a:l(b,a%b)}var m=/^.*T(\d{2})(?::?(\d{2}).*$)/,n={h:function(a){return 0===a?"12":""+a},hh:function(a){return 0===a?"12":("0"+a).slice(-2)},H:function(a){return""+a},HH:e,mm:f},p={h:k,hh:k,H:h,HH:h,mm:h},q=0,r,s=0,u=0,v=1440,y=1440,z,B,C="auto",F="",I=["AM","PM"],G=new $l(this,{valueRange:60,displayRange:60,valueMultiplier:1,
displayMultiplier:1}),E=new $l(this,{valueMultiplier:60,displayMultiplier:1}),D=new $l(this,{valueRange:2,displayRange:2,formatter:function(a){return I[a]},parser:function(a){a=a.toLowerCase().charAt();return"a"===a?0:"p"===a?1:-1},valueMultiplier:720,displayMultiplier:1}),J=[G,E,D],Q=!1,P=this;(function(){Q=!0;Object.defineProperty(P,"increment",{enumerable:!0,get:function(){return r},set:function(a){r=Math.floor(a);b()}});P.increment=1;Object.defineProperty(P,"grouped",{enumerable:!0,get:function(){return C},
set:function(a){switch(a){case "auto":case "all":case "none":case "hoursMinutes":case "hoursMeridiem":C=a;break;default:throw Error("invalid grouped value: "+a);}b()}});Object.defineProperty(P,"min",{enumerable:!0,get:function(){return s},set:function(a){s=Math.floor(a);b()}});Object.defineProperty(P,"isoMin",{enumerable:!0,get:function(){return d(s)},set:function(a){var b=c(a);isNaN(b)?console.log("Invalid ISO min time: "+a):P.min=b}});Object.defineProperty(P,"max",{enumerable:!0,get:function(){return v-
1},set:function(a){v=Math.floor(a)+1;b()}});Object.defineProperty(P,"isoMax",{enumerable:!0,get:function(){return d(v)},set:function(a){var b=c(a);isNaN(b)?console.log("Invalid ISO max time: "+a):P.max=b}});Object.defineProperty(P,"value",{enumerable:!0,get:function(){return q},set:function(a){q=Math.floor(a);b()}});Object.defineProperty(P,"isoValue",{enumerable:!0,get:function(){return d(q)},set:function(a){var b=c(a);isNaN(b)?console.log("Invalid ISO value time: "+a):P.value=b}});Object.defineProperty(P,
"format",{enumerable:!0,get:function(){return z},set:function(a){z=a;a=a.replace(/\'[^']*\'/g,"").replace(/[^hHma]*/g,"");F=a.replace(/(h|H)+/,"h").replace(/m+/,"m");var c=a.match(/([hH]+)/),c=c[1];E.formatter=n[c];E.parser=p[c];c=a.match(/(m+)/);a=c[1];G.formatter=n[a];G.parser=p[a];B=0<=F.indexOf("a");b()}});Object.defineProperty(P,"wheelOrder",{enumerable:!0,get:function(){return F}});Object.defineProperty(P,"ampmStrings",{enumerable:!0,get:function(){return I},set:function(a){I=a}});Q=!1})();
P.Cja=a;a(null);P.qM=function(a){switch(a){case "hour":return E;case "minute":return G;case "ampm":return B?D:null;default:console.log("Unknown wheel type: "+a)}}}
function Wl(a){function b(a){a=a.target;if(a.s1())for(a=0;a<f.length;a++)f[a].s1()&&f[a].classList.add("oj-active");else a.classList.add("oj-active")}function c(){for(var a=0;a<f.length;a++)f[a].classList.remove("oj-active")}function d(){for(var d;d=e.firstChild;)e.removeChild(d);f=[];var k=a.wheelOrder;d=a.qM("hour");d=Yl(d,!0,"oj-timepicker-hour");var l=a.qM("minute"),l=Yl(l,!0,"oj-timepicker-minute"),m;0<=k.indexOf("a")&&(m=a.qM("ampm"),m=Yl(m,!1,"oj-timepicker-meridian"));for(var n=k.split(""),
k=0;k<n.length;k++)switch(n[k]){case "h":f.push(d);break;case "m":f.push(l);break;case "a":f.push(m);break;default:console.log("Unknown wheelOrder code: "+n[k])}for(k=0;k<f.length;k++)m=f[k],m.addEventListener("focus",b,!1),m.addEventListener("blur",c,!1),e.appendChild(m)}var e,f=[];e=document.createElement("div");e.classList.add("oj-timepicker-wheel-group");e.t1=d;e.addEventListener("keydown",function(a){var b=a.target;switch(a.keyCode){case 37:$(b).prev().focus();break;case 39:$(b).next().focus()}},
!1);d();return e}
w.sa("oj.ojInputDateTime",$.oj.ojInputDate,{version:"1.0.0",widgetEventPrefix:"oj",_WIDGET_CLASS_NAMES:"oj-inputdatetime-date-time oj-component oj-inputdatetime",_INPUT_HELPER_KEY:"inputHelpBoth",options:{converter:w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME).createConverter({day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",hour12:!0,minute:"2-digit"}),renderMode:"jet",timePicker:{timeIncrement:"00:30:00:00",showOn:"focus"}},uz:function(){this._super();this.vt=this.element;this.TB=this.tx=this.Cd=
null},_ComponentCreate:function(){var a=this._super(),b=this.ZT(this.mb());if(null===b)throw Error("Please use ojInputDate if you do not have time portion");if(this.od){var c=$("\x3cinput type\x3d'text'\x3e");c.insertAfter(this.element);this.vt=c}for(var c="title placeholder disabled required readOnly keyboardEdit pickerAttributes".split(" "),d={},e=0,f=c.length;e<f;e++)d[c[e]]=this.options[c[e]];this.Cd=this.vt.ojInputTime($.extend(d,{converter:b,displayOptions:{converterHint:"none",title:"none",
messages:this.options.displayOptions.messages},value:this.options.value,timePicker:this.options.timePicker,datePickerComp:{widget:this,inline:this.od}}));return a},_setOption:function(a,b,c){var d=this._superApply(arguments);"value"===a&&(this.TB=this.options.value);this.Cd&&(a in{disabled:!0,readOnly:!0,keyboardEdit:!0}?this.Cd.ojInputTime("option",a,b):"timePicker"===a?this.Cd.ojInputTime("option","timePicker.timeIncrement",b.timeIncrement):"converter"===a&&(this.tx=null,this.Cd.ojInputTime("option",
a,this.ZT(this.mb()))));return d},_destroy:function(){var a=this._super();this.Cd.ojInputTime("destroy");this.od&&this.vt.remove();return a},Dz:function(){"focus"===this.options.datePicker.showOn&&$(this.Cd.ojInputTime("getNodeBySubId",{subId:"oj-listbox-drop"})).is(":visible")?(this.Cd.ojInputTime("hide"),this.nj=!0,this.element.focus()):this._super()},ZT:function(a){return null!==this.tx?this.tx:this.tx=Ul(a)},Qja:function(a,b){var c=this.mb().format(a);this.Uh(c);this.rb(c,b)},K_:function(){if(this.isValid())return this.options.value;
if(this.TB)try{return this.mb().parse(this.TB)}catch(a){return this.options.value}else return null},rb:function(a,b,c){this._superApply(arguments);this.TB=a},KB:function(a){var b=$.ui.keyCode,c=!1;switch(a.keyCode){case b.UP:case b.DOWN:a.shiftKey&&(this.rb(this.Tf(),a),this.Cd.ojInputTime("show"),c=!0)}return c?(a.preventDefault(),a.stopPropagation(),!1):this._superApply(arguments)},show:function(){Rl(this)||this.Cd.ojInputTime("hide");return this._super()},eQ:function(a){a.mode="datetime";var b=
Tl(this.options.timePicker.timeIncrement);a.Ola=0===b.CD?b.nE:1;return this._super(a)},QP:function(a){this.Ek=!1;a&&(a=w.pa._dateTime(this.fj(),{month:a.getMonth(),date:a.getDate(),fullYear:a.getFullYear(),hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds()}),a=this.mb().format(a),this.rb(a,{}));this.Fk(this.kn)},showTimePicker:function(){this.hide();return this.Cd.ojInputTime("show")},hideTimePicker:function(){return this.Cd.ojInputTime("hide")},refresh:function(){var a=this._superApply(arguments)||
this;this.Cd.ojInputTime("refresh");return a},getNodeBySubId:function(a){var b=a&&a.subId,c=null;b&&("oj-listbox-drop"===b||"oj-inputdatetime-time-icon"===b?c=this.Cd.ojInputTime("getNodeBySubId",a):"oj-inputdatetime-date-input"===b&&(c=this.od?this.vt[0]:this.element[0]));return c||this._superApply(arguments)},getSubIdByNode:function(a){var b=null;this.od?a===this.vt[0]&&(b="oj-inputdatetime-date-input"):a===this.element[0]&&(b="oj-inputdatetime-date-input");return b||this.Cd.ojInputTime("getSubIdByNode",
a)||this._superApply(arguments)},mb:function(){return this.options.converter?this._superApply(arguments):$.oj.ojInputDateTime.prototype.options.converter},xg:function(){this.Cd&&this.hideTimePicker();this._superApply(arguments)},Xi:function(){this.Cd&&this.hideTimePicker();this._superApply(arguments)},_GetMessagingLauncherElement:function(){return this.od?this.vt:this._super()},_GetDefaultStyleClass:function(){return"oj-inputdatetime"},rz:function(){return"oj-ojInputDate"}});
function $l(a,b){function c(a){if(a)for(var b in a)J[b]=a[b]}function d(){var b=!1,c=a.value;J.value=h(Math.floor(c/F),s);var d=a.max,d=Math.floor(c/I)===Math.floor(d/I)?h(Math.floor(d/F),s)+1:s;B!==d&&(b=!0,B=d);d=a.min;c=Math.floor(c/I)===Math.floor(d/I)?h(Math.floor(d/F),s):0;z!==c&&(b=!0,z=c);c=a.increment;d=k(c,I);d===I?(z=0,B=1,b=!0):d=J.linked&&c>F?c:0===h(d,F)?d/F:1;u!==d&&(u=d,b=!0);v=Math.floor(s/u);C=4<v;J.yr&&b&&J.yr.t1()}function e(){I=F*s;E=G*r}function f(){m.forEach(function(a){J.yr.classList.remove("oj-timepicker-wheel-spin-"+
a)});var a=Math.abs(p-q);if(0===a)D=!1;else{var b;a--;a=Math.min(a,m.length-1);b=m[a];J.yr.classList.add("oj-timepicker-wheel-spin-"+m[a]);p>q&&(q++,J.yr.Wia());p<q&&(q--,J.yr.Via());b&&setTimeout(f.bind(J),b)}}function h(a,b){return(a%b+b)%b}function k(a,b){return 0===b?a:k(b,a%b)}function l(a,b){return Math.floor(a/I)*I+h(b,s)*F+h(a,F)}var m=[150,100,50,25,16],n=0,p=0,q=0,r=1,s=1,u=1,v,y="",z,B,C,F,I,G=1,E,D=!1,J=this;(function(){Object.defineProperty(J,"position",{enumerable:!0,get:function(){return p},
set:function(a){var b=h(a,v)*u;b>=z&&b<B&&a!==p&&(J.value+=(a-p)*u)}});Object.defineProperty(J,"value",{enumerable:!0,get:function(){return n},set:function(b){b=Math.round(b/u)*u;if((C||z<=b&&b<B)&&n!==b){n=h(b,s);b=h(Math.floor(n/u),v);var c=h(J.position,v),d=b-c;C&&(b>c?c+v-b<Math.abs(d)&&(d=b-c-v):b+v-c<Math.abs(d)&&(d=b+v-c));0!==d&&(p+=d,J.yr?D||(D=!0,f.call(J)):q=p);J.linked&&(a.value=l(a.value,n))}}});Object.defineProperty(J,"increment",{enumerable:!0,get:function(){return u},set:function(a){u!==
a&&(u=a,e())}});Object.defineProperty(J,"valueMultiplier",{enumerable:!0,get:function(){return F},set:function(a){F!==a&&(F=a,e())}});Object.defineProperty(J,"valueRange",{enumerable:!0,get:function(){return s},set:function(a){s!==a&&(s=a,e())}});Object.defineProperty(J,"displayMultiplier",{enumerable:!0,get:function(){return G},set:function(a){G!==a&&(G=a,e())}});Object.defineProperty(J,"displayRange",{enumerable:!0,get:function(){return r},set:function(a){r!==a&&(r=a,e())}});Object.defineProperty(J,
"keyboardValue",{enumerable:!0,get:function(){return y},set:function(a){y=a;J.parser&&y&&(a=J.parser(y),0<=a&&(a=Math.floor(n/E)*E+h(a,r)*G+h(n,G),z<=a&&a<B&&(J.value=a)),2<=y.length?y="":setTimeout(function(){y=""},1E3))}})})();(function(){J.getText=function(a){var b,c=h(q,v)+a,c=C||0<=c&&c<v;J.formatter&&c&&(b=J.formatter(h(Math.floor(h(h(q+a,v)*u,s)/G),r)));return b};J.xia=function(a){a=h(q+a,v)*u;return 0!==z&&a<z||B!==s&&a>=B?!0:!1};J.update=function(){a.value=l(a.value,n)};J.refresh=d;J.Cja=
c})();c(b)}w.Components.xa("ojInputTime","inputBase",{properties:{converter:{},keyboardEdit:{type:"string"},max:{},min:{},pickerAttributes:{type:"Object"},placeholder:{},renderMode:{type:"string"},timePicker:{type:"Object"},validators:{type:"Array"},value:{type:"string",writeback:!0}},methods:{getNodeBySubId:{},getSubIdByNode:{},hide:{},refresh:{},show:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojInputTime"}});w.Components.register("oj-input-time",w.Components.getMetadata("ojInputTime"));
w.Components.xa("ojInputDate","inputBase",{properties:{converter:{},datePicker:{type:"Object"},dayFormatter:{},dayMetaData:{},keyboardEdit:{type:"string"},max:{},min:{},pickerAttributes:{type:"Object"},placeholder:{},renderMode:{type:"string"},validators:{type:"Array"},value:{type:"string",writeback:!0}},methods:{getNodeBySubId:{},getSubIdByNode:{},hide:{},refresh:{},show:{}},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojInputDate"}});w.Components.register("oj-input-date",w.Components.getMetadata("ojInputDate"));
var am=w.Nb.Fd({},w.Components.getMetadata("ojInputDate"),void 0,!0);am.extension._innerElement="div";w.Components.register("oj-date-picker",am);w.Components.xa("ojInputDateTime","ojInputDate",{properties:{converter:{},max:{},min:{},renderMode:{type:"string"},timePicker:{type:"Object"},validators:{type:"Array"},value:{type:"string",writeback:!0}},methods:{getNodeBySubId:{},getSubIdByNode:{},hideTimePicker:{},show:{},showTimePicker:{}},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojInputDateTime"}});
w.Components.register("oj-input-date-time",w.Components.getMetadata("ojInputDateTime"));var bm=w.Nb.Fd({},w.Components.getMetadata("ojInputDateTime"),void 0,!0);bm.extension._innerElement="div";w.Components.register("oj-date-time-picker",bm);
w.sa("oj.ojTable",$.oj.baseComponent,{version:"1.0.0",defaultElement:"\x3ctable\x3e",widgetEventPrefix:"oj",options:{accessibility:null,currentRow:null,data:null,display:"list",dnd:{drag:null,drop:null,reorder:{columns:"disabled"}},editMode:"none",emptyText:null,horizontalGridVisible:"auto",rowRenderer:null,scrollPolicy:"auto",scrollPolicyOptions:{fetchSize:25,maxCount:500},selection:[],selectionMode:null,verticalGridVisible:"auto",columns:[{renderer:null,className:null,field:null,footerClassName:null,
footerRenderer:null,footerStyle:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerText:null,id:null,sortable:"auto",sortProperty:null,style:null}],columnsDefault:{renderer:null,className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerText:null,sortable:"auto",sortProperty:null,style:null},beforeCurrentRow:null,beforeRowEdit:null,beforeRowEditEnd:null,ready:null,sort:null,optionChange:null},
ma:{t4:"msgFetchingData",x4:"msgNoData",j4:"labelSelectColumn",CP:"labelSelectRow",zP:"labelEditRow",BP:"labelSelectAndEditRow"},wg:{gP:"Did not change current row due to error.",fP:"Error detail: {error}.",D3:"Did not change current row due to unavailable row index.",C3:"Unavailable row index: {rowIdx}.",L3:"Invalid row index value.",K3:"Row index: {rowIdx}.",eP:"Invalid data type.",dP:"Please specify the appropriate data type.",H3:"Invalid element type.",G3:"Only a \x3ctable\x3e element can be specified for ojTable.",
F3:"Exceeded maximum rows for table scrolling.",E3:"Please reload with smaller data set."},AF:"id",Ri:"data",dv:"indexes",Kl:"key",Lr:"keys",Lc:"startIndex",Wc:"endIndex",TO:"pageSize",Vc:"column",Xc:"row",hka:"_headerColumn",ika:"_headerColumnText",fka:"_headerColumnAsc",gka:"_headerColumnDsc",v3:"_hdrCol",Or:"_focusedCalled",D4:"auto",tp:"enabled",E4:"disabled",OP:"none",Cz:{B4:"none",WF:"rowEdit"},$j:{Iz:"single",Qr:"multiple"},F4:{mp:"auto",m4:"loadMoreOnScroll"},Re:{Jl:"ascending",gn:"descending"},
A3:"oj-table-dnd-reorder-table-id",ab:{xP:32,xz:13,yz:38,wz:40,vP:37,wP:39,uP:36,rP:35,EF:9,sP:27,tP:113,Ui:"shiftKey"},getContextByNode:function(a){return this.getSubIdByNode(a,!0)},getDataForVisibleRow:function(a){var b=cm(this.j(),a);return null!=b?{key:b.data("rowKey"),data:b.data("rowData"),index:a}:null},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;var b=a.subId;if("oj-table-cell"===b){b=parseInt(a.rowIndex,10);a=parseInt(a.columnIndex,10);var c=this.j(),b=
dm(c,b,void 0);return(b?em(b):null)[a]}if("oj-table-header"===b||"oj-table-sort-ascending"===b||"oj-table-sort-descending"===b){a=a.index;var c=$,d;d=this.j();d=(d=fm(d))?em(d):null;a=c(d[a]);if(null!=a){if("oj-table-header"===b)return a[0];a="oj-table-sort-ascending"===b?a.find("."+gm):a.find("."+hm);if(0<a.length)return a[0]}}else if("oj-table-footer"===b&&(a=a.index,b=this.j(),b=im(b),a=(b?em(b):null)[a],null!=a))return a;return null},getSubIdByNode:function(a,b){var c=$(a).closest("."+jm);if(0<
c.length)return{subId:"oj-table-cell",rowIndex:km(this.j(),c),columnIndex:lm(this.j(),c)};c=$(a).closest("."+gm);if(0<c.length)return{subId:b?"oj-table-header":"oj-table-sort-ascending",index:lm(this.j(),c)};c=$(a).closest("."+hm);if(0<c.length)return{subId:b?"oj-table-header":"oj-table-sort-descending",index:lm(this.j(),c)};c=$(a).closest("."+mm);if(0<c.length)return{subId:"oj-table-header",index:lm(this.j(),c)};c=$(a).closest("."+nm);return 0<c.length?{subId:"oj-table-footer",index:lm(this.j(),
c)}:null},refresh:function(){this._super();this.Pd()},refreshRow:function(a){var b=this.Va();if(!b)return Promise.resolve(!1);var c=om(this.j());if(isNaN(a)||0>a||null!=c&&a>=c.length)throw b=this.wg.L3,c=w.ba.Db(this.wg.K3,{rowIdx:a.toString()}),new RangeError(b+"\n"+c);var c=this.vk(a),d=b.get(c);if(null==d)return Promise.resolve(!1);var e=this;return new Promise(function(b){d.then(function(c){null==c&&b(!1);e.tf(function(){e.$B(a,c);e=null});b(!0)})})},widget:function(){var a=pm(this.j());return null!=
a?a:this.element},_ComponentCreate:function(){this._super();this.Rv();this.Pda();this._on(this.Wl);if(this.DB()){var a=pm(this.j());this._on(a,this.I8)}this.Qda();this.wq();this.ZQ=$.extend(!0,{},this.options);this.xK(null)},cf:function(){this._super();qm(this.j(),this.vh.bind(this));this.lJ()},Se:function(a,b,c){var d={};this.$i=b.originalEvent;if(!(this.tJ($(this.$i.target))||this.Lba($(this.$i.target))||"touch"==c&&this.Mba($(this.$i.target)))){var e=rm(this.j(),$(this.$i.target),"oj-table-column-header-cell"),
e=null==e?sm(this.j(),this.uQ):e,f=rm(this.j(),$(this.$i.target),"oj-table-data-cell");null!=f&&(e=lm(this.j(),f),e=sm(this.j(),e));"keydown"===this.$i.type&&(f=tm(this.MK),this.$i.target==f[0]?null!=e&&null!=e[0]?d.position={my:"start top",at:"start bottom",of:e[0]}:(f=this.ij(),0<=f?(f=cm(this.j(),f),d.position={my:"start top",at:"start bottom",of:f[0]}):d.position={my:"start top",at:"start bottom",of:this.$i.target}):d.position={my:"start top",at:"start bottom",of:this.$i.target});e.attr("data-oj-sortable")==
this.tp?($(a.element).find("[data-oj-command\x3doj-table-sortAsc]").removeClass("oj-disabled"),$(a.element).find("[data-oj-command\x3doj-table-sortDsc]").removeClass("oj-disabled")):($(a.element).find("[data-oj-command\x3doj-table-sortAsc]").addClass("oj-disabled"),$(a.element).find("[data-oj-command\x3doj-table-sortDsc]").addClass("oj-disabled"));this.Te(b,c,d)}},_destroy:function(){this.Va();this.Pk();this.Qk();um(this.j()).removeAttr(w.Components.Zj);this.element.children().remove("."+vm);this.element.children().remove("."+
wm);this.element.children().remove("."+xm);this.element.children().remove("."+ym);this.element.children().remove("."+zm);w.q.unwrap(this.element,pm(this.j()));this.element.removeClass(Am);this.Kv=!0},Rv:function(){this.Pea(function(){Bm(this.j());this.mt(this.options.selection);if(this.lj()){var a=this.hj(),a=cm(this.j(),a);null!=a&&a.addClass(Cm)}this.pf()&&!this.bS&&this.yH.checkViewport().then(this.zS,null)});if(!this.element.is("table"))throw new RangeError(this.wg.H3+"\n"+this.wg.G3);this.element.addClass(Dm);
Em(this.j(),this.BB(),this.GV());Fm(this.j());this.$W();this.bx();this.ZW();Bm(this.j());this.pf()&&this.eX();this.options.disabled&&this.disable();this.wj()},Wl:{focusout:function(a){var b=tm(this.j()),c=null;null!=a.relatedTarget?c=a.relatedTarget:null!=a.originalEvent&&null!=a.originalEvent.explicitOriginalTarget?c=a.originalEvent.explicitOriginalTarget:Gm(this.j())&&null!=document.activeElement&&(c=document.activeElement);null!=c&&(c==b[0]||0<b.has(c).length)||(this.O6(),this.pR(),this.qR(!1),
this.Cq(!1))},"blur .oj-table-data-cell":function(a){$(a.currentTarget).hasClass(Hm)&&$(a.currentTarget).removeClass(Hm)},focus:function(a){this.VG(a)},focusin:function(a){0<um(this.j()).has(a.target).length&&!this.NK&&!this.lj()&&!this.HY&&tm(this.j()).focus()},"focus .oj-table-column-header-acc-asc-link":function(a){var b=this;setTimeout(function(){b.VG(a);b=null},0)},"focus .oj-table-data-cell":function(a){km(this.j(),$(a.currentTarget))==this.hj()&&$(a.currentTarget).addClass(Hm)},"click .oj-table-checkbox-acc-select-column":function(a){var b=
lm(this.j(),$(a.currentTarget)),c=$(a.currentTarget).is(":checked");c&&this.Kk(b,!0,!0,null);this.Lk(b,c,a.currentTarget,a,!0);a.stopPropagation()},"click .oj-table-checkbox-acc-select-row":function(a){var b=km(this.j(),$(a.currentTarget)),c=$(a.currentTarget).is(":checked"),d=!1;c?d=this.yh(b,!0,!0,null,a,!0):this.uf(!1,!1,0,!0,a);d&&(this.Ng(b,c,a.currentTarget,a,!0),this.uf(!0,!1,0,!0,a));a.stopPropagation()},keydown:function(a){this.R5(a.keyCode);if(this.Eg()[0]==this.ab.EF||!(this.tJ($(a.target))||
null!=Im(this.j())&&0<Im(this.j()).has(a.target).length))if(1==this.Eg().length||2==this.Eg().length&&a[this.ab.Ui]){if(this.nf(this.ab.yz)||this.nf(this.ab.wz)||this.nf(this.ab.xP)||this.nf(this.ab.uP)||this.nf(this.ab.rP))a.preventDefault(),a.stopPropagation();this.nf(this.ab.yz)||this.nf(this.ab.wz)?this.jaa(a):this.nf(this.ab.vP)||this.nf(this.ab.wP)?this.haa(a):this.nf(this.ab.EF)&&this.iaa(a)}},keyup:function(a){if(1==this.Eg().length){var b=this.Eg()[0];if(b!=this.ab.sP&&b!=this.ab.xz&&b!=
this.ab.tP&&b!=this.ab.EF&&(this.tJ($(a.target))||null!=Im(this.j())&&0<Im(this.j()).has(a.target).length)){this.cC(b);return}b==this.ab.xP?this.paa(a):b==this.ab.xz?this.laa(a):b==this.ab.uP?this.oaa(a):b==this.ab.rP?this.kaa(a):b==this.ab.sP?this.maa(a):b==this.ab.tP&&this.naa(a);this.cC(b)}this.cC(a.keyCode)},"mousedown .oj-table-body":function(a){this.$f=km(this.j(),$(a.target));if(null!=this.$f){var b=cm(this.j(),this.$f);null!=b&&b.prop("draggable")?this.$f=null:null==this.$f||a[this.ab.Ui]||
w.q.Hm(a)||this.Fs(this.$f)&&1==this.Gs().length||this.mW||this.fs()}},"mouseup .oj-table-body":function(){this.$f=null},"mouseenter .oj-table-body-row":function(a){$(a.currentTarget).addClass(Jm);this.TI(a.target)},"mouseleave .oj-table-body-row":function(a){$(a.currentTarget).removeClass(Jm)},"mousedown .oj-table-column-header-cell":function(a){var b=lm(this.j(),$(a.currentTarget));this.Kk(b,!0,!0,a);$(a.target).data(this.Or,!0)},"mouseenter .oj-table-column-header-cell":function(a){$(a.currentTarget).addClass(Jm);
a=lm(this.j(),$(a.currentTarget));this.lY(a)},"mouseleave .oj-table-column-header-cell":function(a){$(a.currentTarget).removeClass(Jm);a=lm(this.j(),$(a.currentTarget));this.aq(a,!0);this.aq(a,!1)},"mousedown .oj-table-data-cell":function(a){var b=km(this.j(),$(a.currentTarget));this.yh(b,!0,!0,a.currentTarget,a);$(a.target).data(this.Or,!0)},"mouseenter .oj-table-data-cell":function(a){$(a.currentTarget).addClass(Jm)},"mouseleave .oj-table-data-cell":function(a){$(a.currentTarget).removeClass(Jm)},
"click .oj-table-column-header-asc-link":function(a){var b=lm(this.j(),$(a.target)),c=sm(this.j(),b);c&&(c.data("sorted")==this.Re.Jl?this.ci(b,!1,a):this.ci(b,!0,a),a.preventDefault(),a.stopPropagation())},"click .oj-table-column-header-acc-asc-link":function(a){if(0<this.Eg().length&&this.Eg()[0]==this.ab.xz)a.preventDefault(),a.stopPropagation();else{var b=lm(this.j(),$(a.target)),c=sm(this.j(),b);c&&(c.data("sorted")==this.Re.gn?this.ci(b,!0,a):this.ci(b,!1,a),a.preventDefault(),a.stopPropagation())}},
"click .oj-table-column-header-dsc-link":function(a){var b=lm(this.j(),$(a.target)),c=sm(this.j(),b);c&&(c.data("sorted")==this.Re.gn?this.ci(b,!0,a):this.ci(b,!1,a),a.preventDefault(),a.stopPropagation())},"click .oj-table-column-header-acc-dsc-link":function(a){if(0<this.Eg().length&&this.Eg()[0]==this.ab.xz)a.preventDefault(),a.stopPropagation();else{var b=lm(this.j(),$(a.target)),c=sm(this.j(),b);c&&(c.data("sorted")==this.Re.gn?this.ci(b,!0,a):this.ci(b,!1,a),a.preventDefault(),a.stopPropagation())}},
"click .oj-table-data-cell":function(a){var b=km(this.j(),$(a.currentTarget));if(!$(a.target).data(this.Or)){var c=this.yh(b,!0,!0,a.currentTarget,a);$(a.target).data(this.Or,!1);if(!c)return}if(a[this.ab.Ui]){if(c=this.y9(),null!=c)if(window.getSelection().removeAllRanges(),b<c){var d;for(d=b;d<=c;d++)this.Ng(d,!0,a.currentTarget,a,!0)}else for(d=c;d<=b;d++)this.Ng(d,!0,a.currentTarget,a,!0)}else if(w.q.Hm(a))this.Ng(b,!this.Fs(b),a.currentTarget,a,!0);else if(0==this.Eg().length&&(c=this.Fs(b),
this.Ng(b,!c,a.currentTarget,a,!0),this.DB()&&this.cm()==this.$j.Qr&&!c)){a=this.j();c=$(document.createElement(Km));c.addClass(Lm);c.addClass(Mm);c.data("rowIdx",b);d=$(document.createElement(Km));d.addClass(Nm);d.attr("role","button");d.attr("aria-label",a.u.r("labelAccSelectionAffordanceTop"));d.data("rowIdx",b);c.append(d);d=$(document.createElement(Km));d.addClass(Om);d.addClass(Mm);d.data("rowIdx",b);var e=$(document.createElement(Km));e.addClass(Pm);e.attr("role","button");e.attr("aria-label",
a.u.r("labelAccSelectionAffordanceBottom"));e.data("rowIdx",b);d.append(e);e=pm(a);e.append(c);e.append(d);Qm(a,b);Rm(a,b)}},"dblclick .oj-table-data-cell":function(a){var b=lm(this.j(),$(a.target));this.uf(!0,!1,b,!0,a)},"contextmenu .oj-table-data-cell":function(a){var b=km(this.j(),$(a.currentTarget)),b=this.vk(b);this.zj({rowKey:b},a,!1)},"click .oj-table-column-header-cell":function(a){var b=lm(this.j(),$(a.currentTarget));$(a.target).data(this.Or)||(this.Kk(b,!0,!0,a),$(a.target).data(this.Or,
!1));if(a[this.ab.Ui]){var c=this.x9();if(null!=c)if(b<c){var d;for(d=b;d<=c;d++)this.Lk(d,!0,a.currentTarget,a,!0)}else for(d=c;d<=b;d++)this.Lk(d,!0,a.currentTarget,a,!0)}else w.q.Hm(a)?this.Lk(b,!this.kw(b),a.currentTarget,a,!0):0==this.Eg().length&&(this.Iv(),this.Lk(b,!this.kw(b),a.currentTarget,a,!0),Sm(this.Fg(),b,!0))},"dragstart .oj-table-column-header-cell":function(a){return Tm(this.Fg(),a)},"dragenter .oj-table-column-header-cell":function(a){var b=this.Fg();if(null!=b.Jp)a=void 0;else{var c=
Um(b,a);a=b.qj("columns","dragEnter",a,{columnIndex:c})}return a},"dragover .oj-table-column-header-cell":function(a){var b=this.Fg();if(null!=b.Jp){var c=Um(b,a),d=b.Jp;null!=d&&d!=c&&(b.ms=Vm(a),b.ms&&d==c-1||!b.ms&&d==c+1||Wm(b.j(),c,b.ms),a.preventDefault());a=void 0}else c=Um(b,a),b.ms=Vm(a),d=b.qj("columns","dragOver",a,{columnIndex:c}),(!1===d||a.isDefaultPrevented())&&Wm(b.j(),c,Vm(a)),a=d;return a},"dragleave .oj-table-column-header-cell":function(a){var b=this.Fg();if(null!=b.Jp)a=void 0;
else{Xm(b.j());var c=Um(b,a);a=b.pj("drop","columns","dragLeave",a,{columnIndex:c})}return a},"drop .oj-table-column-header-cell":function(a){var b=this.Fg();if(null!=b.Jp){var c=Um(b,a);b.ms||c++;b.u.jk=Ym(b.j(),b.Jp,c,a);a.preventDefault();a=void 0}else Xm(b.j()),c=Um(b,a),b.ms||c++,a=b.qj("columns","drop",a,{columnIndex:c});return a},"dragend .oj-table-column-header-cell":function(){var a=this.Fg();if(Zm(a)){Sm(a,null,!1);a.Jp=null;Xm(a.j());var b=a.j();if((b=pm(b).find(".oj-table-column-header-cell-drag-image"))&&
0<b.length){var c,d=b.length;for(c=0;c<d;c++)$(b[c]).remove()}b=$m(a.j()).find("."+an);if(null!=b&&0<b.length)for(d=b.length,c=0;c<d;c++)$(b[c]).removeClass(an);bn(a.j(),null,!1)}},"dragstart .oj-table-body-row":function(a){var b=this.Fg(),c=b.options.dnd.drag;if(c&&c.rows){for(var d=c.rows.dataTypes,e=b.u.Gs(),c=[],f=0;f<e.length;f++){var h=b.u.getDataForVisibleRow(e[f]);h&&c.push(h)}if(c.length){f=a.originalEvent.dataTransfer;h=JSON.stringify(c);if("string"==typeof d)f.setData(d,h);else if(d)for(var k=
0;k<d.length;k++)f.setData(d[k],h);var d=a.originalEvent,h=$(a.currentTarget).closest("table").parent(),k=$(h.find(cn)[0]),l=k.scrollLeft(),m=k.scrollTop(),f=h.clone(),n=$(f.find(cn)[0]);n.css(dn,en);n.css(fn,en);n.css(gn,en);n.css("background-color","transparent");n.css(hn,k.width()+jn);n.css(kn,k.height()+jn);f.css(ln,"fixed");f.css(mn,1E4);n.scrollLeft(1*l);n.scrollTop(1*m);$("body").append(f);k=f.find("."+nn);for(l=k.length-1;0<=l;l--)-1==e.indexOf(l)&&$(k[l]).css("visibility",en);e=$(f.find(on));
null!=e&&0<e.length&&e.css("visibility",en);e=$(f.find(pn));null!=e&&0<e.length&&e.css("visibility",en);e=h[0].getBoundingClientRect();k=$(h.find(cn)[0]);h=k.scrollLeft();k=k.scrollTop();d.dataTransfer.setDragImage(f[0],d.clientX-e.left+h,d.clientY-e.top+k);b.AH=f;c={rows:c}}else c=null;a=c?b.pj("drag","rows","dragStart",a,c):!1}else a=void 0;return a},"drag .oj-table-body-row":function(a){return this.Fg().pj("drag","rows","drag",a)},"dragend .oj-table-body-row":function(a){var b=this.Fg();b.vA();
return b.pj("drag","rows","dragEnd",a)},"dragenter .oj-table-body":function(a){var b=this.Fg(),c,d;d=$(a.target).closest(qn);var e=b.u.getContextByNode(a.target);d=e&&"oj-table-cell"==e.subId?e.rowIndex:d&&d.hasClass(rn)?b.Cn:(d=om(b.j()))?d.length:0;c=d;d=b.qj("rows","dragEnter",a,{rowIndex:c});if((!1===d||a.isDefaultPrevented())&&b.Cn!=c){e=$(a.target).closest(qn);b.Cn=c;a=b.j();c=b.Cn;sn(a);b=$(document.createElement(qn));b.addClass(rn);e&&b.height(e.height());var e=$(document.createElement(tn)),
f=a.u.cb();e.attr(un,f.length+1);b.append(e);e=cm(a,c);null!=e?e.before(b):(e=om(a),null!=e&&0!=e.length||a.u.nB(),um(a).append(b))}return d},"dragover .oj-table-body":function(a){var b=this.Fg();return b.qj("rows","dragOver",a,{rowIndex:b.Cn})},"dragleave .oj-table-body":function(a){var b=this.Fg(),c=b.pj("drop","rows","dragLeave",a,{rowIndex:b.Cn});b.tB(a,a.currentTarget)||(sn(b.j()),b.Cn=null);return c},"drop .oj-table-body":function(a){var b=this.Fg(),c=b.Cn;sn(b.j());b.Cn=null;return b.qj("rows",
"drop",a,{rowIndex:c})}},I8:{touchstart:function(a){if(1==a.originalEvent.touches.length&&this.cm()==this.$j.Qr)if($(a.target).hasClass(Lm)||$(a.target).hasClass(Nm))a.preventDefault(),this.$f=vn(this.j()).data("rowIdx");else if($(a.target).hasClass(Om)||$(a.target).hasClass(Pm))a.preventDefault(),this.$f=wn(this.j()).data("rowIdx")},touchmove:function(a){null!=this.$f&&(a.preventDefault(),a=this.bU(a),this.TI(a))},touchend:function(a){null!=this.$f&&(a=this.bU(a),this.TI(a));this.$f=null},"touchend .oj-table-body":function(a){var b=
$(a.target);null!=this.AJ&&250>(new Date).getTime()-this.AJ&&this.MV[0]==b[0]?(this.MV=this.AJ=null,b=lm(this.j(),$(b)),this.uf(!0,!1,b,!0,a),a.preventDefault()):(this.MV=b,this.AJ=(new Date).getTime())},touchcancel:function(){this.$f=null}},Pd:function(){var a=null,b=!1;this.b!=this.options[this.Ri]&&(this.$G(),null==this.b?b=!0:a=0,this.pf()&&(null!=this.yH&&this.yH.destroy(),this.eX()));this.FR!=xn(this.j())&&qm(this.j(),this.vh.bind(this));yn(this.j());zn(this.j());this.Mda();if(b)return this.lJ();
var c=this;this.tf(function(){var b=c.vw(a);c=a=null;return b})},_setOption:function(a,b){this._superApply(arguments);this.Pba(a,b)?this.Pd():"selection"==a?(this.fs(),this.Iv(),this.mt(b)):"currentRow"==a&&this.zj(b,null,!0)},R5:function(a){var b=!1,c;for(c in this.ab)this.ab.hasOwnProperty(c)&&this.ab[c]==a&&(b=!0);if(b){b=this.Eg();c=!1;var d,e=b.length;for(d=0;d<e;d++)if(b[d]==a){c=!0;break}c||b.push(a)}},yQ:function(a,b,c,d){var e=An(this.j(),a,b[this.Kl]);Bn(this.j(),e,!0);Cn(this.j(),a,e,b,
c);this.$B(a,b,e,c,d,!0)},VG:function(a){var b=this.ij(),c=this.Yl();null==b&&null==c&&(this.BB()?this.yh(0,!0,!0,null,a):this.Kk(0,!0,!1,a))},N6:function(){this.xn=null;this.Cq(!1)},$G:function(){null!=this.b&&this.Pk();this.b=null},gk:function(){this.Xaa();this.Yaa();this.bS=!1},O6:function(){this.xJ=[]},pR:function(){var a=this.Yl();null!=a&&this.Kk(a,!1,!1,null);this.uQ=-1},qR:function(a){null!=this.ij()&&this.yh(-1,!0,a,null,null)},Iv:function(){var a=this.QT(),b,c=a.length;for(b=0;b<c;b++)this.Lk(a[b],
!1,null,null,!1)},fs:function(){var a=this.Gs(),b,c=a.length;for(b=0;b<c;b++)this.Ng(a[b],!1,null,null,!1);if(this.DB()&&this.cm()==this.$j.Qr&&(a=this.j(),a=pm(a).children("."+Mm),null!=a&&0<a.length))for(b=0;b<a.length;b++)a[b].remove()},rR:function(a){var b=this.W9();if(null!=b){var c=sm(this.j(),b),d=c.data("sorted");c.data("sorted",null);b!=a?d==this.Re.Jl?this.aq(b,!0):this.aq(b,!1):(c.find("."+gm).removeClass(Dn),c.find("."+hm).removeClass(Dn))}},J8:function(a){var b=this;this.tf(function(){var c=
!1;if(1<a.length){var d,e=a.length,f=!0;for(d=0;d<e;d++)if(0!=d&&a[d-1].$g!=a[d].$g-1){f=!1;break}if(f){c=um(b.j());f=$(document.createDocumentFragment());e=a.length;for(d=0;d<e;d++)b.yQ(a[d].$g,a[d].row,f,a[0].$g);0==a[0].$g?c.prepend(f):(d=cm(b.j(),a[0].$g),null!=d?c[0].insertBefore(f[0],d[0]):c[0].insertBefore(f[0],null));b.j().ek=null;w.Components.me(c[0]);c=!0}}if(!c)for(e=a.length,d=0;d<e;d++)b.yQ(a[d].$g,a[d].row);b.j().ek=null;b.bx();b=null})},K8:function(a){var b=this;this.tf(function(){var c,
d=a.length;for(c=0;c<d;c++)b.$B(a[c].$g,a[c].row);b.bx();b=null})},L8:function(a){var b=this,c=this.gw(),d=null!=c?c.rowKey:null;this.tf(function(){var c=[],f,h,k=a.length,l=!1;h=om(b.j());if(null!=h&&0<h.length){for(f=0;f<h.length;f++)c.push(f);for(f=0;f<k;f++)for(h=0;h<c.length;h++)if(c[h]==a[f].$g){c.splice(h,1);break}0==c.length&&(l=!0)}if(l)En(b.j());else for(f=0;f<k;f++)Fn(b.j(),a[f].$g);if(null!=d)for(f=0;f<k;f++)if(c=a[f].row[b.Kl],oa(c,d)){b.zj(null,null,!1);break}b.bx();h=om(b.j());null!=
h&&0!=h.length||b.EK();b.VG(null);b=null})},cb:function(){this.xn||(this.xn=this.gT());return this.xn},gT:function(){var a=this.options.columns,b=this.options.columnsDefault;if((0==a.length||1==a.length&&null==a[0].id&&null==a[0].headerText&&null==a[0].field)&&null==b.headerText&&null==b.field)return[];var c=[],d,e=a.length;for(d=0;d<e;d++)c[d]=$.extend({},b,a[d]);a=[];b=c.length;for(d=0;d<b;d++)a.push(c[d]);d=this.Va();c=!1;null!=d&&"full"==d.getCapability("sort")&&(c=!0);for(d=0;d<b;d++)null==a[d][this.AF]&&
(a[d][this.AF]=this.v3+d),null!=a[d].sortable&&a[d].sortable!=this.D4||!c||(a[d].sortable=this.tp);return a},eT:function(a){var b=this.cb();if(null!=b){var c,d,e=b.length;for(c=0;c<e;c++)if(d=b[c],oa(d.id,a))return c}return null},fT:function(a){a=tm(this.j()).find(a);var b=[];if(a&&0<a.length){var c,d,e,f,h,k=a.length;for(c=0;c<k;c++){f=lm(this.j(),$(a.get(c)));e=!1;h=b.length;for(d=0;d<h;d++)b[d]==f&&(e=!0);e||b.push(f)}}return b},KA:function(a){var b=this.cb();return null!=b&&a<b.length?b[a][this.AF]:
null},En:function(a,b){var c=this.cb()[a];return"cell"==b?c.renderer:"footer"==b?c.footerRenderer:"header"==b?c.headerRenderer:null},gw:function(){return this.Va()?this.Tl:null},Va:function(){if(!this.b&&null!=this.options.data){var a=this.options.data;if(a instanceof Sf||a instanceof Z)this.b=!this.pf()||a instanceof Z?a:new Z(a);else throw Error(this.wg.eP+"\n"+this.wg.dP);this.wq()}return this.b},Yl:function(){return this.fT("."+mm+"."+Gn)[0]},ij:function(){return this.OT("."+nn+"."+Gn)[0]},Pka:function(a){return this.bI(a).qi},
kw:function(a){return this.bI(a).selected},LA:function(){return null==this.options.selectionMode?null:this.options.selectionMode[this.Vc]},bI:function(a){a=sm(this.j(),a);return{qi:a.hasClass(Gn),selected:a.hasClass(Dn)}},Eg:function(){this.xJ||(this.xJ=[]);return this.xJ.reverse()},x9:function(){return null!=this.Sn&&0<this.Sn.length?this.Sn[0]:null},y9:function(){return null!=this.Tn&&0<this.Tn.length?this.Tn[0]:null},R9:function(a,b){var c=[];if(null!=a){var d,e=a[this.dv].length;for(d=0;d<e;d++)c.push({row:{data:a[this.Ri][d],
key:a[this.Lr][d],index:a[this.dv][d]},$g:b+d})}return c},Es:function(a){var b=om(this.j());if(null!=b&&0<b.length){var c,d=b.length;for(c=0;c<d;c++)if(oa($(b[c]).data("rowKey"),a))return c}return null},Qp:function(a){var b=om(this.j());if(null!=b&&0<b.length){var c,d=b.length;for(c=0;c<d;c++)if(oa($(b[c]).data("rowKey"),a))return a=this.Va(),b=0,a instanceof Z&&(b=a.getStartItemIndex()),c+b}return null},hj:function(){var a=null;return null!=this.AA&&(a=this.Es(this.AA),null!==a)?a:this.C8},Nka:function(){return this.AA},
OT:function(a){a=tm(this.j()).find(a);var b=[];if(a&&0<a.length){var c,d,e,f,h,k=a.length;for(c=0;c<k;c++){e=km(this.j(),$(a.get(c)));h=!1;f=b.length;for(d=0;d<f;d++)b[d]==e&&(h=!0);h||b.push(e)}}return b},mw:function(a){var b=om(this.j());if(null!=b&&0<b.length){var c=this.Va(),d=0;c instanceof Z&&(d=c.getStartItemIndex());for(var e=b.length,c=0;c<e;c++)if(d+c==a)return $(b[c]).data("rowKey")}return null},vk:function(a){a=cm(this.j(),a);return null!=a?a.data("rowKey"):null},PT:function(){return this.options.rowRenderer},
Fs:function(a){return cm(this.j(),a).hasClass(Dn)},cm:function(){return null==this.options.selectionMode?null:this.options.selectionMode[this.Xc]},QT:function(){return this.fT("."+mm+"."+Dn)},Gs:function(){return this.OT("."+nn+"."+Dn)},RT:function(){var a=this.Gs(),b=this.QT(),c=null,d=!0;if(null!=a&&0<a.length)c=a;else if(null!=b&&0<b.length)c=b,d=!1;else return null;var a=[],b=0,e=null,f,h,k,l,m,n=c.length;for(m=0;m<n;m++)k=c[m],0==m?(f={},f[this.Lc]={},f[this.Wc]={},f.startKey={},f.endKey={},
d?(l=this.vk(k),h=this.Qp(l),f.startKey[this.Xc]=l,f.endKey[this.Xc]=l,f[this.Lc][this.Xc]=h,f[this.Wc][this.Xc]=h):(f[this.Lc][this.Vc]=k,f[this.Wc][this.Vc]=k,l=this.KA(k),f.startKey[this.Vc]=l,f.endKey[this.Vc]=l),a[0]=f):(f=a[b],d?(l=this.vk(k),h=this.Qp(l),f.endKey[this.Xc]=l,f[this.Wc][this.Xc]=h):(f[this.Wc][this.Vc]=k,l=this.KA(k),f.endKey[this.Vc]=l),k!=e+1&&(d?(l=this.vk(e),h=this.Qp(l),f.endKey[this.Xc]=l,f[this.Wc][this.Xc]=h,f={},f[this.Lc]={},f[this.Wc]={},f.startKey={},f.endKey={},
l=this.vk(k),h=this.Qp(l),f.startKey[this.Xc]=l,f.endKey[this.Xc]=l,f[this.Lc][this.Xc]=h,f[this.Wc][this.Xc]=h):(f[this.Wc][this.Vc]=e,l=this.KA(e),f.endKey[this.Vc]=l,f={},f[this.Lc]={},f[this.Wc]={},f.startKey={},f.endKey={},f[this.Lc][this.Vc]=k,f[this.Wc][this.Vc]=k,l=this.KA(k),f.startKey[this.Vc]=l,f.endKey[this.Vc]=l),b++,a[b]=f)),e=k;return a},W9:function(){var a=fm(this.j()),b,c,d=a.length;for(b=0;b<d;b++)if(c=$(a[b]).data("sorted"),null!=c)return b;return null},ow:function(a){a=a.find(":tabbable");
return null!=a&&0<a.length?a:null},Fg:function(){this.yY||(this.yY=new Hn(this));return this.yY},j:function(){this.MK||(this.MK=new In(this));return this.MK},bU:function(a){a=a.originalEvent.changedTouches[0];return $(document.elementFromPoint(a.clientX,a.clientY))},vh:function(a,b){var c=b.item.attr("data-oj-command"),d=rm(this.j(),$(this.$i.target),"oj-table-column-header-cell"),e=rm(this.j(),$(this.$i.target),"oj-table-data-cell"),f=null;null!=d&&(f=lm(this.j(),d));null!=e&&(f=lm(this.j(),e));
null!==f&&("oj-table-sortAsc"==c?this.ci(f,!0,a):"oj-table-sortDsc"==c?this.ci(f,!1,a):"oj-table-enableNonContiguousSelection"==c?(this.mW=!0,b.item.attr("data-oj-command","oj-table-disableNonContiguousSelection"),b.item.children().first().text(this.r("labelDisableNonContiguousSelection"))):"oj-table-disableNonContiguousSelection"==c&&(this.mW=!1,b.item.attr("data-oj-command","oj-table-enableNonContiguousSelection"),b.item.children().first().text(this.r("labelEnableNonContiguousSelection"))))},B$:function(a){this.gk();
w.l.error(a)},C$:function(){this.MX()},EI:function(a){try{var b=this;this.tf(function(){var c=b.Va();if(null!=c.sortCriteria){var e=c.sortCriteria.key,f=c.sortCriteria.direction;null!=e&&null!=f&&b.YB(e,f==b.Re.Jl)}e=0;c instanceof Z&&(e=c.getStartItemIndex());for(var c=[],h=a[b.Ri].length,f=0;f<h;f++)c[f]=f+e+a[b.Lc];b.RW({data:a[b.Ri],keys:a[b.Lr],indexes:c},a[b.Lc]);b=null})}catch(c){w.l.error(c)}finally{this.gk()}},hB:function(){try{var a=this.vw(),b=this;this.tf(function(){b.zj(null,null,!1);
b=null;return a})}catch(c){w.l.error(c)}finally{this.gk()}},Mn:function(){try{this.lJ();var a=this;this.tf(function(){a.zj(null,null,!1);a=null})}catch(b){w.l.error(b)}finally{this.gk()}},FI:function(a){try{var b=this.Va(),c=a[this.Ri],d=a[this.dv],e=a[this.Lr];c instanceof Array||(c=[c]);a=0;b instanceof Z&&(a=b.getStartItemIndex());var b=[],f,h=c.length;for(f=0;f<h;f++){var k=d[f]-a;void 0!==k&&b.push({row:{data:c[f],key:e[f],index:d[f]},$g:k})}0<b.length&&this.J8(b)}catch(l){w.l.error(l)}finally{this.gk()}},
E$:function(a){try{var b=this.Va(),c=a[this.Ri],d=a[this.dv],e=a[this.Lr];c instanceof Array||(c=[c]);a=0;b instanceof Z&&(a=b.getStartItemIndex());var b=[],f,h=c.length;for(f=0;f<h;f++){var k=d[f]-a;void 0!==k&&b.push({row:{data:c[f],key:e[f],index:d[f]},$g:k})}0<b.length&&this.K8(b)}catch(l){w.l.error(l)}finally{this.gk()}},GI:function(a){try{var b=this.Va(),c=a[this.Ri],d=a[this.dv],e=a[this.Lr];c instanceof Array||(c=[c]);a=0;b instanceof Z&&(a=b.getStartItemIndex());var b=[],f;for(f=c.length-
1;0<=f;f--){var h=d[f]-a;void 0!==h&&b.push({row:{data:c[f],key:e[f],index:d[f]},$g:h})}0<b.length&&this.L8(b)}catch(k){w.l.error(k)}finally{this.gk()}},HI:function(a){try{var b=null,c=this.cb(),d,e,f,h=c.length;for(d=0;d<h;d++)if(e=c[d],f=null==e.sortProperty?e.field:e.sortProperty,a.header==f){b=d;break}null!=a&&this.YB(a.header,a.direction==this.Re.Jl);var k=this.options.selection;if(null!=k){a=!1;if(1<k.length)a=!0;else if(null!=k[0]){var l=k[0][this.Wc];oa(k[0][this.Lc],l)||null==l||(a=!0)}a&&
(this.mt(null),this.option("selection",null,{_context:{kc:!0,Ia:!0}}))}this.zj(this.options.currentRow,null,!1);var m=this;this.tf(function(){return m.pf()?m.vw(0,null):m.vw(null)}).then(function(){null!=b&&setTimeout(function(){m.CX(b);b=m=null},0)})}catch(n){w.l.error(n)}finally{this.gk()}},haa:function(a){var b=this.Yl(),c=this.cb();if(null!=b){var d=b;this.nf(this.ab.vP)?d=0<b?b-1:b:this.nf(this.ab.wP)&&(d=b<c.length-1?b+1:b);d!=b&&(this.Kk(d,!0,!1,null),a[this.ab.Ui]&&(c=this.kw(d),this.Lk(d,
!c,null,a,!0),c&&this.kw(b)&&this.Lk(b,!1,null,a,!0)))}},iaa:function(a){var b=!1,c=this.ij();if(null!=c&&this.NK){var d=document.activeElement,e=um(this.j());if(this.hj()===c){var f=cm(this.j(),c),f=this.ow(f),h=null!=f?f.length:0,d=f.index(d);if(d!=h-1||a[this.ab.Ui])if(0==d&&a[this.ab.Ui])d=fm(this.j()).length,this.VX(d-1,a);else return;else this.SX(0,a)}else if($.contains(e[0],d))return;e=this.ow(e);null==e||a[this.ab.Ui]||(b=!0,f=cm(this.j(),c),f=this.ow(f),null!=f?$(f[0]).focus():$(e[0]).focus(),
a.preventDefault(),a.stopPropagation())}if(!b){e=tm(this.j());b=this.ow($(document));c=b.length;e=this.ow(e);d=null!=e?e.length:0;f=b.index(tm(this.j()));if(a[this.ab.Ui])if(0<=f){if(0==f)return;$(b[f-1]).focus()}else return;else if(f!=c-1&&f+d+1<=c-1)$(b[f+d+1]).focus();else{if(0<d){this.HY=!0;e[d-1].focus();var k=this;setTimeout(function(){k.HY=!1},0)}return}a.preventDefault();a.stopPropagation()}this.cC(a.keyCode)},jaa:function(a){var b=this.ij(),c=this.Yl();if(null==b||this.lj())null!=c&&this.nf(this.ab.wz)&&
this.yh(0,!0,!0,null,a);else{var c=om(this.j()),d=null!=c?c.length:0,c=b;this.nf(this.ab.yz)?c=0<b?b-1:b:this.nf(this.ab.wz)&&(c=b<d-1?b+1:b);c!=b?this.yh(c,!0,!0,null,a)&&a[this.ab.Ui]&&(d=this.Fs(c),this.Ng(c,!d,null,a,!0),d&&this.Fs(b)&&this.Ng(b,!1,null,a,!0)):c==b&&0==b&&this.nf(this.ab.yz)&&this.Kk(0,!0,!1,null)}},kaa:function(a){var b=this.Yl();if(null!=b&&b!=this.cb().length-1)this.Kk(this.cb().length-1,!0,!1,null);else if(!this.lj()){var b=this.ij(),c=om(this.j()),c=null!=c?c.length:0;null!=
b&&b!=c-1&&0<c&&this.yh(c-1,!0,!0,null,a)}},laa:function(a){var b=this.Yl();if(null!=b&&this.cb()[b].sortable==this.tp){var c=sm(this.j(),b).data("sorted");null==c||c==this.Re.gn?this.ci(b,!0,a):this.ci(b,!1,a)}else b=(b=this.gw())||{},0<=b.rowIndex&&(om(this.j()),this.lj()?(b=lm(this.j(),$(a.target)),a[this.ab.Ui]?this.VX(b,a):this.SX(b,a)):this.uf(!0,!1,0,!0,a))},maa:function(a){a.preventDefault();a.stopPropagation();this.uf(!1,!0,0,!0,a);tm(this.j()).focus();this.Cq(!1)},naa:function(a){a.preventDefault();
a.stopPropagation();this.lj()?this.uf(!1,!1,0,!0,a):this.uf(!0,!1,0,!0,a);tm(this.j()).focus();this.Cq(!1)},oaa:function(a){var b=this.Yl();null!=b&&0!=b?this.Kk(0,!0,!1,null):this.lj()||(b=this.ij(),null!=b&&0!=b&&this.yh(0,!0,!0,null,a))},paa:function(a){var b=this.ij();null!=b?this.Ng(b,!this.Fs(b),null,a,!0):this.lj()||(b=this.Yl(),null!=b&&(this.fs(),this.Lk(b,!this.kw(b),null,a,!0)))},TI:function(a){var b=km(this.j(),$(a));if(null!=b&&null!=this.$f&&this.$f!=b){var c=this.$f,d=this.Gs();if(b<
c){var e;for(e=0;e<d.length;e++)(d[e]<b||d[e]>c)&&this.Ng(d[e],!1,a,null,!0);for(e=c;e>=b;e--)this.Ng(e,!0,a,null,!0),Qm(this.j(),e)}else{for(e=0;e<d.length;e++)(d[e]>b||d[e]<c)&&this.Ng(d[e],!1,a,null,!0);for(e=c;e<=b;e++)this.Ng(e,!0,a,null,!0),Rm(this.j(),e)}}},XI:function(){this.yfa(this.wg.F3,this.wg.E3,fd.WARNING)},Haa:function(a){var b=$m(this.j()),c=Im(this.j());Jn(this.j())?(b&&("rtl"===this.$b()?b.css(Kn,"-"+a+jn):b.css(Ln,"-"+a+jn)),c&&("rtl"===this.$b()?c.css(Kn,"-"+a+jn):c.css(Ln,"-"+
a+jn))):((b=Mn(this.j()))&&("rtl"===this.$b()?b.css(Kn,"-"+a+jn):b.css(Ln,"-"+a+jn)),(b=Nn(this.j()))&&("rtl"===this.$b()?b.css(Kn,"-"+a+jn):b.css(Ln,"-"+a+jn)))},ci:function(a,b,c){this.rR(a);a=this.cb()[a];var d=null==a.sortProperty?a.field:a.sortProperty;this.Bba(d,b,c);this.pY=a;this.YB(d,b)},lj:function(){return this.FV()?null!==this.hj():!1},IU:function(a){if(null!=this.PT())return!0;var b=null;if(null!=a)b=this.En(a,"cell");else{var c=this.cb().length;for(a=0;a<c&&(b=this.En(a,"cell"),null==
b);a++);}return null!=b?!0:!1},Xaa:function(){var a=On(this.j());if(a.css(Pn)!=Qn){var b=a.outerHeight(),c=pm(this.j()),d=parseInt(c.css(Rn),10),e=parseInt(c.css(Sn),10);c.css(Sn,e-d-b+jn);c.removeClass(Tn);a.removeClass(Tn);a.css(Un,"");a.css(Pn,Qn)}},nB:function(){var a=Vn(this.j());null!=a&&a.remove()},Yaa:function(){Wn(this.j()).css(Pn,Qn)},aq:function(a,b){if(this.cb()[a].sortable==this.tp){var c=sm(this.j(),a),d=c.data("sorted");!b||null!=d&&d!=this.Re.gn?b||null!=d&&d!=this.Re.Jl||(c=c.find("."+
hm),c.addClass(Xn),c.removeClass(Yn),c.removeClass(Dn)):(c=c.find("."+gm),c.addClass(Xn),c.removeClass(Yn),c.removeClass(Dn))}},lJ:function(){var a=this,b=this.Va();null!=b&&(b instanceof Sf&&!(b instanceof Z)||b instanceof Z&&this.pf())?(Zn(this.j())[0].scrollTop=0,this.tf(function(){var b=a.vw(0,{fetchType:"init"});a=null;return b})):null==b&&this.tf(function(){return Promise.resolve()})},vw:function(a,b){b=b||{};b[this.Lc]=a;!b[this.TO]&&this.pf()&&(b[this.TO]=this.options.scrollPolicyOptions.fetchSize);
b.silent=!0;var c="init"==b.fetchType?!0:!1,d=this.Va(),e=this;return new Promise(function(a,h){null!=d?(e.MX(),d.fetch(b).then(function(b){if(null!=b&&null!=b[e.Ri]){if(null!=d.sortCriteria){var h=d.sortCriteria.key,m=d.sortCriteria.direction;null!=h&&null!=m&&e.YB(h,m==e.Re.Jl)}h=0;d instanceof Z&&(h=d.getStartItemIndex());var m=[],n,p=b[e.Ri].length;for(n=0;n<p;n++)m[n]=n+h+b[e.Lc];e.RW({data:b[e.Ri],keys:b[e.Lr],indexes:m},b[e.Lc],c,c)}e.gk();e=null;a(null)},function(a){e.gk();e=null;h(a)})):
a(null)})},Bba:function(a,b,c){var d=this.Va();if(!d)return null;this.kY();var e={};e[this.Kl]=a;e.direction=b?this.Re.Jl:this.Re.gn;this._trigger("sort",c,{header:e[this.Kl],direction:e.direction});d.sort(e)},Dba:function(){if(null!=this.xn){var a=this.gT();if(this.xn.length!=a.length)return!0;var b,c,d=a.length;for(b=0;b<d;b++)for(c in a[b])if(a[b].hasOwnProperty(c)&&a[b][c]!=this.xn[b][c])return!0;return!1}return!0},nf:function(a){var b=this.Eg(),c,d=b.length;for(c=0;c<d;c++)if(b[c]==a)return!0;
return!1},pf:function(){return this.options.scrollPolicy==this.F4.m4?!0:!1},tJ:function(a){return this.vV(a,/^INPUT|TEXTAREA/)},Lba:function(a){return this.vV(a,/SELECT|OPTION|BUTTON|^A\b/)},Mba:function(a){return 0<a.closest("[draggable\x3d'true']").length},vV:function(a,b){for(var c,d=tm(this.j());null!=a&&a[0]!=d[0]&&"TD"!=(c=a.prop("nodeName"))&&"TH"!=c;)if(3==a[0].nodeType)a=a[0].parentNode;else{var e=a.attr($n);if(c.match(b)&&-1!=e)return!0;a=a.parentNode}return!1},FV:function(){return this.options.editMode==
this.Cz.WF?!0:!1},GV:function(){var a,b,c=this.cb().length;for(a=0;a<c;a++)if(b=this.En(a,"footer"),null!=b)return!1;return!0},BB:function(){var a=this.cb(),b,c=a.length;for(b=0;b<c;b++)if(null!=a[b].headerText||null!=a[b].headerStyle||null!=a[b].sortable&&a[b].sortable!=this.OP||null!=a[b].sortProperty||null!=a[b].headerRenderer)return!1;return!0},Oba:function(){return!0==this.lea},gla:function(){return this.NK},Pba:function(a,b){var c=this.ZQ,d=!1;"contextMenu"==a&&b=="#"+ao(this.j())+"_contextmenu"?
d=!1:"selection"==a||"currentRow"==a||oa(b,c[a])||(d=!0);this.ZQ=$.extend(!0,{},this.options);return d},HV:function(){var a=this.cb(),b,c=a.length;for(b=0;b<c;b++)if(null!=a[b].sortable&&a[b].sortable!=this.OP)return!0;return!1},DB:function(){if(void 0==this.Rs){var a=navigator.userAgent.toLowerCase();-1!=a.indexOf("mobile")||-1!=a.indexOf("android")?this.Rs=!0:this.Rs=!1}return this.Rs},RW:function(a,b,c,d){if(this.Dba()||!this.Oba()&&!this.BB())if(this.N6(),this.$W(),null!=this.pY){var e,f,h=!1,
k=this.cb();if(null!=k){var l=k.length;for(e=0;e<l;e++)if(f=k[e],oa(f,this.pY)){h=!0;break}h||this.Va().sort(null)}}this.bx();this.ZW(a,b,c,d)},YB:function(a,b){var c=this.cb(),d,e,f=null,h=c.length;for(d=0;d<h;d++)if(e=c[d],e=null==e.sortProperty?e.field:e.sortProperty,a==e){f=d;break}null!=f&&(this.rR(f),c=sm(this.j(),f),d=c.data("sorted"),b&&d!=this.Re.Jl?(c.data("sorted",this.Re.Jl),d=c.find("."+gm),d.addClass(Yn),d.removeClass(Xn),d=c.find("."+bo),d.removeClass(Xn),d=c.find("."+yo),d.addClass(Xn),
this.aq(f,!b)):b||d==this.Re.gn||(c.data("sorted",this.Re.gn),f=c.find("."+hm),f.addClass(Yn),f.removeClass(Xn),d=c.find("."+yo),d.removeClass(Xn),d=c.find("."+bo),d.addClass(Xn)))},ZW:function(a,b,c,d){var e=um(this.j());if(null!=e){a=this.R9(a,b);var f;if(0==b)En(this.j());else if(f=e.children(),null!=f&&0<f.length)for(f=f.length-1;f>=b;f--)Fn(this.j(),f);this.j().ek=null;this.nB();f=e.children();if(0!=a.length||null!=f&&0!=f.length){var h=$(document.createDocumentFragment()),k,l,m,n=a.length;for(f=
0;f<n;f++)k=a[f].row,l=a[f].$g,null!=k&&(m=An(this.j(),l,k[this.Kl]),Bn(this.j(),m,!0),Cn(this.j(),l,m,k,h),this.$B(l,k,m,h,b,!0));e.append(h);this.IU()&&(Bm(this.j(),null,null,c,d),w.Components.me(e[0]))}else this.EK()}},$B:function(a,b,c,d,e,f){var h=this.PT();this.cb();var k=um(this.j());(isNaN(a)||0>a)&&w.l.error("Error: Invalid rowIdx value: "+a);var l=this.j().Vq(b[this.Kl]);if(null==c)if(c=cm(this.j(),a))c.empty(),f=!0,zo(this.j(),a,b[this.Kl],l,c,f);else return;this.nB();f=(f=this.gw())||
{};f={rowContext:w.Qe.Tt(this,c[0],{row:b,isCurrentRow:f.rowIndex==a}),row:b[this.Ri]};if(h){h=h(f);null!=h?c.append(h):(null==d?c=$(k.children()[a]):(e=null==e?0:e,c=$(d.children()[a-e])),this.j().ek=null,Ao(this.j(),b,c),Bn(this.j(),c,!1));zo(this.j(),a,b[this.Kl],l,c,!1);e=c.children(tn);k=e.length;for(d=1;d<k;d++)h=$(e[d]),Bo(this.j(),a,b[this.Kl],l,d-1,h),Co(this.j(),d-1,h,!1);if(null!=this.jk)for(d=0;d<this.jk.length-1;d++)this.jk[d]>d&&(a=$(e[this.jk[d]+1]),b=$(e[d+1]),a[0].parentNode.insertBefore(a[0],
b[0]),e=c.children(tn))}else w.Qe.Nja(this,a,b,f)},bx:function(){var a=this.cb(),b=Im(this.j());if(!b){if(this.GV())return;b=Do(this.j());Eo(this.j(),b)}b=Nn(this.j());b.empty();if(a&&0<a.length){Fo(this.j(),b);for(var c,d,e=a.length,a=0;a<e;a++){c=this.En(a,"footer");this.j();d=$(document.createElement(tn));Go(this.j(),a,d);var f=this.j(),h=a,k=d,f=Nn(f),l=$(f).children("."+nm);0==h?(h=f.children("."+Ho),null!=h&&0<h.length?$(h[0]).after(k):f.prepend(k)):f.length>=h?$(l.get(h-1)).after(k):f.append(k);
c&&(c=c({footerContext:w.Qe.Tt(this,d[0],{}),columnIndex:a}),null!=c?(d.empty(),d.append(c)):(d=$(b.children(":not(."+Ho+")")[a]),Go(this.j(),a,d)))}}},$W:function(){var a=this,b=this.cb(),c=$m(this.j());if(!c){if(this.BB())return;c=Io(this.j());Jo(this.j(),c)}c=Mn(this.j());this.BC(c);c.empty();if(b&&0<b.length){var d=Ko(this.j());c.append(d);for(var e,f,h,k,l=b.length,d=0;d<l;d++)e=b[d],f=this.En(d,"header"),h=Lo(this.j(),d),f&&(k=w.Qe.Tt(this,h[0],{}),k={headerContext:k,columnIndex:d,data:e.headerText},
"enabled"==e.sortable?k.columnHeaderSortableIconRenderer=function(b,c){w.Qe.zZ(a,this,c)}:k.columnHeaderDefaultRenderer=function(b,c){w.Qe.xZ(a,this,c)},e=f(k),null!=e?(h.empty(),h.append(e)):(h=$(c.children(":not(."+Mo+")")[d]),No(this.j(),d,h),Oo(this.j(),d,h,!1))),Po(this.j(),d,this.LA());this.lea=!0}},Mda:function(){var a=Wn(this.j());null!=a&&a.remove();Qo(this.j())},Pda:function(){var a=$.event.special;a.ojtablebeforecurrentrow={handle:function(a,c){return a.handleObj.handler.apply(this,[a,
c])}};a.ojtablesort={handle:function(a,c){return a.handleObj.handler.apply(this,[a,c])}}},wq:function(){var a=this.Va();if(null!=a){this.Pk();this.Oa=[];this.Oa.push({eventType:R.REQUEST,eventHandler:this.C$.bind(this)});this.Oa.push({eventType:R.SYNC,eventHandler:this.EI.bind(this)});this.Oa.push({eventType:R.SORT,eventHandler:this.HI.bind(this)});this.Oa.push({eventType:R.ADD,eventHandler:this.FI.bind(this)});this.Oa.push({eventType:R.REMOVE,eventHandler:this.GI.bind(this)});this.Oa.push({eventType:R.CHANGE,
eventHandler:this.E$.bind(this)});this.Oa.push({eventType:R.REFRESH,eventHandler:this.hB.bind(this)});this.Oa.push({eventType:R.RESET,eventHandler:this.Mn.bind(this)});this.Oa.push({eventType:R.ERROR,eventHandler:this.B$.bind(this)});var b,c,d=this.Oa.length;for(b=0;b<d;b++)(c=a.on(this.Oa[b].eventType,this.Oa[b].eventHandler))&&(this.Oa[b].eventHandler=c)}},Qda:function(){null!=Zn(this.j())&&Zn(this.j()).scroll(function(a){this.Haa(Ro(this.j(),a.target))}.bind(this))},eX:function(){var a=this;this.zS=
function(b){null!=b&&b.maxCountLimit&&a.XI()};this.yH=new So(Zn(this.j()),this.Va(),{fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,success:this.zS})},wj:function(){var a=pm(this.j());if(!this.ki){var b=this;this.ki=function(){var a=pm(b.j()).outerHeight(),d=pm(b.j()).outerWidth();Bm(b.j(),d,a)}}this.yB||(w.q.Ch(a[0],this.ki,50),this.yB=!0)},cC:function(a){var b=this.Eg(),c,d=b.length;for(c=0;c<d;c++)b[c]==a&&b.splice(c,1)},CX:function(a){var b=
"rtl"===this.$b(),c=um(this.j()),d=sm(this.j(),a);if(d){a=To(this.j());var d=d.get(0).getBoundingClientRect(),e=c.get(0).getBoundingClientRect(),f=!1;b?(d.left<e.left+a&&(b=e.left-d.left+a,Gm(this.j())||(b*=-1),c.scrollLeft(c.scrollLeft()+b),f=!0),d.right>e.right&&!f&&(b=d.right-e.right,Gm(this.j())||(b*=-1),c.scrollLeft(c.scrollLeft()-b))):(d.left<e.left&&(b=e.left-d.left,c.scrollLeft(c.scrollLeft()-b),f=!0),d.right>e.right-a&&!f&&(b=d.right-e.right+a,c.scrollLeft(c.scrollLeft()+b)))}},rK:function(a){var b=
cm(this.j(),a);a=this.j();a=Zn(a);a=0<a.get(0).clientHeight?a.get(0).offsetHeight-a.get(0).clientHeight:0;var b=b.get(0).getBoundingClientRect(),c=Zn(this.j()),d=c.get(0).getBoundingClientRect(),e=!1;b.bottom>d.bottom-a&&(a=b.bottom-d.bottom+a,c.scrollTop(c.scrollTop()+a),e=!0);b.top<d.top&&!e&&(a=d.top-b.top,c.scrollTop(c.scrollTop()-a))},zj:function(a,b,c){var d=this.Tl,e,f;e=!0;if(null==a){if(null!=d){try{e=this._trigger("beforeCurrentRow",b,{currentRow:null,previousCurrentRow:this.Tl})}catch(h){a=
this.wg.gP;var k=w.ba.Db(this.wg.fP,{error:h.toString()});w.l.info(a+"\n"+k);return!1}if(!e)return!1;this.Tl=null;e=d.rowIndex;e=this.mw(e);f=this.Es(e);e=this.uf(!1,!1,0,!0,b);if(!1===e){this.Tl=d;var k=document.activeElement,l=lm(this.j(),k),m=this;this.tf(function(){var a=f,b=l;setTimeout(function(){m.jC(a,b)},0)});return!1}this.option("currentRow",null,{_context:{kc:!0,originalEvent:b,Ia:!0}});null==b&&this.yh(-1,!0,!1,null,b);e=cm(this.j(),f);null!=e&&e.removeClass(Uo)}return!0}var n=this.Va(),
p=a.rowIndex,q=a.rowKey;null==q&&(q=this.mw(p));null==p&&(p=this.Qp(q));k=this.Es(q);a={rowIndex:p,rowKey:q};if(-1!=k&&(!n||0==n.totalSize()||-1>k||null===k||null===q)){a=this.wg.D3;k=w.ba.Db(this.wg.C3,{rowIdx:k});if(c)throw Error(a+"\n"+k);w.l.info(a+"\n"+k);return!1}c=this.ij();if(n=!oa(this.Tl,a)){try{e=this._trigger("beforeCurrentRow",b,{currentRow:{rowIndex:p,rowKey:q},previousCurrentRow:this.Tl})}catch(r){return a=this.wg.gP,k=w.ba.Db(this.wg.fP,{error:r.toString()}),w.l.info(a+"\n"+k),!1}if(!e)return!1;
this.Tl={rowIndex:p,rowKey:q};null!=d&&(e=d.rowIndex,e=this.mw(e),f=this.Es(e));e=this.uf(!1,!1,0,!0,b);if(!1===e)return this.Tl=d,k=document.activeElement,l=lm(this.j(),k),m=this,this.tf(function(){var a=f,b=l;setTimeout(function(){m.jC(a,b)},0)}),!1;this.option("currentRow",this.Tl,{_context:{kc:!0,originalEvent:b,Ia:!0}});e=cm(this.j(),k);null!=e&&e.addClass(Uo);null!=d&&(e=cm(this.j(),f),null!=e&&e.removeClass(Uo))}(n||c!=a.rowIndex)&&null==b&&this.yh(k,!0,!1,null,b);return!0},MX:function(){this.kY();
this.nB();this.bS=!0},jC:function(a,b){var c=!1;Vo(this.j(),a,b).find("*").each(function(){!c&&$(this).is(":focusable")&&(this.focus(),c=$(this).is(":focus"))});return c},Lea:function(a,b,c){if(!this.jC(a,b)&&(b=dm(this.j(),a))){var d,e=b.length;for(b=0;b<e&&(d=b,c||(d=e-b-1),!this.jC(a,d));b++);}},xK:function(a){this.AA=this.vk(a);this.C8=a},Kk:function(a,b,c,d){var e=null;null!=d&&(e=d.currentTarget);if(b){var f=this.Yl();null!=f&&f!=a&&this.Kk(f,!1,!1,d);this.qR(!0);c&&this.fs();this.CX(a);this.uQ=
a}this.NX(a,{qi:b},e)},Lk:function(a,b,c,d,e){if(this.LA()==this.$j.Iz||this.LA()==this.$j.Qr)(isNaN(a)||0>a)&&w.l.error("Error: Invalid column selection value: "+a),this.LA()==this.$j.Iz&&b&&this.Iv(),this.NX(a,{selected:b},c,d),this.Wea(a,b),a=Wo(this.j(),a),$(a.children("."+Xo)[0]).prop("checked",b),e&&(b=this.RT(),this.option("selection",b,{_context:{kc:!0,Ia:!0}}))},NX:function(a,b){var c=sm(this.j(),a);if(c){var d=b.qi,e=b.selected;null!=e&&c.hasClass(Dn)!=e&&(e?c.addClass(Dn):c.removeClass(Dn));
null!=d&&(d?(c.addClass(Gn),this.lY(a)):(c.removeClass(Gn),this.aq(a,!0),this.aq(a,!1)));this.pga(a)}},Wea:function(a,b){this.Sn||(this.Sn=[]);var c,d=this.Sn.length;for(c=0;c<d;c++)if(this.Sn[c]==a){this.Sn.splice(c,1);break}b&&this.Sn.push(a)},Yea:function(a,b){this.Tn||(this.Tn=[]);var c,d=this.Tn.length;for(c=0;c<d;c++)if(this.Tn[c]==a){this.Tn.splice(c,1);break}b&&this.Tn.push(a)},SX:function(a,b){var c=om(this.j()),c=null!=c?c.length:0,d=this.hj();0<=d&&d<c-1?(this.uf(!1,!1,a,!0,b),this.zj({rowIndex:d+
1},b,!1),this.uf(!0,!1,a,!0,b)):d===c-1&&(this.uf(!1,!1,a,!0,b),tm(this.j()).focus(),this.Cq(!1))},VX:function(a,b){var c=this.hj();1<=c?(this.uf(!1,!1,a,!1,b),this.zj({rowIndex:c-1},b,!1),this.uf(!0,!1,a,!1,b)):0===c&&(this.uf(!1,!1,a,!1,b),tm(this.j()).focus(),this.Cq(!1))},yh:function(a,b,c,d,e){if(-1==a){var f=this.ij();null!=f&&this.yh(f,!1,c,null,null);return c&&(e=this.zj(null,e,!1),!e)?!1:!0}var h=cm(this.j(),a);if(!h)return!1;if(b){f=this.ij();null!=f&&f!=a&&this.yh(f,!1,c,d,null);if(c&&
(c=this.vk(a),e=this.zj({rowKey:c},e,!1),!e))return!1;h.addClass(Gn);this.rK(a);this.GC(a,{qi:!0,hover:!1});this.pR();this.Iv();this.Cq(!0)}else h.removeClass(Gn);this.GC(a,{qi:b});return!0},Ng:function(a,b,c,d,e){if(this.cm()==this.$j.Iz||this.cm()==this.$j.Qr)if((isNaN(a)||0>a)&&w.l.error("Error: Invalid row selection value: "+a),this.cm()==this.$j.Iz&&b&&this.fs(),c=cm(this.j(),a),null!=c){d=!1;if(c.hasClass(Dn)!=b){b?c.addClass(Dn):c.removeClass(Dn);d=!0;var f=this.options.dnd.drag;f&&("rows"===
f||f.rows)&&c.prop("draggable",b)}d&&(b?this.GC(a,{hover:!1,qi:!1,selected:!0}):this.GC(a,{selected:!1}));this.Yea(a,b);a=Yo(this.j(),c);$(a.children("."+Zo)[0]).prop("checked",b);e&&(b=this.RT(),this.option("selection",b,{_context:{kc:!0,Ia:!0}}))}},mt:function(a){if(null==a)this.fs(),this.Iv();else{var b,c,d,e,f,h,k,l=a.length;for(b=0;b<l;b++){d=a[b];if(null==d.startKey&&null==d[this.Lc]||null==d.endKey&&null==d[this.Wc])return w.l.error("Error: Invalid range object in selection. Both start and end objects must be specified"),
null;e=h=c=f=null;k=!1;null!=d.startKey&&null!=d.startKey[this.Xc]&&(f=this.Qp(d.startKey[this.Xc]),null!=d[this.Lc]&&null!=d[this.Lc][this.Xc]&&f!=d[this.Lc][this.Xc]&&(k=!0));null!=d.endKey&&null!=d.endKey[this.Xc]&&(c=this.Qp(d.endKey[this.Xc]),null!=d[this.Wc]&&null!=d[this.Wc][this.Xc]&&c!=d[this.Wc][this.Xc]&&(k=!0));null!=d.startKey&&null!=d.startKey[this.Vc]&&(h=this.eT(d.startKey[this.Vc]),null!=d[this.Lc]&&null!=d[this.Lc][this.Vc]&&h!=d[this.Lc][this.Vc]&&(k=!0));null!=d.endKey&&null!=
d.endKey[this.Vc]&&(e=this.eT(d.endKey[this.Vc]),null!=d[this.Wc]&&null!=d[this.Wc][this.Vc]&&e!=d[this.Wc][this.Vc]&&(k=!0));null==f&&null!=d[this.Lc]&&(f=d[this.Lc][this.Xc]);null==c&&null!=d[this.Wc]&&(c=d[this.Wc][this.Xc]);null==h&&null!=d[this.Lc]&&(h=d[this.Lc][this.Vc]);null==e&&null!=d[this.Wc]&&(e=d[this.Wc][this.Vc]);if(null!=f&&null!=c&&null!=h&&null!=e)return w.l.error("Error: Invalid range object in selection - Can only support row or column selection. Not both"),null;if(null!=f&&0<=
f&&null!=c&&0<=c)for(e=this.mw(f),c=this.mw(c),e=this.Es(e),d=this.Es(c),c=e;c<=d;c++)try{this.Ng(c,!0,null,null,k)}catch(m){w.l.error("Error: "+m)}else if(null!=h&&null!=e)for(c=h;c<=e;c++)try{this.Lk(c,!0,null,null,k)}catch(n){w.l.error("Error: "+n)}else return w.l.error("Error: Invalid range object in selection - \n start row: "+f+"\nend row: "+c+"\nstart column: "+h+"\nend column: "+e),null}}},uf:function(a,b,c,d,e){if(this.FV()){var f=this.gw();if(null!=f){var h=f.rowIndex,k;try{if(a&&!this.lj()){var l=
cm(this.j(),h),m=this.vk(h),n=w.Qe.Tt(this,l[0],{row:{key:m,index:h},isCurrentRow:!0});k=this._trigger("beforeRowEdit",e,{rowContext:n})}else if(!a&&this.lj())l=cm(this.j(),this.hj()),m=this.vk(this.hj()),n=w.Qe.Tt(this,l[0],{row:{key:m,index:this.hj()},isCurrentRow:!0}),k=this._trigger("beforeRowEditEnd",e,{rowContext:n,cancelEdit:b});else return}catch(p){return!1}if(!k)return!1;var q=this.hj(),r=this;a?(this.xK(h),this.refreshRow(h).then(function(){r.tf(function(){r.Lea(h,c,d)})})):this.xK(null);
null!=q&&this.refreshRow(q).then(function(){r.tf(function(){var a=cm(this.j(),q);null!=a&&a.removeClass(Cm)})})}}},Cq:function(a){this.NK=a},yfa:function(a,b,c){var d=this.j(),d=On(d);d.empty();d.append(w.La.oZ(document,a,b,c,null));a=On(this.j());if(a.css(Pn)==Qn){a.css(Pn,$o);var d=parseInt(a.css(ap),10),e=parseInt(a.css(bp),10);b=pm(this.j());c==fd.WARNING&&(b.addClass(Tn),a.addClass(Tn));c=b.width();a.css(hn,c-d-e+jn);c=a.outerHeight();var d=parseInt(b.css(Rn),10),e=parseInt(b.css(cp),10),f=parseInt(b.css(Sn),
10),f=f+d+c;b.css(Sn,f+jn);a.css(Un,-1*(f+d)+jn);a.css(Ln,-1*e+jn)}},EK:function(){if(null==Vn(this.j())){var a=this.j(),b=this.cb().length,c=um(a),d=$(document.createElement(qn));d.addClass(dp);var e=$(document.createElement(tn));e.addClass(Ho);e.attr($n,"-1");d.prepend(e);e=$(document.createElement(tn));e.attr(un,b||1);e.addClass(zm);b=null;b=null!=a.options.emptyText?a.options.emptyText:a.u.r(a.u.ma.x4);e.text(b);d.append(e);c.append(d)}},kY:function(){Wn(this.j()).css(Pn,ep);fp(this.j())},lY:function(a){if(this.cb()[a].sortable==
this.tp&&(a=sm(this.j(),a))&&null==a.data("sorted")){var b=a.find("."+gm);b.addClass(Yn);b.removeClass(Xn);a.find("."+bo).removeClass(Xn);a.find("."+yo).addClass(Xn)}},BC:function(a){var b=this;a.find("*").each(function(){b.xp(this)});b=null},Pk:function(){var a=this.Va();if(null!=this.Oa&&null!=a){var b,c=this.Oa.length;for(b=0;b<c;b++)a.off(this.Oa[b].eventType,this.Oa[b].eventHandler)}},Qk:function(){var a=pm(this.j());w.q.Hi(a[0],this.ki);this.yB=!1},pga:function(a){var b=this.bI(a).selected,
c=this.Gs(),d=om(this.j());if(null!=d&&0<d.length)for(var e,f,h,k,l=d.length,d=0;d<l;d++)if(f=Vo(this.j(),d,a),b)$(f).addClass(Dn);else{h=!1;k=c.length;for(e=0;e<k;e++)if(d==c[e]){h=!0;break}h||$(f).removeClass(Dn)}},GC:function(a,b){var c=dm(this.j(),a),d=b.qi,e=b.selected,f=b.hover;if(c){if(null!=f){var h,k=c.length;for(h=0;h<k;h++)f?$(c[h]).addClass(Jm):$(c[h]).removeClass(Jm)}if(null!=d)for(k=c.length,h=0;h<k;h++)d?$(c[h]).addClass(Gn):$(c[h]).removeClass(Gn);if(null!=e)for(k=c.length,h=0;h<k;h++)e?
$(c[h]).addClass(Dn):$(c[h]).removeClass(Dn)}},Pea:function(a){this.KS=a?a.bind(this):void 0},tf:function(a){var b=this;this.dt||(this.rx=0,this.dt=Promise.resolve());this.rx++;return this.dt=this.dt.then(function(){if(!b.Kv)return a.bind(b)()}).then(function(a){b.rx--;0!=b.rx||b.Kv||(b.dt=void 0,b.KS&&b.KS(),b._trigger("ready"),b=null);return a},function(a){b.rx--;0==b.rx&&(b.dt=void 0,w.l.error(a),b=null);return Promise.reject(a)})}});
w.Components.Rj({ojTable:{display:w.Components.ad(function(){return(w.Ob.Tc("oj-table-option-defaults")||{}).display})}});function In(a){this.u=a;this.options=a.options;this.element=a.element;this.Kc=a.Kc;this.Init()}t("TableDomUtils",In,w);H(In,x,"oj.TableDomUtils");In.prototype.Init=function(){In.o.Init.call(this)};A("TableDomUtils.prototype.Init",{Init:In.prototype.Init});function yn(a){a.ek=null;a.li=null}
function qm(a,b){var c=null,d=a.u.DB()?a.u.cm()==a.u.$j.Qr:!1;if(null!=a.options.contextMenu||null!=tm(a).attr("contextmenu")){if(d=xn(a),c=$(d),null!=c&&0<c.length){var e=c.find("[data-oj-command]");if(null!=e&&0<e.length){var f;e.each(function(){0===$(this).children(gp).length&&(f=$(this).attr("data-oj-command").split("-"),$(this).replaceWith(hp(a,f[f.length-1])))});a.ZV=c;a.u.FR=d;c.data("oj-ojMenu")&&c.ojMenu("refresh");c.on("ojselect",b)}}}else if(a.u.HV()||d)c=$(document.createElement(ip)),
c.css(Pn,Qn),c.attr(jp,ao(a)+"_contextmenu"),pm(a).append(c),a.u.HV()&&(e=hp(a,"sort"),c.append(e)),d&&(d=hp(a,"enableNonContiguousSelection"),c.append(d)),c.ojMenu(),a.ZV=c,a.u.FR="#"+c.attr(jp),c.on("ojselect",b),a.u._setOption("contextMenu","#"+c.attr(jp))}
function hp(a,b){return"sort"===b?$(kp(a,b)).append($("\x3cul\x3e\x3c/ul\x3e").append($(kp(a,"sortAsc"))).append($(kp(a,"sortDsc")))):"sortAsc"===b?$(kp(a,"sortAsc")):"sortDsc"===b?$(kp(a,"sortDsc")):"enableNonContiguousSelection"==b||"disableNonContiguousSelection"==b?$(kp(a,b)):null}function kp(a,b){var c=$(document.createElement("li"));c.attr("data-oj-command","oj-table-"+b);c.append(lp(a,b));return c}
function lp(a,b){var c=$(document.createElement(gp));c.attr(mp,"#");var d=null;"sort"==b?d=a.u.r("labelSort"):"sortAsc"==b?d=a.u.r("labelSortAsc"):"sortDsc"==b?d=a.u.r("labelSortDsc"):"enableNonContiguousSelection"==b?d=a.u.r("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"==b&&(d=a.u.r("labelDisableNonContiguousSelection"));c.text(d);return c}
function Em(a,b,c){tm(a);var d;a.Kc?d=$(a.Kc):(d=$(document.createElement(Km)),a.element.parent()[0].replaceChild(d[0],a.element[0]),d.prepend(a.element));a.eA=d;if(Jn(a)){d=tm(a);var e=pm(a),f=$(document.createElement(Km));f.addClass(np);e[0].replaceChild(f[0],d[0]);f.append(d);a.IG=f}b||Io(a);c||Do(a);b=tm(a);c=$(document.createElement(cn));b.append(c);a.HG=c;Qo(a);b=pm(a);c=$(document.createElement(Km));c.addClass(op);c.css(Pn,Qn);b.append(c);a.MG=c}
function zo(a,b,c,d,e,f){var h=null;f||(h=Yo(0,e));null==h&&(h=null!=c?c.toString():b.toString(),d=null==d?a.Vq(h):d,h=$(document.createElement(tn)),h.addClass(pp),h.css("padding","0"),h.css("border","0"),null!=$m(a)&&(c=a.options.accessibility,f=null,f=null!=c&&null!=c.rowHeader?c.rowHeader:a.u.cb()[0].id,c=ao(a)+":"+f+"_"+d,h.attr(qp,ao(a)+":_hdrColRowSel "+c)),c=$(document.createElement(rp)),c.attr(jp,ao(a)+":acc_sel_row_"+d),c.attr(sp,"checkbox"),c.attr($n,"-1"),d=null,d=null!=a.u.cm()?!0:!1,
d=a.options.editMode==a.u.Cz.WF?d?a.u.r(a.u.ma.BP):a.u.r(a.u.ma.zP):a.u.r(a.u.ma.CP),c.attr(tp,d),c.addClass(Zo),c.addClass(Ho),a.u.hj()==b?c.prop("checked",!0):c.prop("checked",!1),h.append(c),e.prepend(h))}function An(a,b,c){var d=$(document.createElement(qn));zo(a,b,c,null,d,!0);return d}function Do(a){var b=tm(a),c=$(document.createElement(pn)),d=$(document.createElement(qn));Fo(0,d);c.append(d);d=$m(a);null!=d?d.after(c):(a=um(a),null!=a?a.before(c):b.append(c));return c}
function Fo(a,b){var c=b.children("."+Ho);null!=c&&0<c.length?$(c[0]):(c=$(document.createElement(tn)),c.addClass(Ho),c.attr($n,"-1"),b.prepend(c))}function Io(a){var b=tm(a),c=$(document.createElement(on)),d=$(document.createElement(qn));a.KG=d;c.append(d);d=Im(a);null!=d?d.before(c):(d=um(a),null!=d?d.before(c):b.append(c));return a.JG=c}
function Ko(a){var b=$(document.createElement(up));b.addClass(Mo);b.attr(jp,ao(a)+":_hdrColRowSel");var c=null!=a.u.cm()?!0:!1;a=a.options.editMode==a.u.Cz.WF?c?a.u.r(a.u.ma.BP):a.u.r(a.u.ma.zP):a.u.r(a.u.ma.CP);b.attr(tp,a);b.css("padding","0");b.css("border","0");c=$(document.createElement(vp));c.text(a);c.addClass(Ho);b.append(c);return b}
function Lo(a,b){var c=a.u.cb()[b],d=$(document.createElement(up));Oo(a,b,d,!0);d.attr("abbr",c.headerText);d.attr(tp,c.headerText);var e=Mn(a),f=fm(a);No(a,b,d);var h=sm(a,b);h?h.replaceWith(d):0==b?(f=e.children("."+Mo),null!=f&&0<f.length?$(f[0]).after(d):e.prepend(d)):f.length>=b?$(f.get(b-1)).after(d):e.append(d);e={columnIndex:b,headerContext:{component:a.u,parentElement:d}};"enabled"==c.sortable?(d.attr("data-oj-sortable","enabled"),w.Qe.zZ(a.u,e,null)):w.Qe.xZ(a.u,e,null);return d}
function Po(a,b,c){if(c==wp||c==xp){c=sm(a,b);var d=Wo(a,b);if(null==d){d=$(document.createElement(Km));d.addClass(yp);d.addClass(Ho);var e=$(document.createElement(rp));e.attr(jp,ao(a)+":acc_sel_col"+b);e.attr(sp,"checkbox");e.attr($n,"-1");a=a.u.r(a.u.ma.j4);e.attr(tp,a);e.addClass(Xo);d.append(e);c.prepend(d)}}}
function Qo(a){var b=pm(a),c=$(document.createElement(Km));c.addClass(ym);c.css(Pn,Qn);var d=$(document.createElement(Km));d.addClass(zp);d.text(a.u.r(a.u.ma.t4));c.append(d);b.append(c);a.NG=c}function Wm(a,b,c){Xm(a);var d=Mn(a);b=sm(a,b);if(null!=b)c?b.addClass(Ap):b.addClass(Bp);else if(a=a.u.cb(),null==a||0==a.length)c?d.addClass(Ap):d.addClass(Bp)}function xn(a){return null==a.options.contextMenu?"#"+tm(a).attr("contextmenu"):a.options.contextMenu}
function lm(a,b){var c=rm(0,b,jm);if(null!=c)return c.parent().children("."+jm).index(c);c=rm(0,b,mm);if(null!=c)return c.parent().children("."+mm).index(c);c=rm(0,b,nm);return null!=c?c.parent().children("."+nm).index(c):null}function km(a,b){var c=rm(0,b,nn);return null!=c?c.index():null}function rm(a,b,c){if(null==b)return null;b=$(b);if(b.hasClass(c))return b;a=b.parents("."+c);return 0!=a.length?a.eq(0):null}
function To(a){a=Zn(a);return 0<a.get(0).clientWidth?a.get(0).offsetWidth-a.get(0).clientWidth:0}function Zn(a){return Jn(a)?Cp(a):um(a)}function Ro(a,b){b=$(b);var c=b[0].scrollLeft;"rtl"===a.u.$b()&&(c=Math.abs(c),Dp(a)&&(c=b[0].scrollWidth-b[0].clientWidth-c));return c}function tm(a){return $(a.element)}function um(a){if(!a.HG){var b=tm(a),c=null;b&&(c=b.children("."+wm))&&0<c.length&&(a.HG=$(c.get(0)))}return a.HG}function Vo(a,b,c,d){return(a=dm(a,b,d))?a.length>c?$(a[c]):null:null}
function Yo(a,b){if(null!=b){var c=b.children("."+pp);if(null!=c&&0<c.length)return $(c[0])}return null}function dm(a,b,c){c||(c=cm(a,b));if(!c)return null;a=c.children("."+jm);return null!=a&&0<a.length?a:null}function cm(a,b){var c=om(a);return c&&null!=b?c.length>b?$(c[b]):null:null}function om(a){if(!a.ek){var b=um(a);null!=b&&(b=b.children("."+nn),null!=b&&0<b.length&&(a.ek=b))}return a.ek}function wn(a){a=pm(a).children("."+Lm);return null!=a&&0<a.length?a=$(a[0]):null}
function vn(a){a=pm(a).children("."+Om);return null!=a&&0<a.length?a=$(a[0]):null}function pm(a){a.eA||(Jn(a)?a.eA=$(a.element.get(0).parentNode.parentNode):a.eA=$(a.element.get(0).parentNode));return a.eA}function Im(a){a=tm(a);var b=null;return a&&(b=a.children("."+xm))&&0<b.length?$(b.get(0)):null}function Ep(a,b){var c=im(a);return null!=c&&c.length>b?$(c[b]):null}function im(a){a=Nn(a);a=$(a).children("."+nm);return null!=a&&0<a.length?a:null}
function Nn(a){if(!a.YQ){var b=Im(a);if(!b)return null;a.YQ=$(b.children("."+Fp).get(0))}return a.YQ}function $m(a){if(!a.JG){var b=tm(a),c=null;b&&(c=b.children("."+vm))&&0<c.length&&(a.JG=$(c.get(0)))}return a.JG}function sm(a,b){var c=fm(a);return c?c.length>b?$(c[b]):null:null}function Wo(a,b){var c=sm(a,b);return null!=c&&(c=c.children("."+yp),null!=c&&0<c.length)?$(c[0]):null}function fm(a){a=Mn(a);return null!=a&&(a=a.children("."+mm),null!=a&&0<a.length)?a:null}
function Mn(a){if(!a.KG){var b=$m(a);if(!b)return null;a.KG=$(b.children("."+Gp).get(0))}return a.KG}function Cp(a){if(!a.IG){var b=pm(a);b&&(b=b.children("."+np))&&0<b.length&&(a.IG=$(b.get(0)))}return a.IG}function ao(a){a.zY||(a.zY=tm(a).attr(jp));return a.zY}function On(a){if(!a.MG){var b=pm(a);b&&(b=b.children("."+op))&&0<b.length&&(a.MG=$(b.get(0)))}return a.MG}function Vn(a){return(a=um(a))&&(a=a.children("."+dp))&&0<a.length?$(a.get(0)):null}
function Wn(a){if(!a.NG){var b=pm(a);b&&(b=b.children("."+ym))&&0<b.length&&(a.NG=$(b.get(0)))}return a.NG}function Hp(a){if(!a.AY){var b=ao(a);null==b&&(b=(1E32*Math.random()).toString(36));a.AY=b}return a.AY}In.prototype.Vq=function(a){"string"!=$.type(a)&&(a=a.toString());var b=0;if(0==a.length)return b;var c,d,e=a.length;for(d=0;d<e;d++)c=a.charCodeAt(d),b=(b<<5)-b+c,b&=b;return b};
function Cn(a,b,c,d,e){Ao(0,d,c);null==e?(d=um(a),e=d.children("."+nn),0==b?d.prepend(c):e.length>=b?$(e.get(b-1)).after(c):d.append(c)):e.append(c);a.ek=null}function Jn(a){return Gm(a)&&10>Gm(a)?!0:!1}
function Ip(a){var b=pm(a),c=tm(a);a=Wn(a);var d=a.css(Pn).toString();a.css(Pn,Qn);var e=[];e[0]=0<b[0].clientHeight?c[0].clientHeight>b[0].clientHeight?1:1<b[0].clientHeight-c[0].clientHeight?-1:0:0;e[1]=0<b[0].clientWidth?c[0].clientWidth>b[0].clientWidth?1:1<b[0].clientWidth-c[0].clientWidth?-1:0:0;a.css(Pn,d);return e}
function Qm(a,b){var c=wn(a);if(null!=c){c.data("rowIdx",b);$(c.children()[0]).data("rowIdx",b);var d=um(a),e=cm(a,b)[0].getBoundingClientRect(),f=pm(a)[0].getBoundingClientRect();c.css(mn,e.top-f.top-c.height()/2);c.css(Ln,d.width()/2+jn)}}function Rm(a,b){var c=vn(a);if(null!=c){c.data("rowIdx",b);$(c.children()[0]).data("rowIdx",b);var d=um(a),e=cm(a,b)[0].getBoundingClientRect(),f=pm(a)[0].getBoundingClientRect();c.css(mn,e.top-f.top+e.height-c.height()/2);c.css(Ln,d.width()/2+jn)}}
function Ym(a,b,c,d){var e=a.u.cb(),f=sm(a,b),h=Ep(a,b),k=null,l=k=k=null,m=null,n=!1;c==e.length&&(c-=1,n=!0);null!=f&&(m=f.attr(un),k=sm(a,c),null==k||null!=m&&1!=m||(n?k.after(f):k.before(f)));null!=h&&(m=h.attr(un),k=Ep(a,c),null==k||null!=m&&1!=m||(n?k.after(h):k.before(h)));f=om(a);if(null!=f)for(e=0;e<f.length;e++)k=Vo(a,e,b,null),null!=k&&(l=Vo(a,e,c,null),m=k.attr(un),null==l||null!=m&&1!=m||(n?l.after(k):l.before(k)));m=a.options.columns;c=b<c&&!n?c-1:c;n=m.splice(b,1);m.splice(c,0,n[0]);
m=m.slice(0);a.u.option("columns",m,{_context:{kc:!0,originalEvent:d,Ia:!0}});d=a.u.xn.splice(b,1);a.u.xn.splice(c,0,d[0]);if(!a.jk)for(a.jk=[],e=0;e<m.length;e++)a.jk[e]=e;b=a.jk.splice(b,1);a.jk.splice(c,0,b[0]);a.u.tf(function(){});return a.jk}
function zn(a){var b=a.ZV;b&&0<b.length&&b.find("[data-oj-command]").each(function(){var b=$(this).children(gp);if(0<b.length){var d=$(this).attr("data-oj-command").split("-"),d=d[d.length-1],e;"sort"==d?e=a.u.r("labelSort"):"sortAsc"==d?e=a.u.r("labelSortAsc"):"sortDsc"==d&&(e=a.u.r("labelSortDsc"));b.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=e}})}
function Bm(a,b,c,d,e){a.u.Qk();var f=tm(a),h=$m(a),k=Im(a),l=Nn(a),m=Mn(a),n=pm(a),p=um(a),q=null,r=null;if(null!=Zn(a)){var s=Zn(a)[0].scrollHeight-Zn(a)[0].clientHeight,u=Zn(a)[0].scrollWidth-Zn(a)[0].clientWidth;0<s&&(q=Zn(a)[0].scrollTop);0<u&&(r=Ro(a,Zn(a)[0]))}var s=tm(a),v=$m(a),y=Mn(a),u=Im(a),z=Nn(a),B=um(a);if(null!=v&&(v.attr(Jp,""),y.attr(Jp,""),(v=y.find("."+Kp))&&0<v.length))for(var C=v.length,y=0;y<C;y++)$(v[y]).css(hn,"");null!=u&&(u.attr(Jp,""),z.attr(Jp,""));s.css(Pn,"");s.css(hn,
"");null!=B&&B.attr(Jp,"");s=a.u.cb().length;for(u=0;u<s;u++)z=sm(a,u),null!=z&&z.css(Lp,"");u=om(a);if(null!=u&&0<u.length)for(u=0;u<s;u++)z=Vo(a,0,u,null),null!=z&&z.css(Lp,"");n.addClass(Am);n.addClass(Mp);n.addClass(Np);a.options.display==Op?n.addClass(Pp):n.removeClass(Pp);s=a.options.editMode;null!=s&&s!=a.u.Cz.B4?n.addClass(Qp):n.removeClass(Qp);s=Ip(a);a.st=1===s[0]?!0:!1;a.Gq=1===s[1]?!0:!1;if(null!=p){if(a.st||a.Gq){n.addClass(Rp);a.li||(a.li={});0<b||0<c?(0<b&&a.Gq&&(a.li[hn]=b),0<c&&a.st&&
(a.li[kn]=c)):(a.li[kn]=a.st?n[0].offsetHeight:0,a.li[hn]=a.Gq?n[0].offsetWidth:0);a.tC||(a.tC=n.outerWidth()-n.innerWidth());a.xY||(a.xY=n.outerHeight()-n.innerHeight());b=0;a.st&&!a.Gq&&(n.css(dn,Sp),b=n.get(0).offsetWidth-n.get(0).clientWidth,0<a.li[hn]?f.css(hn,n.get(0).clientWidth+jn):(f.css(hn,n.get(0).scrollWidth+b+jn),s=Ip(a),1===s[1]&&f.css(hn,n.get(0).clientWidth+jn)),n.css(dn,""));c=f.width();for(var u=[],z=[],y=null,F,I,G,B=a.u.cb().length,v=0;v<B;v++)y=sm(a,v),null!=y&&(G=window.getComputedStyle(y[0]),
u[v]=parseInt(G[hn],10),C=a.u.En(v,"header"),F||null!=C?z[v]=null!=C?parseInt(G[bp],10)+parseInt(G[ap],10):F:(F=parseInt(G[bp],10)+parseInt(G[ap],10),z[v]=F),C=null,(G=y.find("."+Kp))&&0<G.length&&(C=G.get(0).clientHeight),null!=C&&(y=y.find("."+Tp),y.css(Up,C+jn)));F=[];v=om(a);if(null!=v&&0<v.length)for(v=0;v<B;v++)y=Vo(a,0,v,null),null!=y&&(a.u.En(v,"cell"),a.u.IU(v)?(y=window.getComputedStyle(y[0]),y=parseInt(y[bp],10)+parseInt(y[ap],10)):(I||(y=window.getComputedStyle(y[0]),I=parseInt(y[bp],
10)+parseInt(y[ap],10)),y=I),y=y>z[v]?u[v]-y+z[v]:u[v]+z[v]-y,F[v]=y);for(v=0;v<B;v++)y=sm(a,v),null!=y&&y.css(Lp,u[v]+jn),y=Vo(a,0,v,null),null!=y&&y.css(Lp,F[v]+jn),I=Ep(a,v),null!=I&&(y=parseInt(I.css(bp),10)+parseInt(I.css(ap),10),y=y>z[v]?u[v]-y+z[v]:u[v]+z[v]-y,I.css(Lp,y+jn));0<b&&f.css(hn,n.get(0).offsetWidth+jn);I=0;f=f.children("caption");null!=f&&0<f.length&&(I=$(f[0]).outerHeight(),f.css(Pn,ep),null!=h&&h.css(Vp,n.css(Vp).toString()));f=0;null!=h&&(h.css(Pn,$o),Jn(a)?(h.css(ln,Wp),h.css(mn,
"0px")):h.css(ln,Xp),m.css(Pn,$o),m.css(ln,Xp),f=h.outerHeight());Jn(a)&&n.css(Yp,f+I+jn);m=0;null!=k&&(Jn(a)?(k.css(ln,Wp),h.css(Un,"0px")):k.css(ln,Xp),k.css(Pn,$o),l.css(Pn,$o),l.css(ln,Xp));p.css(Pn,$o);l=0;Jn(a)||(p.css(gn,Sp),p.css(ln,Xp),a.Gq?p.css(hn,a.li[hn]-a.tC):0<b&&p.css(hn,c-a.tC+b),p.width(),null!=k&&(m=k.outerHeight(),p.css(mn,-1*m+jn)),a.st?(l=a.li[kn]-f-m-I-a.xY,0<l&&(p.css(kn,l+jn),p.css(Up,l+jn))):l=p.outerHeight(),I=To(a),a.Gq?(F=om(a),null!=F&&0<F.length?(p.css(fn,Sp),n.css(fn,
en),n.css(gn,en),null!=h&&(F=a.li[hn]-a.tC,0<F&&(0<I?h.css(hn,F-I+jn):h.css(hn,F+jn)))):(p.css(fn,en),n.css(fn,Sp),n.css(gn,en))):p.css(fn,en));Jn(a)&&(h=Cp(a),h.css(dn,Sp),a.Gq&&h.css(hn,a.li[hn]),a.st&&h.css(kn,a.li[kn]-f-m),p.css(Zp,$p),n.css(dn,en));null!=k&&(Jn(a)||k.css(mn,l+jn))}k=a.u.cb();h=k.length;for(n=0;n<h;n++)f=k[n],l=sm(a,n),null!=l&&(I=l.children("."+Tp),0<I.length&&(I=$(I[0]),(p=l.find("."+Kp))&&0<p.length&&(m=0,"enabled"==f.sortable&&(m=$(l.find("."+aq).get(0)).width()),0<I[0].clientWidth&&
p.width()+m>I[0].clientWidth&&(p.css(hn,""),f=p.width(),l=l.width()-m,f>l+1&&p.css(hn,l+jn)))));k=0>s[0];if(bq(a)&&(n=om(a),null!=n&&0<n.length)){h=n.length;for(p=0;p<h;p++)$(n[p]).hasClass(cq)||$(n[p]).addClass(cq);n=$(n[n.length-1]);k||n.removeClass(cq)}fp(a);null==q||d?d&&(Zn(a)[0].scrollTop=0,Zn(a).scroll()):(s=Zn(a)[0].scrollHeight-Zn(a)[0].clientHeight,q=q>s?s:q,a.u.pf()&&s==q&&q--,Zn(a)[0].scrollTop=q,Zn(a).scroll());null==r||e?e&&(dq(a,Zn(a)[0],0),Zn(a).scroll()):(dq(a,Zn(a)[0],r),Zn(a).scroll())}a.u.wj();
a.u.zj(a.options.currentRow,null)}function Xm(a){a=tm(a).find("."+Ap+",."+Bp);var b=0;if(a&&0<a.length)for(var c=a.length,b=0;b<c;b++)$(a[b]).removeClass(Ap),$(a[b]).removeClass(Bp)}function sn(a){var b=um(a),c=b.children("."+rn),b=b.children("."+eq),d=0;if(c&&0<c.length)for(var e=c.length,d=0;d<e;d++)$(c[d]).remove();if(b&&0<b.length)for(c=b.length,d=0;d<c;d++)$(b[d]).remove();c=om(a);null!=c&&0!=c.length||a.u.EK()}
function Fn(a,b){var c=cm(a,b);null!=c&&(w.Components.af(c[0]),c.remove(),a.ek=null)}function En(a){var b=om(a);null!=b&&0<b.length&&(b=um(a),w.Components.af(b[0]),b.empty(),a.ek=null)}function dq(a,b,c){b=$(b);"rtl"===a.u.$b()&&(c=Math.abs(c),Dp(a)?c=b[0].scrollWidth-b[0].clientWidth-c:-1<navigator.userAgent.toLowerCase().indexOf("firefox")&&(c*=-1));b[0].scrollLeft!=c&&(b[0].scrollLeft=c)}
function Bo(a,b,c,d,e,f){var h=a.options.accessibility;e=a.u.cb()[e];var k=null,l=null==$m(a)?!0:!1,k=null!=h&&null!=h.rowHeader?h.rowHeader:a.u.cb()[0].id;b=null!=c?c.toString():b.toString();d=null==d?a.Vq(b):d;d=ao(a)+":"+k+"_"+d;a=ao(a)+":"+e.id;k==e.id?(f.attr(jp,d),l&&(a="")):a=l?d:a+" "+d;f.attr(qp)||f.attr(qp,a)}function Ao(a,b,c){c.data("rowKey",b.key);c.data("rowData",b.data)}function No(a,b,c){b=a.u.cb()[b];c.attr(jp)||c.attr(jp,ao(a)+":"+b.id)}
function bn(a,b,c){var d=an,e=om(a);if(null!=e&&0<e.length)if(null===b){if(b=null,b=c?um(a).find("[td]"):um(a).find("."+d),null!=b&&0<b.length)for(a=b.length,e=0;e<a;e++)c?$(b[e]).addClass(d):$(b[e]).removeClass(d)}else for(var f,h=e.length,e=0;e<h;e++)f=Vo(a,e,b,null),c?$(f).addClass(d):$(f).removeClass(d)}
function Fm(a){var b=tm(a),c=pm(a),d=b.children(on),d=0<d.length?$(d[0]):null,e=b.children(pn),e=0<e.length?$(e[0]):null,f=b.children(cn),f=0<f.length?$(f[0]):null;b.attr($n,"0");a.u._focusable(b);a.u._focusable(c);Jo(0,d);Eo(0,e);b=f;b.addClass(wm);b.attr(w.Components.Zj,a.u.widgetName)}
function Co(a,b,c,d){b=a.u.cb()[b];if(d||!c.hasClass(jm))c.addClass(jm),c.addClass(fq),null==b.style||!d&&c.attr(Jp)==b.style||c.attr(Jp,b.style),null==b.className||!d&&c.hasClass(b.className)||c.addClass(b.className);gq(a)&&(!d&&c.hasClass(hq)||c.addClass(hq))}function Bn(a,b,c){!c&&b.hasClass(nn)||b.addClass(nn);bq(a)&&(!c&&b.hasClass(cq)||b.addClass(cq))}function Eo(a,b){b&&(b.addClass(xm),$(b.children(qn)[0]).addClass(Fp))}
function Go(a,b,c){a.u.cb();b=a.u.cb()[b];c.attr(Jp,b.footerStyle);c.hasClass(nm)||c.addClass(nm);gq(a)&&!c.hasClass(hq)&&c.addClass(hq);b.footerClassName&&c.addClass(b.footerClassName)}function Jo(a,b){if(b){b.addClass(vm);b.css(Pn,"table-header-group");var c=$(b.children(qn)[0]);c.addClass(Gp);c.css(ln,Xp)}}
function Oo(a,b,c,d){b=a.u.cb()[b];if(d||!c.hasClass(mm))c.addClass(mm),gq(a)&&(!d&&c.hasClass(hq)||c.addClass(hq)),null==b.headerStyle||!d&&c.attr(Jp)==b.headerStyle||c.attr(Jp,b.headerStyle),null==b.headerClassName||!d&&c.hasClass(b.headerClassName)||c.addClass(b.headerClassName)}function em(a){var b,c,d=0,e=[],f=a.length;for(b=0;b<f;b++){var h=$(a[b]).attr(un);if(null!=h){h=parseInt(h,10);for(c=0;c<h;c++)e[d+c]=a[b];d+=h}else e[d++]=a[b]}return $(e)}
function bq(a){return"enabled"==a.options.horizontalGridVisible||"auto"==a.options.horizontalGridVisible?!0:!1}function gq(a){return"enabled"==a.options.verticalGridVisible||"auto"==a.options.verticalGridVisible&&a.options.display==Op?!0:!1}function Gm(a){if("undefined"==typeof a.aA){var b=navigator.userAgent;"Microsoft Internet Explorer"==navigator.appName?(b=/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(b),null!=b&&(a.aA=parseFloat(b[1]))):0<=b.indexOf("Trident")?a.aA=11:a.aA=null}return a.aA}
function Dp(a){if("undefined"==typeof a.UQ){var b=navigator.userAgent.toLowerCase();a.UQ=/webkit/.test(b)&&!/edge/.test(b)}return a.UQ}function fp(a){var b=pm(a),c=um(a),d=Wn(a);0<c.height()&&(b=c);d&&d[0].offsetParent&&(d.css(kn,c.height()+jn),d.css(hn,c.width()+jn),c=$(d[0].children[0]),a="rtl"===a.u.$b(),b={my:"center",at:"center",collision:"none",of:b},b=w.lc.Nh(b,a),d.position(b),d={my:"center",at:"center",collision:"none",of:d},d=w.lc.Nh(d,a),c.position(d))}
var Xo="oj-table-checkbox-acc-select-column",Zo="oj-table-checkbox-acc-select-row",Mp="oj-table-container",np="oj-table-scroller",Am="oj-table",Pp="oj-table-grid-display",Qp="oj-table-editable",Rp="oj-table-scroll",Dm="oj-table-element",xm="oj-table-footer",Fp="oj-table-footer-row",vm="oj-table-header",Gp="oj-table-header-row",mm="oj-table-column-header-cell",yp="oj-table-column-header-acc-select-column",Mo="oj-table-column-header-acc-select-row",Tp="oj-table-column-header",Kp="oj-table-column-header-text",
bo="oj-table-column-header-asc",yo="oj-table-column-header-dsc",aq="oj-table-column-header-sort-placeholder",gm="oj-table-column-header-asc-link",hm="oj-table-column-header-dsc-link",Ap="oj-table-column-header-drag-indicator-before",Bp="oj-table-column-header-drag-indicator-after",wm="oj-table-body",nn="oj-table-body-row",rn="oj-table-body-row-drag-indicator-before",eq="oj-table-body-row-drag-indicator-after",Lm="oj-table-body-row-touch-selection-affordance-top",Om="oj-table-body-row-touch-selection-affordance-bottom",
Nm="oj-table-body-row-touch-selection-affordance-top-icon",Pm="oj-table-body-row-touch-selection-affordance-bottom-icon",Mm="oj-table-body-row-touch-selection-affordance-touch-area",Cm="oj-table-body-row-edit",Uo="oj-table-body-current-row",jm="oj-table-data-cell",pp="oj-table-data-cell-acc-select",Hm="oj-table-data-cell-edit",fq="oj-form-control-inherit",hq="oj-table-vgrid-lines",cq="oj-table-hgrid-lines",nm="oj-table-footer-cell",op="oj-table-inline-message",ym="oj-table-status-message",zp="oj-table-status-message-text",
zm="oj-table-no-data-message",dp="oj-table-no-data-row",Ho="oj-helper-hidden-accessible",Pn="display",ln="position",kn="height",hn="width",mn="top",Un="bottom",Ln="left",Kn="right",Yp="padding-top",ap="padding-left",bp="padding-right",dn="overflow",fn="overflow-x",gn="overflow-y",Lp="min-width",Up="min-height",Zp="float",Vp="border-top",Rn="border-bottom-width",cp="border-left-width",Sn="margin-bottom",Qn="none",$o="block",Xp="relative",Wp="absolute",ep="inline",Sp="auto",en="hidden",$p="left",jn=
"px",Jp="style",$n="tabindex",sp="type",jp="id",tp="title",mp="href",qp="headers",un="colspan",Km="div",gp="a",qn="tr",tn="td",up="th",cn="tbody",on="thead",pn="tfoot",rp="input",ip="ul",vp="span",Np="oj-component",Xn="oj-disabled",Yn="oj-enabled",Gn="oj-focus",Jm="oj-hover",Dn="oj-selected",Tn="oj-warning",an="oj-drag",wp="single",xp="multiple",Op="grid";function Hn(a){this.u=a;this.options=a.options;this.Init()}t("TableDndContext",Hn,w);H(Hn,x,"oj.TableDndContext");Hn.prototype.Init=function(){Hn.o.Init.call(this)};
A("TableDndContext.prototype.Init",{Init:Hn.prototype.Init});function iq(a,b){sm(a.j(),b).addClass(an);bn(a.j(),b,!0)}g=Hn.prototype;g.vA=function(){this.AH&&(this.AH.remove(),this.AH=null)};function Um(a,b){return lm(a.j(),$(b.currentTarget))}g.j=function(){return this.u.j()};function Tm(a,b){if(Zm(a)){var c=Um(a,b);a.Jp=c;jq(a,b,c);a.u.mt(null);a.u.option("selection",null,{_context:{kc:!0,Ia:!0}});setTimeout(function(){window.getSelection().removeAllRanges()},0);iq(a,c);return!0}}
g.pj=function(a,b,c,d,e){a=this.options.dnd[a];var f;if(a&&a[b]&&(b=a[b][c])&&"function"==typeof b)try{d.dataTransfer=d.originalEvent.dataTransfer,f=b(d,e)}catch(h){w.l.error("Error: "+h)}return f};g.qj=function(a,b,c,d){b=this.pj("drop",a,b,c,d);void 0===b&&this.IJ(c,a)&&c.preventDefault();return b};function Zm(a){var b=a.options.dnd;return b&&b.reorder&&b.reorder.columns==a.u.tp?!0:!1}
g.tB=function(a,b){var c=b.getBoundingClientRect(),d=a.originalEvent;return d.clientX>=c.left&&d.clientX<c.right&&d.clientY>=c.top&&d.clientY<c.bottom};function Vm(a){var b=a.currentTarget.getBoundingClientRect();return null!=a.originalEvent.clientX?(a=b.right-a.originalEvent.clientX<(b.right-b.left)/2,"rtl"===w.q.Gj()?a:!a):!1}
g.IJ=function(a,b){var c=a.originalEvent.dataTransfer.types,d=this.options.dnd.drop;if(d&&d[b]&&d[b].dataTypes)for(var d=d[b].dataTypes,d="string"==typeof d?[d]:d,e=0;e<c.length;e++)if(0<=d.indexOf(c[e]))return!0;return!1};
function jq(a,b,c){b=b.originalEvent.dataTransfer;var d=a.j().Vq(Hp(a.j()));b.setData("Text",a.u.A3+":"+d+":"+c);a=a.j();c=sm(a,c).clone();c.removeClass(an);c.removeClass(Gn);c.removeClass(Jm);c.addClass("oj-table-column-header-cell-drag-image");c.css(ln,Wp);c.css(mn,"0");c.css(Ln,"-999em");c.css("z-index","-999");pm(a).append(c);try{b.setDragImage(c[0],0,0)}catch(e){}}
function Sm(a,b,c){if(Zm(a)&&(a=fm(a.j()),null!=a&&0<a.length)){var d;for(d=0;d<a.length;d++){var e=a[d];if(null!=b&&d==b){var f=c;if(e.draggable=f)$(e).css("cursor","move"),$(e).addClass("oj-draggable")}else e.draggable="",$(e).css("cursor",Sp),$(e).removeClass("oj-draggable")}}}w.Qe={};
w.Qe.xZ=function(a,b,c){var d=$(b.headerContext.parentElement),e=$(document.createElement(Km));e.addClass(Tp);d.empty();d.append(e);d=$(document.createElement(Km));d.addClass(Kp);e.prepend(d);null!=c?c(d):this.yZ(a,d,b)};
w.Qe.zZ=function(a,b,c){var d=b.columnIndex,e=a.cb()[d],f=$(b.headerContext.parentElement),d=$(document.createElement(Km));d.addClass(Tp);f.empty();f.append(d);"rtl"===a.$b()?d.css(ap,"0px"):d.css(bp,"0px");f=$(document.createElement(Km));f.addClass(bo);d.append(f);var h=$(document.createElement(gp));h.addClass(gm);h.addClass("oj-component-icon");h.addClass("oj-table-column-header-asc-icon");h.addClass(Xn);h.addClass("oj-clickable-icon-nocontext");a.ld(h);f.append(h);var h=f.width(),k=f.height(),
l=$(document.createElement(gp));l.attr($n,"0");l.attr(mp,"#");l.addClass("oj-table-column-header-acc-asc-link");l.addClass(Ho);l.text(a.r("labelSortAsc")+" "+e.headerText);f.append(l);f=$(document.createElement(Km));f.addClass(aq);f.css(Pn,"inline-block");f.css("vertical-align","middle");f.css(hn,h+jn);f.css(kn,k+jn);d.append(f);f=$(document.createElement(Km));f.addClass(yo);f.addClass(Xn);d.append(f);h=$(document.createElement(gp));h.addClass(hm);h.addClass("oj-component-icon");h.addClass("oj-table-column-header-dsc-icon");
h.addClass(Xn);h.addClass("oj-clickable-icon-nocontext");a.ld(h);f.append(h);h=$(document.createElement(gp));h.attr($n,"0");h.attr(mp,"#");h.addClass("oj-table-column-header-acc-dsc-link");h.addClass(Ho);h.text(a.r("labelSortDsc")+" "+e.headerText);f.append(h);e=$(document.createElement(Km));e.addClass(Kp);d.prepend(e);null!=c?c(e):this.yZ(a,e,b)};w.Qe.yZ=function(a,b,c){c=c.columnIndex;a=a.cb()[c];b.text(a.headerText)};
w.Qe.Nja=function(a,b,c,d){var e=$(d.rowContext.parentElement),f=a.j().Vq(c.key),h=a.cb();Ao(a.j(),c,e);h=h.length;for(e=0;e<h;e++)this.Mja(a,b,e,c,f,d)};
w.Qe.Mja=function(a,b,c,d,e,f){f=$(f.rowContext.parentElement);var h=a.cb()[c],k;a.j();k=$(document.createElement(tn));Co(a.j(),c,k,!0);var l=a.j(),m=k;Bo(l,b,d.key,e,c,m);$(f).append(m);l=null;null!=h.field&&(l=d.data[h.field]);(h=a.En(c,"cell"))?(m=this.Tt(a,k[0],{row:d}),h=h({cellContext:m,columnIndex:c,data:l,row:$.extend({},d.data)}),null!=h?k.append(h):(k=$(f.children(":not(."+pp+")")[c]),Bo(a.j(),b,d.key,e,c,k),Co(a.j(),c,k,!1))):k.text(l)};
w.Qe.Tt=function(a,b,c){var d={};d.component=w.Components.Pb(a.element,"ojTable");var e=a.Va();e instanceof Z&&(e=e.getWrappedDataSource());d.datasource=e;d.parentElement=b;if(null!=c.row&&(b=c.row,c=b.key,d.status=this.Lha(a,b),a.lj()?oa(c,a.AA)?d.mode="edit":d.mode="navigation":d.mode="navigation",e instanceof kq)){a=e.hI(b.index);for(var f in a)a.hasOwnProperty(f)&&(d[f]=a[f])}return d};w.Qe.Lha=function(a,b){return{rowIndex:b.index,rowKey:b.key,currentRow:$.extend({},a.gw())}};
w.Components.xa("ojTable","baseComponent",{properties:{accessibility:{type:"Object\x3cstring, string\x3e"},columns:{type:"Array\x3cObject\x3e"},columnsDefault:{type:"Object\x3cstring, string|null\x3e"},currentRow:{type:"Object"},data:{},display:{type:"string"},dnd:{type:"Object"},editMode:{type:"string"},emptyText:{type:"string"},horizontalGridVisible:{type:"string"},rowRenderer:{},scrollPolicy:{type:"string"},scrollPolicyOptions:{type:"Object\x3cstring, string\x3e"},selection:{type:"Array\x3cObject\x3e"},
selectionMode:{type:"Object\x3cstring, string\x3e"},verticalGridVisible:{type:"string"}},methods:{getContextByNode:{},getDataForVisibleRow:{},getNodeBySubId:{},getSubIdByNode:{},refresh:{},refreshRow:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"table",_widgetName:"ojTable"}});w.Components.register("oj-table",w.Components.getMetadata("ojTable"));function lq(a){this.Init(a)}t("AttributeGroupHandler",lq,w);H(lq,x,"oj.AttributeGroupHandler");
lq.prototype.Init=function(a){this.Av={};this.LC=0;this.JJ={};for(var b in a)this.sL(b,a[b])};lq.prototype.Hj=function(){return[]};A("AttributeGroupHandler.prototype.getValueRamp",{Hj:lq.prototype.Hj});lq.prototype.Gc=function(a){if(this.JJ[a])return this.JJ[a];this.Av[a]||(this.wf||(this.wf=this.Hj().slice()),this.Av[a]=this.wf[this.LC],this.LC++,this.LC==this.wf.length&&(this.LC=0));return this.Av[a]};A("AttributeGroupHandler.prototype.getValue",{Gc:lq.prototype.Gc});
lq.prototype.e_=function(){var a=[],b;for(b in this.Av)a.push({category:b,value:this.Av[b]});return a};A("AttributeGroupHandler.prototype.getCategoryAssignments",{e_:lq.prototype.e_});lq.prototype.sL=function(a,b){this.JJ[a]=b};A("AttributeGroupHandler.prototype.addMatchRule",{sL:lq.prototype.sL});function mq(a){this.Init(a)}t("ShapeAttributeGroupHandler",mq,w);H(mq,lq,"oj.ShapeAttributeGroupHandler");var nq="square circle diamond plus triangleDown triangleUp human".split(" ");mq.prototype.Hj=function(){return nq};
A("ShapeAttributeGroupHandler.prototype.getValueRamp",{Hj:mq.prototype.Hj});function oq(a,b){this.eda=b;this.yea=a;this.b8="/"}function pq(a,b){if(void 0===a.Us){for(var c=a.yea,d=a.eda,e=a.b8,f={};c&&-1<d.indexOf(e);){var h=d.substring(0,d.indexOf(e));b&&void 0===c[h]&&(c[h]={});c=c[h];d=d.substring(d.indexOf(e)+1,d.length)}c&&(f.object=c,f.parameter=d);a.Us=f.object;a.NB=f.parameter}}oq.prototype.Gc=function(){pq(this,!1);return void 0===this.Us?void 0:this.Us[this.NB]};
function qq(a){this.qG=[];if($(document.body).hasClass("oj-hicontrast"))this.qG=rq.slice();else{if(!sq){sq=[];var b=$(document.createElement("div"));b.attr("style","display:none;");b.attr("id","attrGps");$(document.body).append(b);for(var c=0;c<tq.length;c++){var d=$(document.createElement("div"));d.addClass(tq[c]);b.append(d);(d=d.css("color"))&&sq.push(d)}b.remove()}this.qG=0<sq.length?sq.slice():rq.slice()}this.Init(a)}t("ColorAttributeGroupHandler",qq,w);H(qq,lq,"oj.ColorAttributeGroupHandler");
var rq="#267db3 #68c182 #fad55c #ed6647 #8561c8 #6ddbdb #ffb54d #e371b2 #47bdef #a2bf39 #a75dba #f7f37b".split(" "),tq="oj-dvt-category1 oj-dvt-category2 oj-dvt-category3 oj-dvt-category4 oj-dvt-category5 oj-dvt-category6 oj-dvt-category7 oj-dvt-category8 oj-dvt-category9 oj-dvt-category10 oj-dvt-category11 oj-dvt-category12".split(" "),sq=null;qq.prototype.Hj=function(){return this.qG};A("ColorAttributeGroupHandler.prototype.getValueRamp",{Hj:qq.prototype.Hj});
var uq={CSS_TEXT_PROPERTIES:function(a){var b={};a&&(a.hasClass("oj-gauge-metric-label")&&a.hasClass(a.parentNode,"oj-ledgauge")?(b["font-size"]=!0,b.color=!0):a.hasClass(a,"oj-chart-slice-label")?b.color=!0:a.hasClass("oj-treemap-node-header")&&(b["font-weight"]=!0));return uq.z6(a,b)},CSS_BACKGROUND_PROPERTIES:function(a){return uq.v6(a)},CSS_URL:function(a){return uq.dda(a)},lP:"rgb(254, 0, 254)",V3:"Times",W3:"1px",nP:"1",mP:"normal",N3:4,sC:{},hha:function(a,b){return a.css(b)},dda:function(a){return(a=
a.css("background-image"))&&-1!==a.indexOf("url(")?a.slice(a.indexOf("url(")+4,a.length-1).replace(/"/g,""):a},v6:function(a){var b={};a.css("border-top-color")&&(b["border-color"]=a.css("border-top-color"));a.css("border-width")&&a.css("border-style")&&"none"!=a.css("border-style")&&(b["border-width"]=a.css("border-width"));a.css("background-color")&&(b["background-color"]=a.css("background-color"));return b},z6:function(a,b){var c={},d=a.css("font-family");d&&d!==uq.V3&&(c["font-family"]=d.replace(/"/g,
"'"));d=a.css("font-size");!d||-1<d.indexOf("px")&&parseFloat(d)<uq.N3||b["font-size"]||(c["font-size"]=d);(d=a.css("font-weight"))&&d!==uq.nP&&!b["font-weight"]&&(c["font-weight"]=d);(d=a.css("color"))&&d!==uq.lP&&!b.color&&(c.color=d);(d=a.css("font-style"))&&d!==uq.mP&&(c["font-style"]=d);return c},eja:function(a,b,c,d){var e=$(document.createElement("div"));e.attr("style","display:none;");a.append(e);a="";for(var f=0;f<c.length;f++)a=a+c[f]+" ";e.attr("class",a);$(document.body).append(e);c=$(document.createElement("div"));
c.css("font-size",uq.W3);c.css("color",uq.lP);c.css("font-weight",uq.nP);c.css("font-style",uq.mP);e.append(c);for(var h in d)a=d[h],a instanceof Array||(a=[a]),uq.wda(c,b,h,a);e.remove()},wda:function(a,b,c,d){uq.sC[c]||(uq.sC[c]={});for(var e=null,f=0;f<d.length;f++){var h=d[f],k=h.property;if(k){var l=uq.sC[c][k];"undefined"==typeof l&&(e||(e=$(document.createElement("div")),e.addClass(c),a.append(e)),l=uq.qea(e,k),uq.sC[c][k]=l);if(null!=l){var m=new oq(b,h.path),h=uq[k];if(null!=h){var n=m.Gc();
if("CSS_URL"!==k){k="";if(null!=n){var n=uq.X9(n),p;for(p in l)-1===n.indexOf(p)&&(k+=p+":"+l[p]+";");k+=n}else for(p in l)k+=p+":"+l[p]+";";l=k}}h=null!=h;pq(m,!0);if(h||!m.Us[m.NB])m.Us[m.NB]=l}}}},X9:function(a){if(a instanceof Object){var b="",c;for(c in a)var d=c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),b=b+(d+":"+a[c]+";");return b}return null!=a&&"string"==typeof a?a:""},qea:function(a,b){var c=uq[b],c=c?c(a):uq.hha(a,b);return null==c||"string"==typeof c&&""==c.replace(/^\s+/g,"")?
null:c}};
w.sa("oj.dvtBaseComponent",$.oj.baseComponent,{_ComponentCreate:function(){this._super();this.Mw=this.mK=0;this.Hk=null;for(var a=this.Md(),b=0;b<a.length;b++)this.element.addClass(a[b]);this.WB=$(document.createElement("div"));this.WB.attr("style","visibility:hidden;");this.element.append(this.WB);this.Yd=(a=this.element[0].parentElement)&&a.Sv?a.Sv:new dvt.Context(this.element[0],null,this.WB[0]);this.Yd.setReadingDirection(this.$b());this.Yd.setTooltipAttachedCallback(w.Components.me);this.Yd.setOverlayAttachedCallback(w.Components.me);
this.Yd.setTooltipStyleClass("oj-dvt-tooltip");this.Yd.setDatatipStyleClass("oj-dvt-datatip");this.Yd.setDefaultFontFamily(this.WB.css("font-family"));$(document.body).hasClass("oj-hicontrast")&&dvt.Agent.setHighContrast(!0);this.ca=this.ue(this.Yd,this.Th,this);this.Yd.getStage().addChild(this.ca);!1!==dvt.requireJS&&(this.$ea(),this.OW());this.Vi();this.options._environment="jet";this.options._widgetConstructor=w.Components.Pb(this.element)},cf:function(){this._super();this.element.attr("tabIndex",
0);"off"!=this.options.trackResize&&this.kG();this.KW();this.ff()},refresh:function(){this._super();this.Yd.setReadingDirection(this.$b());this.OW();this.ff()},getNodeBySubId:function(a){var b=this.ca&&this.ca.getAutomation?this.ca.getAutomation():null;if(b)return a=this.kh(a),b.getDomElementForSubId(a)},getSubIdByNode:function(a){var b=this.ca&&this.ca.getAutomation?this.ca.getAutomation():null;if(b)return(a=b.getSubIdForDomElement(a))?this.df(a):null},kh:function(){return null},df:function(){return null},
Hz:function(){uq.eja(this.element,this.options,this.Md(),this.ug())},Md:function(){return["oj-dvtbase"]},ug:function(){return{"oj-dvt-no-data-message":{path:"_statusMessageStyle",property:"CSS_TEXT_PROPERTIES"}}},vg:function(){return[]},Uf:function(){var a=this.options.translations,a={"DvtUtilBundle.CLEAR_SELECTION":a.labelClearSelection,"DvtUtilBundle.COLON_SEP_LIST":a.labelAndValue,"DvtUtilBundle.INVALID_DATA":a.labelInvalidData,"DvtUtilBundle.NO_DATA":a.labelNoData,"DvtUtilBundle.DATA_VISUALIZATION":a.labelDataVisualization,
"DvtUtilBundle.STATE_SELECTED":a.stateSelected,"DvtUtilBundle.STATE_UNSELECTED":a.stateUnselected,"DvtUtilBundle.STATE_MAXIMIZED":a.stateMaximized,"DvtUtilBundle.STATE_MINIMIZED":a.stateMinimized,"DvtUtilBundle.STATE_EXPANDED":a.stateExpanded,"DvtUtilBundle.STATE_COLLAPSED":a.stateCollapsed,"DvtUtilBundle.STATE_ISOLATED":a.stateIsolated,"DvtUtilBundle.STATE_HIDDEN":a.stateHidden,"DvtUtilBundle.STATE_VISIBLE":a.stateVisible,"DvtUtilBundle.SCALING_SUFFIX_THOUSAND":a.labelScalingSuffixThousand,"DvtUtilBundle.SCALING_SUFFIX_MILLION":a.labelScalingSuffixMillion,
"DvtUtilBundle.SCALING_SUFFIX_BILLION":a.labelScalingSuffixBillion,"DvtUtilBundle.SCALING_SUFFIX_TRILLION":a.labelScalingSuffixTrillion,"DvtUtilBundle.SCALING_SUFFIX_QUADRILLION":a.labelScalingSuffixQuadrillion},b=w.za.Sx("abbreviated");a["DvtUtilBundle.MONTH_SHORT_JANUARY"]=b[0];a["DvtUtilBundle.MONTH_SHORT_FEBRUARY"]=b[1];a["DvtUtilBundle.MONTH_SHORT_MARCH"]=b[2];a["DvtUtilBundle.MONTH_SHORT_APRIL"]=b[3];a["DvtUtilBundle.MONTH_SHORT_MAY"]=b[4];a["DvtUtilBundle.MONTH_SHORT_JUNE"]=b[5];a["DvtUtilBundle.MONTH_SHORT_JULY"]=
b[6];a["DvtUtilBundle.MONTH_SHORT_AUGUST"]=b[7];a["DvtUtilBundle.MONTH_SHORT_SEPTEMBER"]=b[8];a["DvtUtilBundle.MONTH_SHORT_OCTOBER"]=b[9];a["DvtUtilBundle.MONTH_SHORT_NOVEMBER"]=b[10];a["DvtUtilBundle.MONTH_SHORT_DECEMBER"]=b[11];return a},OW:function(){var a=this.Uf();dvt.Bundle.addLocalizedStrings(a)},$ea:function(){var a={};a.numberConverterFactory=w.ea.l_("number");a.dateToIsoConverter=function(a){return a instanceof Date?w.pa.dateToLocalIso(a):a};a.isoToDateConverter=function(a){if("string"==
typeof a){var c=w.pa.isoToDate(a);a=c.toJSON()?w.pa.dateToLocalIso(c):a;return w.pa.isoToLocalDate(a)}return a};a.dateToIsoWithTimeZoneConverter=function(a){if(a instanceof Date){var c=-1*a.getTimezoneOffset(),d=Math.floor(Math.abs(c)/60),e=Math.abs(c)%60,c=(0<=c?"+":"-")+(2!==d.toString().length?"0"+d:d)+":"+(2!==e.toString().length?e+"0":e);return w.pa.dateToLocalIso(a)+c}return a};this.Yd.setLocaleHelpers(a)},_destroy:function(){this.Yd.hideTooltips();this.Yd=null;var a=this.element[0].parentElement;
a&&a.Sv&&(a.Sv=null);this.ca.destroy&&this.ca.destroy();this.ca=null;this.jK();this.element.children().remove();this.element.removeAttr("role").removeAttr("tabIndex").removeAttr("aria-activedescendant");for(var a=this.Md(),b=0;b<a.length;b++)this.element.removeClass(a[b]);this._super()},_setOptions:function(a,b){this._superApply(arguments);var c=this.options.trackResize;"off"==c&&this.ki?this.jK():"off"==c||this.ki||this.kG();this.KW();if(!this.QQ){var d=!1,e=this.vg(),f=["highlightedCategories",
"selection","dataCursorPosition"];$.each(a,function(a){if(0>e.indexOf(a)&&0>f.indexOf(a))return d=!0,!1});d?this.ff():(void 0!==a.highlightedCategories&&this.ca.highlight(a.highlightedCategories),void 0!==a.selection&&this.ca.select(a.selection),void 0!==a.dataCursorPosition&&this.ca.positionDataCursor&&this.ca.positionDataCursor(a.dataCursorPosition))}},ue:function(){return null},Th:function(a){var b=a.type;"selection"===b?this.Ec("selection",a.selection):"categoryHide"===b||"categoryShow"===b?this.Ec("hiddenCategories",
a.hiddenCategories):"categoryHighlight"===b?this.Ec("highlightedCategories",a.categories):"optionChange"===b?this.Ec(a.key,a.value,a.optionMetadata):"touchHoldRelease"===b&&this.options.contextMenu?this.Te($.Event(a.nativeEvent),"touch"):"ready"===b&&0===this.Mw&&(this.aK&&this.aK(!0),this.QW=!0,this.$J=this.aK=null)},kG:function(){this.ki||(this.ki=this.Ae.bind(this),w.q.Ch(this.element[0],this.ki,250))},jK:function(){this.ki&&(w.q.Hi(this.element[0],this.ki),this.ki=null)},Ae:function(){var a=this.element.width(),
b=this.element.height();(null==this.MC||null==this.mB||5<=Math.abs(a-this.MC)+Math.abs(b-this.mB))&&this.ff(!0)},Vi:function(){},ff:function(a){this.Yd.hideTooltips();this.LP();this.Yd.isReadyToRender()?(this.MC=this.vz()?null:this.element.width(),this.mB=this.vz()?null:this.element.height(),this.options._width=this.MC,this.options._height=this.mB,this.options._locale=w.T.gg(),this.options.dnd&&this.element.attr("draggable",!0),this.Hz(),this.mK++,a?this.Hk||this.lK(null):0===this.pea().length&&this.lK(this.options),
this.oK=!1):this.oK=!0},Nl:function(){this._super();this.oK&&this.ff()},Ml:function(){this._super();this.oK&&this.ff()},xg:function(){this._super();this.Yd.hideTooltips()},Xi:function(){this._super();this.Yd.hideTooltips()},Ec:function(a,b,c){this.QQ=!0;this.option(a,b,{_context:{kc:!0,No:c,Ia:!0}});this.QQ=!1},Se:function(a,b,c){if("touch"!==c)if("keyboard"===c){a=this.element[0].getBoundingClientRect();var d=this.ca.getKeyboardFocus()?this.ca.getKeyboardFocus().getBoundingClientRect():null;this.Te(b,
c,{position:{at:d?"left+"+(d.left+.5*d.width-a.left)+" top+"+(d.top+.5*d.height-a.top):"center"}})}else this._super(a,b,c)},gv:function(a){return(a=w.Components.Pb(a)("instance"))?a.ca:null},Sf:function(a){if(a){var b={},c;for(c in a)this.M5(a,c,b);Object.defineProperties(a,b)}},M5:function(a,b,c){var d=("selected"==b?"is":"get")+b.charAt(0).toUpperCase()+b.slice(1);c[d]={value:function(){return a[b]}}},pp:function(a){for(var b="",c=0;c<a.length;c++)b+="["+a[c]+"]";return b},Si:function(a){for(var b=
[],c=0;0<a.indexOf("[",c);){var d=a.indexOf("[",c)+1,c=a.indexOf("]",c);b.push(Number(a.substring(d,c)));c+=1}return b},mh:function(a){return Number(this.qz(a))},qz:function(a){var b=a.indexOf("[")+1,c=a.indexOf("]");return a.substring(b,c)},lh:function(){return{}},pea:function(){this.Hk=null;var a=this.lh(),b;for(b in a)for(var c=a[b],d=0;d<c.length;d++)if("root"===b){if(this.JR(this.options,c[d]))break}else{var e=this.options[b];if(e)for(var f=0;f<e.length&&!this.JR(e[f],c[d]);f++);}var h=[];this.Mw=
0;if(this.Hk){var k=this;for(b in a)c=a[b],c.forEach(function(a){var c;if("root"===b)(c=k.MT(k.Hk,a))&&h.push(c);else{var d=k.Hk[b];if(d)for(var e=0;e<d.length;e++)(c=k.MT(d[e],a))&&h.push(c)}})}return h},JR:function(a,b){if(!this.Hk){var c=(new oq(a,b)).Gc();c&&(c instanceof Function||c instanceof Promise)&&(this.Hk=dvt.JsonUtils.clone(this.options))}return null!==this.Hk},MT:function(a,b){var c=new oq(a,b),d=c.Gc();d instanceof Function&&(d=Promise.resolve(d(this.iP(a))));if(d&&d instanceof Promise){this.Mw++;
var e=this.mK,f=this;d.then(function(a){f.oX(e,c,a)},function(){f.oX(e,c,[])});return d}return null},oX:function(a,b,c){a===this.mK&&(this.Mw--,pq(b,!0),b.Us[b.NB]=c,0===this.Mw&&(this.lK(this.Hk),this.Hk=null))},lK:function(a){var b=this.vz()&&this.ki;b&&this.jK();this.ca.render(a,this.MC,this.mB);b&&this.kG()},iP:function(){return{}},vz:function(){return!1},whenReady:function(){if(this.QW)return Promise.resolve(!0);if(!this.$J){var a=this;this.$J=new Promise(function(b){a.aK=b})}return this.$J},
LP:function(){this.QW=!1},KW:function(){var a=this.options.tooltip;"function"===typeof a&&(this.options.tooltip={renderer:a})}},!0);w.Components.xa("dvtBaseComponent","baseComponent",{properties:{trackResize:{type:"string"}},methods:{whenReady:{}},extension:{_widgetName:"dvtBaseComponent"}});
w.sa("oj.dvtBaseGauge",$.oj.dvtBaseComponent,{Hz:function(){this._super();this.options._thresholdColors=[this.options._threshold1,this.options._threshold2,this.options._threshold3];this.options._threshold1=null;this.options._threshold2=null;this.options._threshold3=null},cf:function(){this._super();this.option("rawValue",this.options.value,{_context:{kc:!0,Ia:!0,readOnly:!0}})},ug:function(){var a=this._super();a["oj-gauge-metric-label"]={path:"metricLabel/style",property:"CSS_TEXT_PROPERTIES"};a["oj-gauge-tick-label"]=
{path:"tickLabel/style",property:"CSS_TEXT_PROPERTIES"};a["oj-gauge-threshold1"]={path:"_threshold1",property:"color"};a["oj-gauge-threshold2"]={path:"_threshold2",property:"color"};a["oj-gauge-threshold3"]={path:"_threshold3",property:"color"};return a},vg:function(){return["input","optionChange"]},Uf:function(){var a=this.options.translations,b=this._super();b["DvtGaugeBundle.EMPTY_TEXT"]=a.labelNoData;b["DvtUtilBundle.GAUGE"]=a.componentName;return b},Th:function(a){if("valueChange"===a.type){var b=
a.newValue;a.complete?this.Ec("value",b):(this._trigger("input",null,{value:b}),this.Ec("rawValue",b))}else this._super(a)},_setOption:function(a,b,c){"rawValue"===a?w.l.error("'rawValue' is a read-only option and cannot be set"):("value"===a&&this.option("rawValue",b,{_context:{kc:!0,Ia:!0,readOnly:!0}}),this._super(a,b,c))},kh:function(a){var b=a.subId;if("oj-dialgauge-tooltip"==b||"oj-ledgauge-tooltip"==b||"oj-ratinggauge-tooltip"==b||"oj-statusmetergauge-tooltip"==b)b="tooltip";"oj-ratinggauge-item"==
b&&null!=a.index&&(b="item["+a.index+"]");return b}},!0);
w.sa("oj.ojLedGauge",$.oj.dvtBaseGauge,{widgetEventPrefix:"oj",options:{},ue:function(a,b,c){this._focusable({element:this.element,applyHighlight:!0});return dvt.LedGauge.newInstance(a,b,c)},df:function(a){var b={};"tooltip"==a&&(b.subId="oj-ledgauge-tooltip");return b},Md:function(){var a=this._super();a.push("oj-ledgauge");return a},ff:function(){this.element.attr("title")?(this.options.shortDesc=this.element.attr("title"),this.element.data(this.element,"title",this.element.attr("title")),this.element.removeAttr("title")):
this.element.data("title")&&(this.options.shortDesc=this.element.data("title"));this._super()},getMetricLabel:function(){return this.ca.getAutomation().getMetricLabel()}});
w.sa("oj.ojRatingGauge",$.oj.dvtBaseGauge,{widgetEventPrefix:"oj",options:{input:null,optionChange:null,rawValue:void 0},ue:function(a,b,c){this._focusable({element:this.element,applyHighlight:!0});return dvt.RatingGauge.newInstance(a,b,c)},df:function(a){var b={};"tooltip"==a?b.subId="oj-ratinggauge-tooltip":0==a.indexOf("item")&&(b.subId="oj-ratinggauge-item",b.index=this.mh(a));return b},Md:function(){var a=this._super();a.push("oj-ratinggauge");return a},ff:function(){this.element.attr("title")?
(this.options.shortDesc=this.element.attr("title"),this.element.data(this.element,"title",this.element.attr("title")),this.element.removeAttr("title")):this.element.data("title")&&(this.options.shortDesc=this.element.data("title"));this._super()},Ec:function(a,b){this._superApply(arguments);"value"==a&&this.Ec("changed",!0)}});
w.sa("oj.ojDialGauge",$.oj.dvtBaseGauge,{widgetEventPrefix:"oj",options:{input:null,optionChange:null,rawValue:void 0},ue:function(a,b,c){this._focusable({element:this.element,applyHighlight:!0});return dvt.DialGauge.newInstance(a,b,c)},df:function(a){var b={};"tooltip"==a&&(b.subId="oj-dialgauge-tooltip");return b},Md:function(){var a=this._super();a.push("oj-dialgauge");return a},ff:function(){this.element.attr("title")?(this.options.shortDesc=this.element.attr("title"),this.element.data(this.element,
"title",this.element.attr("title")),this.element.removeAttr("title")):this.element.data("title")&&(this.options.shortDesc=this.element.data("title"));this.Tea();this._super()},Tea:function(){var a=this.options.background;null==a&&(a="circleAlta",this.options.background="circleAlta");var b=this.options.indicator;null==b&&(b="needleAlta",this.options.indicator="needleAlta");if("string"===typeof a){var c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/alta-circle-200x200.png"),width:200,height:200},
{src:w.T.Fa("resources/internal-deps/dvt/gauge/alta-circle-400x400.png"),width:400,height:400}];"rectangleAlta"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/alta-rectangle-200x200.png"),width:200,height:154},{src:w.T.Fa("resources/internal-deps/dvt/gauge/alta-rectangle-400x400.png"),width:400,height:309}]:"domeAlta"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/alta-dome-200x200.png"),width:200,height:154},{src:w.T.Fa("resources/internal-deps/dvt/gauge/alta-dome-400x400.png"),width:400,
height:309}]:"circleAntique"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/antique-circle-200x200.png"),width:200,height:200},{src:w.T.Fa("resources/internal-deps/dvt/gauge/antique-circle-400x400.png"),width:400,height:400}]:"rectangleAntique"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/antique-rectangle-200x200.png"),width:200,height:168},{src:w.T.Fa("resources/internal-deps/dvt/gauge/antique-rectangle-400x400.png"),width:400,height:335}]:"domeAntique"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/antique-dome-200x200.png"),
width:200,height:176},{src:w.T.Fa("resources/internal-deps/dvt/gauge/antique-dome-400x400.png"),width:400,height:352}]:"circleLight"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/light-circle-200x200.png"),width:200,height:200},{src:w.T.Fa("resources/internal-deps/dvt/gauge/light-circle-400x400.png"),width:400,height:400}]:"rectangleLight"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/light-rectangle-200x200.png"),width:200,height:154},{src:w.T.Fa("resources/internal-deps/dvt/gauge/light-rectangle-400x400.png"),
width:400,height:307}]:"domeLight"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/light-dome-200x200.png"),width:200,height:138},{src:w.T.Fa("resources/internal-deps/dvt/gauge/light-dome-400x400.png"),width:400,height:276}]:"circleDark"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/dark-circle-200x200.png"),width:200,height:200},{src:w.T.Fa("resources/internal-deps/dvt/gauge/dark-circle-400x400.png"),width:400,height:400}]:"rectangleDark"===a?c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/dark-rectangle-200x200.png"),
width:200,height:154},{src:w.T.Fa("resources/internal-deps/dvt/gauge/dark-rectangle-400x400.png"),width:400,height:307}]:"domeDark"===a&&(c=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/dark-dome-200x200.png"),width:200,height:138},{src:w.T.Fa("resources/internal-deps/dvt/gauge/dark-dome-400x400.png"),width:400,height:276}]);this.options._backgroundImages=c}"string"===typeof b&&(a=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/alta-needle-1600x1600.png"),width:374,height:575}],"needleAntique"===
b?a=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/antique-needle-1600x1600.png"),width:81,height:734}]:"needleDark"===b?a=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/dark-needle-1600x1600.png"),width:454,height:652}]:"needleLight"===b&&(a=[{src:w.T.Fa("resources/internal-deps/dvt/gauge/light-needle-1600x1600.png"),width:454,height:652}]),this.options._indicatorImages=a)},getMetricLabel:function(){return this.ca.getAutomation().getMetricLabel()}});
w.sa("oj.ojStatusMeterGauge",$.oj.dvtBaseGauge,{widgetEventPrefix:"oj",options:{input:null,optionChange:null,rawValue:void 0},ue:function(a,b,c){this._focusable({element:this.element,applyHighlight:!0});return dvt.StatusMeterGauge.newInstance(a,b,c)},df:function(a){var b={};"tooltip"==a&&(b.subId="oj-statusmetergauge-tooltip");return b},Md:function(){var a=this._super();a.push("oj-statusmetergauge");return a},ff:function(){this.element.attr("title")?(this.options.shortDesc=this.element.attr("title"),
this.element.data(this.element,"title",this.element.attr("title")),this.element.removeAttr("title")):this.element.data("title")&&(this.options.shortDesc=this.element.data("title"));this._super()},getMetricLabel:function(){return this.ca.getAutomation().getMetricLabel()}});w.Components.xa("dvtBaseGauge","dvtBaseComponent",{properties:{},methods:{},extension:{_widgetName:"dvtBaseGauge"}});
w.Components.xa("ojDialGauge","dvtBaseGauge",{properties:{animationDuration:{type:"number"},animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},background:{type:"object|string"},indicator:{type:"object|string"},max:{type:"number"},metricLabel:{type:"object"},min:{type:"number"},rawValue:{type:"number",readOnly:!0,writeback:!0},readOnly:{type:"boolean"},tickLabel:{type:"object"},tooltip:{type:"object"},value:{type:"number",writeback:!0}},methods:{getMetricLabel:{}},extension:{_widgetName:"ojDialGauge"}});
w.Components.register("oj-dial-gauge",w.Components.getMetadata("ojDialGauge"));
w.Components.xa("ojLedGauge","dvtBaseGauge",{properties:{borderColor:{type:"string"},className:{type:"string"},color:{type:"string"},max:{type:"number"},metricLabel:{type:"object"},min:{type:"number"},rotation:{type:"number"},size:{type:"number"},style:{type:"object"},thresholds:{type:"Array\x3cobject\x3e"},title:{type:"object"},tooltip:{type:"object"},type:{type:"string"},value:{type:"number",writeback:!0},visualEffects:{type:"string"}},methods:{getMetricLabel:{}},extension:{_widgetName:"ojLedGauge"}});
w.Components.register("oj-led-gauge",w.Components.getMetadata("ojLedGauge"));
w.Components.xa("ojRatingGauge","dvtBaseGauge",{properties:{changed:{type:"boolean"},changedState:{type:"object"},hoverState:{type:"object"},max:{type:"number"},min:{type:"number"},orientation:{type:"string"},preserveAspectRatio:{type:"string"},rawValue:{type:"number",readOnly:!0,writeback:!0},readOnly:{type:"boolean"},selectedState:{type:"object"},step:{type:"number"},thresholds:{type:"Array\x3cobject\x3e"},tooltip:{type:"object"},unselectedState:{type:"object"},value:{type:"number",writeback:!0},
visualEffects:{type:"string"}},methods:{},extension:{_widgetName:"ojRatingGauge"}});w.Components.register("oj-rating-gauge",w.Components.getMetadata("ojRatingGauge"));
w.Components.xa("ojStatusMeterGauge","dvtBaseGauge",{properties:{angleExtent:{type:"number"},animationDuration:{type:"number"},animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},borderColor:{type:"string"},borderRadius:{type:"string"},center:{type:"object"},className:{type:"string"},color:{type:"string"},indicatorSize:{type:"number"},innerRadius:{type:"number"},max:{type:"number"},metricLabel:{type:"object"},min:{type:"number"},orientation:{type:"string"},plotArea:{type:"object"},
rawValue:{type:"number",readOnly:!0,writeback:!0},readOnly:{type:"boolean"},referenceLines:{type:"Array\x3cobject\x3e"},startAngle:{type:"number"},step:{type:"number"},style:{type:"object"},thresholdDisplay:{type:"string"},thresholds:{type:"Array\x3cobject\x3e"},title:{type:"object"},tooltip:{type:"object"},value:{type:"number",writeback:!0},visualEffects:{type:"string"}},methods:{getMetricLabel:{}},extension:{_widgetName:"ojStatusMeterGauge"}});w.Components.register("oj-status-meter-gauge",w.Components.getMetadata("ojStatusMeterGauge"));
(function(){function a(){var a=window.location.href.split("#")[0];return a.substring(0,a.lastIndexOf("/"))}function b(a){var b={};a&&(a=a.split("\x26"),a.forEach(function(a){var c=a.split(/\=(.+)?/);a=c[0];a.length&&(b[a]||(b[a]=[]),c=c[1]&&decodeURIComponent(c[1].replace(/\+/g," ")),b[a].push(c))}));return b}function c(a,b){var c;b&&a.bo&&(w.i.sm(b),a.bo.every(function(a){return a.di===b?(c=a,!1):!0}));return c}function d(){return window.location.href.split("#")[0].replace(Q,"")}function e(a){return a.hm?
e(a.hm)+"."+a.ce:a.ce}function f(a){var b;if(a){if(b=f(a.hm))b=(a=a.Ue())?b+(a+"/"):void 0}else b="/";return b}function h(a,b){var c;a.Wf.every(function(a){return a.im&&a.im!==b?!0:(c=a,!1)});return c}function k(){return ia[0]&&ia[0].cancel}function l(a){var b=a.charAt(0);a=a.slice(1);if("0"===b)a=decodeURIComponent(a);else if("1"===b)a=w.nO.gha(a);else throw Error("Error retrieving bookmarkable data. Format is invalid");return JSON.parse(a)}function m(a,b){if(b&&0<Object.getOwnPropertyNames(b).length){var c;
c=-1===a.indexOf("?")?"?":"\x26";var d=a,e=JSON.stringify(b),f=encodeURIComponent(e),e=w.nO.$ga(e),h=!1,k="oj_Router\x3d";e.length<=f.length&&(h=!0);k=h?k+("1"+e):k+("0"+f);if(1024<k.length)throw Error("Size of bookmarkable data is too big.");a=d+(c+k)}return a}function n(a,b,c){var d;a.Wf.every(function(a){return a.im&&a.im!==c||!a.Uj(b)?!0:(d=a,!1)});return d}function p(a){if(!a)return{title:"",Du:""};var b=p(h(a,a.Ue()));if(""===b.title&&(a=a.qA())){var c=a.wt;void 0!==c?("function"===typeof c&&
(c=c()),b.title=String(c)):(c=a.yJ,void 0!==c&&(c=String(c),""!==b.Du&&(c+=" | "+b.Du),b.Du=c))}return b}function q(a,b){var c=[],d=[],e=a,f=b.split("/"),h,k,r;for(f.splice(0,1);e;)d.unshift(e),e=e.hm;for(;h=f.shift();){e=d.shift();if(!e){if(e=n(k,h,r),!e){ra=b;break}}else if(!e.Uj(h))throw Error('Invalid path "'+b+'". State id "'+h+'" does not exist on router "'+e.ce+'".');c.push({Cc:e,Hu:h});k=e;r=h}e=!0;for(d=c.length-1;0<=d&&e;d--)c[d].Hu===c[d].Cc.lk?c[d].Hu=null:e=!1;return c}function r(a,b,
c){(a=a())||w.l.info("%s is false for state: %s",b,c);return a}function s(a,b,c,d){"function"===typeof a&&(b=b?b.then(function(b){b&&(b=r(a,c,d));return b}):new Promise(function(b){b(r(a,c,d))}));return b}function u(a,b){var c=a.qA(),d;if(c){for(d=0;d<a.Wf.length;d++)b=u(a.Wf[d],b);d=c.ME&&c.ME.canExit?c.ME.canExit:c.Gv;b=s(d,b,"canExit",c.di)}return b}function v(a){if(k())return Promise.resolve(!1);w.l.info("Start _canExit.");a?(a=u(a,null),a=null===a?Promise.resolve(!0):a.then(function(a){return a&&
!k()})):a=Promise.resolve(!0);return a}function y(a,b){if(k())return Promise.resolve();w.l.info("Start _canEnter.");var c=null;a.forEach(function(a){(a=a.Cc.Uj(a.value))&&(c=s(a.Fv,c,"canEnter",a.di))});return c=null===c?Promise.resolve({uL:a,origin:b}):c.then(function(c){var d;c&&!k()&&(d={uL:a,origin:b});return d})}function z(a,b){var c=a.Cc.Uj(a.Cc.Ue()),d=a.value?a.Cc.Uj(a.value):void 0;return Promise.resolve().then(function(){w.l.info("Updating state of %s to %s.",e(a.Cc),a.value)}).then(c?c.Uv:
void 0).then(function(){var c=a.Cc,d,e,f;if("popState"===b){e=c.$s.length;for(d=e-1;0<=d;d--)if(c.$s[d]===a.value){f=!0;c.$s.splice(d,e-d);break}1===e-d&&(c.Kw="back")}f||(delete c.Kw,c.$s.push(c.Ue()));c.Ue(a.value)}).then(d?d.Tv:void 0)}function B(a){if(!a)return{hasChanged:!1};var b=Promise.resolve().then(function(){w.l.info("Entering _updateAll.");w.Ra.IC=!0});a.uL.forEach(function(c){b=b.then(function(){if(!k())return z(c,a.origin)})});return b.then(function(){var b=0<a.uL.length&&!k();w.Ra.IC=
!1;w.l.info("_updateAll returns %s.",String(b));return{hasChanged:b}},function(a){w.Ra.IC=!1;return Promise.reject(a)})}function C(a){var b={},c,d=a.split("?")[1]||"";w.l.info("Parsing: %s",a);a=K.Jx(a);if(d=d.split("oj_Router\x3d")[1])d=d.split("\x26")[0],b=l(d);if(w.l.option("level")===w.l.hp)for(c in w.l.info("Bookmarkable data: "),b)w.l.info("   { router: %s, value: %s }",c,b[c]);a=K.parse(a).filter(function(a){var c=b[a.Cc.ce];void 0!==c&&(a.Cc.$h=c);return a.value!==a.Cc.Ue()});w.l.option("level")===
w.l.hp&&(w.l.info("Potential changes are: "),a.forEach(function(a){w.l.info("   { router: %s, value: %s }",e(a.Cc),a.value)}));return a}function F(a,b){var c;try{c=C(a)}catch(d){return Promise.reject(d)}return y(c,b).then(B)}function I(a){w.l.info("\x3e\x3e Executing: path\x3d%s, url\x3d%s, origin\x3d%s",a.path,a.url,a.origin);return void 0!==a.url?"sync"===a.origin?F(a.url):v(a.Cc).then(function(b){return b?F(a.url,a.origin):{hasChanged:!1}}):a.Cc.i$(a.path||null,a.replace)}function G(){var a=ia[0];
w.l.info("\x3e\x3e Resolving: path\x3d%s, url\x3d%s",a.path,a.url);a.cancel?(w.l.info("\x3e\x3e Cancelled: path\x3d%s, url\x3d%s",a.path,a.url),a=Promise.resolve({hasChanged:!1})):a=I(a);return a.then(function(a){var b=ia.shift();w.l.info("\x3e\x3e Done with: path\x3d%s, url\x3d%s",b.path,b.url);if(!0===a.hasChanged){var b=p(fa),c;""!==b.title?c=b.title:P&&0<P.length?(c=P,""!==b.Du&&(c+=" | "+b.Du)):c=b.Du;c!==window.document.title&&(window.document.title=c)}w.Ra.zt.dispatch(a);return a},function(a){ia=
[];w.l.error("Error when executing transition: %s",a.message);w.Ra.zt.dispatch({hasChanged:!1});return Promise.reject(a)})}function E(a){var b;b=ia.push(a);w.l.info("\x3e\x3e Queue transition for path\x3d%s, url\x3d%s",a.path,a.url);1===b?Aa=G():(a=ia[b-2],a.url||a.iha||(w.l.info("\x3e\x3e Cancelling: path\x3d%s",a.path),a.cancel=!0),Aa=Aa.then(G));return Aa}function D(){var a,b,c=fa.Ue(),e=null;w.l.info("Handling popState event with URL: %s",window.location.href);if(c)for(a=0;a<fa.Wf.length;a++)if(b=
fa.Wf[a],c===b.im){e=b;break}E({Cc:e,url:d(),origin:"popState"}).then(null,function(a){w.l.error("Error while changing state in handlePopState: %s",a.message)})}function J(){ha||(K||(K=new w.Ra.PN),Q||(Q=a()),P=window.document.title,window.addEventListener("popstate",D,!1),w.l.info("Initializing rootInstance."),w.l.info("Base URL is %s",Q),w.l.info("This page is %s",U),w.l.info("Current URL is %s",window.location.href),ha=!0)}var Q,P,U=function(){var a="",b=window.location.pathname;-1!==b.indexOf(".html",
b.length-5)&&(a=b.split("/").pop());return a}(),K,ha=!1,ra,ia=[],Aa,fa;w.Ra=function(a,b,c){var d=this;this.ce=a;this.im=c||(b?b.Ue():void 0);this.hm=b;this.Wf=[];this.$h=void 0;this.Ue=ko.observable();this.Ffa=ko.pureComputed({read:function(){return this.Ue()},write:function(a){this.go(a).then(null,function(a){throw a;})},owner:d});this.bo=null;this.lk=void 0;this.qA=ko.pureComputed(function(){return ko.ignoreDependencies(d.Uj,d,[d.Ue()])});this.Y7=ko.pureComputed(function(){var a,b=ko.ignoreDependencies(d.Uj,
d,[d.Ue()]);b&&(a=b.value);return a});this.Kw=void 0;this.$s=[];this.yca=Object.create(null,{name:{value:ko.pureComputed(function(){var a,b;b=this.Ue()||this.lk||this.bo[0];if(b=this.Uj(b))a=b.value,a&&"string"===typeof a||(a=b.di);return a},d),enumerable:!0},params:{value:Object.create(null,{ojRouter:{value:new function(){Object.defineProperties(this,{parentRouter:{value:d,enumerable:!0},direction:{get:function(){return d.Kw},enumerable:!0}})},enumerable:!0}}),enumerable:!0},lifecycleListener:{value:Object.create(null,
{attached:{value:function(a){var b=ko.unwrap(a.valueAccessor()).params.ojRouter.parentRouter.qA();b&&(b.ME=a.viewModel)},writable:!0,enumerable:!0}}),enumerable:!0}});Object.defineProperties(this,{parent:{value:this.hm,enumerable:!0}})};t("Router",w.Ra,w);Object.defineProperties(w.Ra.prototype,{name:{get:function(){return this.ce},enumerable:!0},states:{get:function(){return this.bo},enumerable:!0},stateId:{get:function(){return this.Ffa},enumerable:!0},currentState:{get:function(){return this.qA},
enumerable:!0},currentValue:{get:function(){return this.Y7},enumerable:!0},defaultStateId:{get:function(){return this.lk},set:function(a){this.lk=a},enumerable:!0},moduleConfig:{get:function(){return this.yca},enumerable:!0}});fa=new w.Ra("root",void 0,void 0);w.Ra.prototype.g_=function(a){var b;a&&"string"===typeof a&&(a=a.trim(),0<a.length&&this.Wf.every(function(c){return c.ce===a?(b=c,!1):!0}));return b};A("Router.prototype.getChildRouter",{g_:w.Ra.prototype.g_});w.Ra.prototype.GZ=function(a,
b){var c,d;w.i.sm(a);b=b||this.Ue();a=encodeURIComponent(a.trim());for(c=0;c<this.Wf.length;c++){d=this.Wf[c];if(d.ce===a)throw Error('Invalid router name "'+a+'", it already exists.');if(d.im===b)throw Error('Cannot create more than one child router for parent state id "'+d.im+'".');}c=new w.Ra(a,this,b);this.Wf.push(c);return c};A("Router.prototype.createChildRouter",{GZ:w.Ra.prototype.GZ});w.Ra.prototype.Uj=function(a){return c(this,a)};w.Ra.prototype.BZ=function(a){this.Ue(void 0);delete this.lk;
this.Kw=void 0;this.$s=[];"function"===typeof a?(this.bo=null,this.Uj=a):(this.bo=[],delete this.Uj,Object.keys(a).forEach(function(b){var c=a[b];this.bo.push(new w.Jr(b,c,this));"boolean"===typeof c.isDefault&&c.isDefault&&(this.lk=b)},this));return this};A("Router.prototype.configure",{BZ:w.Ra.prototype.BZ});w.Ra.prototype.I_=function(a){return this.Uj(a)};A("Router.prototype.getState",{I_:w.Ra.prototype.I_});w.Ra.prototype.go=function(a){J();return E({Cc:this,path:a,origin:"go"})};A("Router.prototype.go",
{go:w.Ra.prototype.go});w.Ra.prototype.i$=function(a,b){function c(a){return a?F(k).then(function(a){if(a.hasChanged){var c=Q+k;w.l.info("%s URL to %s",b?"Replacing":"Pushing",c);window.history[b?"replaceState":"pushState"](null,"",c)}return a}):{hasChanged:!1}}var h,k,r;h=!0;if(a)if("string"===typeof a)0<a.length&&(h=!1);else return Promise.reject(Error("Invalid object type for state id."));if(h&&(a=this.lk||null,!a))return w.l.option("level")===w.l.hp&&w.l.info("Undefined state id with no default id on router %s",
e(this)),Promise.resolve({hasChanged:!1});if("/"===a.charAt(0))h=a;else{h=f(this.hm);if(!h)return Promise.reject(Error('Invalid path "'+a+'". The parent router does not have a current state.'));h+=a}w.l.info("Destination path: %s",h);try{r=q(this,h)}catch(l){return Promise.reject(l)}k=K.sZ(r);w.l.option("level")===w.l.hp&&w.l.info("Going to URL %s on router %s",k,e(this));r=K.Jx(d());return b||K.Jx(k)!==r?(w.l.info("Deferred mode or new URL is different."),v(this).then(c)):Promise.resolve({hasChanged:!1})};
w.Ra.prototype.h2=function(a){this.$h=a;a={};for(var b=this;b;)void 0!==b.$h&&(a[b.ce]=b.$h),b=b.hm;for(var b=this,c,e,f;b;){for(e=0;e<b.Wf.length;e++)if(f=b.Wf[e],b.Ue()&&b.Ue()===f.im){void 0!==f.$h&&(a[f.ce]=f.$h);c=f;break}b=c;c=void 0}c=Q+K.Jx(d());c=m(c,a);window.history.replaceState(null,"",c)};A("Router.prototype.store",{h2:w.Ra.prototype.h2});w.Ra.prototype.P1=function(){return this.$h};A("Router.prototype.retrieve",{P1:w.Ra.prototype.P1});w.Ra.prototype.Nt=function(){for(var a,b;0<this.Wf.length;)this.Wf[0].Nt();
if(this.hm){a=this.hm.Wf;for(b=0;b<a.length;b++)if(a[b].ce===this.ce){a.splice(b,1);break}delete this.im}else Q="",K={},this.ce="root",window.document.title=P,window.removeEventListener("popstate",D),w.Ra.zt.removeAll(),ha=!1;delete this.Kw;this.$s=[];this.bo=null;delete this.lk;delete this.$h};A("Router.prototype.dispose",{Nt:w.Ra.prototype.Nt});w.Ra.zt=new signals.Signal;w.Ra.IC=!1;Object.defineProperties(w.Ra,{rootInstance:{value:fa,enumerable:!0},transitionedToState:{value:w.Ra.zt,enumerable:!0}});
w.Ra.bc={};t("Router.defaults",w.Ra.bc,w);Object.defineProperties(w.Ra.bc,{urlAdapter:{get:function(){K||(K=new w.Ra.PN);return K},set:function(a){if(ha)throw Error("Incorrect operation. Cannot change URL adapter after calling sync() or go().");K=a},enumerable:!0,xE:!1},baseUrl:{get:function(){Q||(Q=a());return Q},set:function(a){if(ha)throw Error("Incorrect operation. Cannot change base URL after calling sync() or go().");Q=a.replace(/\/$/,"")},enumerable:!0,xE:!1},rootInstanceName:{get:function(){return fa.ce},
set:function(a){if(ha)throw Error("Incorrect operation. Cannot change the name of the root instance after calling sync() or go().");w.i.sm(a);fa.ce=encodeURIComponent(a.trim())},enumerable:!0,xE:!1}});w.Ra.$m=function(){var a;J();w.l.info("Entering sync.");if(ra)return a={Cc:fa,path:ra,iha:!0,replace:!0},ra=void 0,E(a);if(w.Ra.IC)return w.l.info("Sync called while updating, waiting for updates to end."),new Promise(function(a){w.Ra.zt.addOnce(function(b){w.l.info("Sync updates done.");a(b)})});a=
{Cc:fa,url:d(),origin:"sync"};return E(a)};t("Router.sync",w.Ra.$m,w);w.Ra.PN=function(){this.parse=function(a){var b=fa;a=a.split("/");var c=[],d;a.shift();do(d=a.shift())&&(0===d.length||/\.html$/i.test(d))&&(d=void 0),d=d||b.lk,c.push({value:d,Cc:b}),b=h(b,d);while(b);return c};this.sZ=function(a){var b="",c={};a.forEach(function(a){a.Hu&&(b+="/"+a.Hu);void 0!==a.Cc.$h&&(c[a.Cc.ce]=a.Cc.$h)});""===b&&(b="/"+U);try{b=m(b,c)}catch(d){w.l.error("Error while building URL: %s",d)}return b};this.Jx=
function(a){return a.split("?")[0]};this.C_=function(a){var c=a.indexOf("?"),d=null;-1!==c&&(d=a.substr(c+1));return b(d)}};t("Router.urlPathAdapter",w.Ra.PN,w);w.Ra.Vja=function(){this.parse=function(a){a=this.C_(a);var b=fa,c=[],d;do{if(d=a[b.ce])d=d[0],delete a[b.ce];d=d||b.lk;c.push({value:d,Cc:b});b=h(b,d)}while(b);return c};this.sZ=function(a){var b="/"+U,c={},d="?";a.forEach(function(a){a.Hu&&(b+=d+a.Cc.ce+"\x3d"+a.Hu,d="\x26");void 0!==a.Cc.$h&&(c[a.Cc.ce]=a.Cc.$h)});try{b=m(b,c)}catch(e){w.l.error("Error while building URL: %s",
e)}return b};this.Jx=function(a){var b=a.indexOf("oj_Router\x3d");return-1!==b?a.substr(0,b-1):a};this.C_=function(a){var c=a.indexOf("?"),d=null,d={};-1!==c&&(d=a.substr(c+1),d=b(d));return d}};t("Router.urlParamAdapter",w.Ra.Vja,w);return fa})();
w.Jr=function(a,b,c){b=b||{};w.i.sm(a);this.di=encodeURIComponent(a.trim());(this.Fv=b.canEnter)&&w.i.Gt(this.Fv);(this.Tv=b.enter)&&w.i.Gt(this.Tv);(this.Gv=b.canExit)&&w.i.Gt(this.Gv);(this.Uv=b.exit)&&w.i.Gt(this.Uv);this.aZ=b.value;this.yJ=b.label;this.wt=b.title;this.gC=c;this.ME=void 0;Object.defineProperties(this,{id:{value:this.di,enumerable:!0},value:{get:function(){return this.aZ},set:function(a){this.aZ=a},enumerable:!0},label:{get:function(){return this.yJ},set:function(a){this.yJ=a},
enumerable:!0},title:{get:function(){return this.wt},set:function(a){this.wt=a},enumerable:!0},canEnter:{get:function(){return this.Fv},set:function(a){this.Fv=a},enumerable:!0},enter:{get:function(){return this.Tv},set:function(a){this.Tv=a},enumerable:!0},canExit:{get:function(){return this.Gv},set:function(a){this.Gv=a},enumerable:!0},exit:{get:function(){return this.Uv},set:function(a){this.Uv=a},enumerable:!0}})};t("RouterState",w.Jr,w);
w.Jr.prototype.go=function(){return this.gC?this.gC.go(this.di):(w.Ra.zt.dispatch({hasChanged:!1}),Promise.reject(Error("Router is not defined for this RouterState object.")))};A("RouterState.prototype.go",{go:w.Jr.prototype.go});w.Jr.prototype.m0=function(){if(!this.gC)throw Error("Router is not defined for this RouterState object.");return this.gC.Ue()===this.di};A("RouterState.prototype.isCurrent",{m0:w.Jr.prototype.m0});
(function(){function a(a,b){if(null===a)return"";var c,d,e={},n={},p="",q=2,r=3,s=2,u="",v=0,y=0,z,B,C,F=a.length;for(C=0;C<F;C++)if(z=a[C],Object.prototype.hasOwnProperty.call(e,z)||(e[z]=r++,n[z]=!0),B=p+z,Object.prototype.hasOwnProperty.call(e,B))p=B;else{if(Object.prototype.hasOwnProperty.call(n,p)){if(256>p.charCodeAt(0)){for(c=s;c--;)v<<=1,5==y?(y=0,u+=b(v),v=0):y++;d=p.charCodeAt(0);c=8}else{d=1;for(c=s;c--;)v=v<<1|d,5==y?(y=0,u+=b(v),v=0):y++,d=0;d=p.charCodeAt(0);c=16}for(;c--;)v=v<<1|d&
1,5==y?(y=0,u+=b(v),v=0):y++,d>>=1;q--;0==q&&(q=Math.pow(2,s),s++);delete n[p]}else for(d=e[p],c=s;c--;)v=v<<1|d&1,5==y?(y=0,u+=b(v),v=0):y++,d>>=1;q--;0==q&&(q=Math.pow(2,s),s++);e[B]=r++;p=String(z)}if(""!==p){if(Object.prototype.hasOwnProperty.call(n,p)){if(256>p.charCodeAt(0)){for(c=s;c--;)v<<=1,5==y?(y=0,u+=b(v),v=0):y++;d=p.charCodeAt(0);c=8}else{d=1;for(c=s;c--;)v=v<<1|d,5==y?(y=0,u+=b(v),v=0):y++,d=0;d=p.charCodeAt(0);c=16}for(;c--;)v=v<<1|d&1,5==y?(y=0,u+=b(v),v=0):y++,d>>=1;q--;0==q&&(q=
Math.pow(2,s),s++);delete n[p]}else for(d=e[p],c=s;c--;)v=v<<1|d&1,5==y?(y=0,u+=b(v),v=0):y++,d>>=1;q--;0==q&&s++}d=2;for(c=s;c--;)v=v<<1|d&1,5==y?(y=0,u+=b(v),v=0):y++,d>>=1;for(;;)if(v<<=1,5==y){u+=b(v);break}else y++;return u}function b(a,b){for(var d=[],e=4,m=4,n=3,p="",q="",r,s,u,v,y,z={val:b(0),position:32,index:1},q=0;3>q;q+=1)d[q]=q;p=0;u=Math.pow(2,2);for(v=1;v!=u;)s=z.val&z.position,z.position>>=1,0==z.position&&(z.position=32,z.val=b(z.index++)),p|=(0<s?1:0)*v,v<<=1;switch(p){case 0:p=
0;u=Math.pow(2,8);for(v=1;v!=u;)s=z.val&z.position,z.position>>=1,0==z.position&&(z.position=32,z.val=b(z.index++)),p|=(0<s?1:0)*v,v<<=1;y=c(p);break;case 1:p=0;u=Math.pow(2,16);for(v=1;v!=u;)s=z.val&z.position,z.position>>=1,0==z.position&&(z.position=32,z.val=b(z.index++)),p|=(0<s?1:0)*v,v<<=1;y=c(p);break;case 2:return""}for(r=q=d[3]=y;;){if(z.index>a)return"";p=0;u=Math.pow(2,n);for(v=1;v!=u;)s=z.val&z.position,z.position>>=1,0==z.position&&(z.position=32,z.val=b(z.index++)),p|=(0<s?1:0)*v,v<<=
1;switch(y=p){case 0:p=0;u=Math.pow(2,8);for(v=1;v!=u;)s=z.val&z.position,z.position>>=1,0==z.position&&(z.position=32,z.val=b(z.index++)),p|=(0<s?1:0)*v,v<<=1;d[m++]=c(p);y=m-1;e--;break;case 1:p=0;u=Math.pow(2,16);for(v=1;v!=u;)s=z.val&z.position,z.position>>=1,0==z.position&&(z.position=32,z.val=b(z.index++)),p|=(0<s?1:0)*v,v<<=1;d[m++]=c(p);y=m-1;e--;break;case 2:return q}0==e&&(e=Math.pow(2,n),n++);if(d[y])p=d[y];else if(y===m)p=r+r[0];else return null;q+=p;d[m++]=r+p[0];e--;r=p;0==e&&(e=Math.pow(2,
n),n++)}}w.nO={$ga:function(b){return null===b?"":a(b,function(a){return d.charAt(a)})},gha:function(a){return null===a?"":""===a?null:b(a.length,function(b){var c=d;b=a.charAt(b);var l;e||(e={});if(!e[c])for(e[c]={},l=0;l<c.length;l++)e[c][c[l]]=l;return e[c][b]})}};var c=String.fromCharCode,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",e})();function vq(a,b){this.Init();this.fa=a;this.Jg=b;this.zr()}t("Cube",vq,w);H(vq,x,"oj.Cube");vq.prototype.Init=function(){vq.o.Init.call(this)};
vq.prototype.Am=function(){var a=this.pA[wq(this,this.PB)],b=[];Array.prototype.push.apply(b,a?a.Am():this.hf);for(a=2;a<this.hf.length;a++)b.push(this.hf[a]);return b};A("Cube.prototype.getAxes",{Am:vq.prototype.Am});vq.prototype.kI=function(){return this.hf};
vq.prototype.Dm=function(a){var b=this.pA[wq(this,this.PB)];var c=[];if(a)for(var d=Math.min(a.length,b.hf.length),e=0;e<d;e++){var f=a[e];f instanceof Object&&(f.hasOwnProperty("start")||f.hasOwnProperty("count"))?f.hasOwnProperty("start")?f.hasOwnProperty("count")?c.push(xq(b,f.start,f.count,e)):c.push(xq(b,f.start,1,e)):c.push(xq(b,0,f.count,e)):c.push(xq(b,f,1,e))}for(b=a=yq(b,c,0,[]);Array.isArray(b)&&1===b.length;)if(b=b[0],!Array.isArray(b))return b;return a};A("Cube.prototype.getValues",{Dm:vq.prototype.Dm});
vq.prototype.setPage=function(a){this.PB=a instanceof Array?a:[a]};vq.prototype.B1=function(a,b,c,d,e){var f=this.Jg,h=zq(this,a);if(!h)return!1;a=null;c<f.length?a=zq(this,c):(a={axis:c,levels:[]},f.push(a));c=h.levels;f=a.levels;a=b<c.length?c[b]:null;if(!a)return!1;d>=f.length?(f.push(a),c.splice(b,1)):e===Aq.SWAP?(c[b]=f[d],f[d]=a):(e===Aq.AFTER&&d++,f.splice(d,0,a),f===c&&d<b&&b++,c.splice(b,1));this.zr();return!0};A("Cube.prototype.pivot",{B1:vq.prototype.B1});
function zq(a,b){for(var c=0;c<a.Jg.length;c++)if(a.Jg[c].axis===b)return a.Jg[c];return null}vq.prototype.w_=function(){return this.Jg};A("Cube.prototype.getLayout",{w_:vq.prototype.w_});var Aq={BEFORE:"before",AFTER:"after",SWAP:"swap"};t("Cube.PivotType",Aq,w);function yq(a,b,c,d){var e=[];if(0===b.length)return c=d.slice(0),a.lf(c);var f=b.slice(1),h=b[0].start;b=b[0].count;for(d[c]=h;d[c]<h+b;d[c]++)e.push(yq(a,f,c+1,d));return e}
function xq(a,b,c,d){a=a.Am()[d].getExtent();if(b>=a||0>b)b=0;c=Math.min(c,a-b);return{start:b,index:b,count:c}}g=vq.prototype;g.lf=function(a){var b;b=this.Am();for(var c=new Bq,d=0;d<a.length;d++)c=Cq(b[d],a[d],c);if(b=c)if(b=Dq(b),0<b.length&&(b=this.b[b[0].key]))return new Eq(b.value,a,b.PC,b.rows,b.Vo);return new Eq(null,a,void 0,[])};g.kI=function(){for(var a=[],b=0;b<this.Jg.length;b++)2>this.Jg[b].axis&&a.push(this.Jg[b]);return a};
g.zr=function(){this.hf=[];this.b=[];this.pA=[];for(var a=[],b=0;b<this.Jg.length;b++)1<this.Jg[b].axis&&a.push(this.Jg[b]);this.PB=[];for(b=0;b<a.length;b++)this.Xl(a[b].axis,a[b].levels),this.PB.push({axis:a[b].axis,index:0});if(0===a.length)for(a=this.kI(),b=0;b<a.length;b++)this.Xl(a[b].axis,a[b].levels);if(null!==this.fa)for(a=0;a<this.fa.length;a++){for(var b=new Bq,c=2;c<this.hf.length;c++)var d=this.hf[c],b=d.ls.kp(d,0,d.wf,this.fa[a],b,!0);b=Dq(b);for(d=0;d<b.length;d++){var c=b[d].key,e=
this.pA[c];e||(e=this.pA[c]=this.YE(this.kI()));for(var f=new Bq,h=e.hf.length,c=0;c<h;c++)var k=e.hf[c],f=k.ls.kp(k,0,k.wf,this.fa[a],f,!0);c=f=Dq(f);if(void 0!==b[d].IZ)for(c=[],h=0;h<f.length;h++)c.push(b[d]);h=this.fa[a];for(k=0;k<f.length;k++)e.b[f[k].key]=Fq(e,c[k],e.b[f[k].key],h)}}};function wq(a,b){var c=new Bq;if(b&&0<b.length){b.sort(function(a,b){return a.axis-b.axis});for(var d=a.hf,e=0;e<b.length;e++)c=Cq(d[b[e].axis],b[e].index,c)}return Dq(c)[0].key}
function Gq(a){return a?void 0!==a.value&&null!==a.value:!1}function Hq(a,b,c,d,e){c.push(d);d={};for(var f in e)e.hasOwnProperty(f)&&(d[f]=e[f]);d.value=a;d.PC=b;d.rows=c;return d}function Iq(a){return w.Ca.ed(a.value)?!1:!isNaN(a.value)}
function Fq(a,b,c,d){var e=a.$E(b.IZ),f=e.Et,h=Gq(c),k=Gq(b),l=h&&Iq(c),m=k&&Iq(b);switch(f){case w.Qf.SUM:return h&&k?l&&m?Hq(c.value+b.value,f,c.rows,d,{}):Hq(NaN,f,c.rows,d,{}):k&&!h?m?Hq(b.value,f,[],d,{}):Hq(NaN,f,[],d,{}):c;case w.Qf.AVERAGE:return h&&k?l&&m?Hq((c.Iu+b.value)/(c.rows.length+1),f,c.rows,d,{Iu:c.Iu+b.value}):Hq(NaN,f,c.rows,d,{Iu:c.Iu}):k&&!h?m?Hq(b.value,f,[],d,{Iu:b.value}):Hq(NaN,f,[],d,{Iu:NaN}):c;case w.Qf.VARIANCE:case w.Qf.STDDEV:return h&&k?l&&m?(h=c.value+(b.value-c.value)/
(c.rows.length+1),Hq(h,f,c.rows,d,{Vo:c.Vo+(b.value-c.value)*(b.value-h)})):Hq(NaN,f,c.rows,d,{Vo:NaN}):k&&!h?m?Hq(b.value,f,[],d,{Vo:0}):Hq(NaN,f,[],d,{Vo:NaN}):c;case w.Qf.NONE:return Hq(null,f,h?c.rows:[],d,{});case w.Qf.FIRST:return h?Hq(c.value,f,c.rows,d,{}):k?Hq(b.value,f,[],d,{}):c;case w.Qf.MIN:return h&&k?l&&m?Hq(Math.min(c.value,b.value),f,c.rows,d,{}):Hq(NaN,f,c.rows,d,{}):k&&!h?m?Hq(b.value,f,[],d,{}):Hq(NaN,f,[],d,{}):c;case w.Qf.MAX:return h&&k?l&&m?Hq(Math.max(c.value,b.value),f,c.rows,
d,{}):Hq(NaN,f,c.rows,d,{}):k&&!h?m?Hq(b.value,f,[],d,{}):Hq(NaN,f,[],d,{}):c;case w.Qf.COUNT:return h&&k?Hq(c.value+1,f,c.rows,d,{}):k&&!h?Hq(1,f,[],d,{}):c;case w.Qf.CUSTOM:return b=e.Eb.call(a,h?c.value:void 0,k?b.value:void 0),Hq(b,f,h?c.rows:[],d,{})}}g.Xl=function(a,b){a>=this.hf.length&&Array.prototype.push.apply(this.hf,Array(a-this.hf.length+1));this.hf[a]||(this.hf[a]=new Jq(b,a,this));return this.hf[a]};g.kp=function(){w.i.Yb()};g.YE=function(){w.i.Yb()};g.ZE=function(){w.i.Yb()};
g.$E=function(){w.i.Yb();return{}};w.Qf={SUM:"sum",AVERAGE:"avg",STDDEV:"stddev",VARIANCE:"variance",NONE:"none",FIRST:"first",MIN:"min",MAX:"max",COUNT:"count",CUSTOM:"custom"};t("CubeAggType",w.Qf,w);function Kq(a,b,c,d){this.Init();this.zd=[];this.qq=d;this.W7=c;this.b={};this.b.value=a;this.b.label=b}t("CubeAxisValue",Kq,w);H(Kq,x,"oj.CubeAxisValue");Kq.prototype.Init=function(){Kq.o.Init.call(this)};Kq.prototype.Tq=function(){return this.W7};A("CubeAxisValue.prototype.getLevel",{Tq:Kq.prototype.Tq});
Kq.prototype.getDepth=function(){return 1};A("CubeAxisValue.prototype.getDepth",{getDepth:Kq.prototype.getDepth});Kq.prototype.A_=function(){for(var a=[],b=this.qq;b&&b.qq;)a.unshift(b),b=b.qq;return a};A("CubeAxisValue.prototype.getParents",{A_:Kq.prototype.A_});Kq.prototype.getChildren=function(){return this.zd};A("CubeAxisValue.prototype.getChildren",{getChildren:Kq.prototype.getChildren});
Kq.prototype.getExtent=function(){if(-1<this.us)return this.us;if(this.zd&&0!==this.zd.length)for(var a=this.us=0;a<this.getChildren().length;a++)this.us+=this.getChildren()[a].getExtent();else this.us=1;return this.us};A("CubeAxisValue.prototype.getExtent",{getExtent:Kq.prototype.getExtent});Kq.prototype.getStart=function(){if(-1<this.Og)return this.Og;if(!this.qq)return 0;for(var a=this.qq.getStart(),b=Lq(this.qq,this);b;)a+=b.getExtent(),b=Lq(this.qq,b);return this.Og=a};
A("CubeAxisValue.prototype.getStart",{getStart:Kq.prototype.getStart});Kq.prototype.Gc=function(){return this.b.value};A("CubeAxisValue.prototype.getValue",{Gc:Kq.prototype.Gc});Kq.prototype.lM=function(){return this.b.label?this.b.label:this.Gc()};A("CubeAxisValue.prototype.getLabel",{lM:Kq.prototype.lM});
function Mq(a,b){var c=a.zd&&0<a.zd.length?a.zd[0].Tq():null;if(null===c)return null;if(c.Zt()){a:{for(c=0;c<a.zd.length;c++){var d=a.zd[c].Gc();if(b.hasOwnProperty(d)&&b[d]===d){c=a.zd[c];break a}}c=null}return c}if(c=b[c.attribute])for(d=0;d<a.zd.length;d++)if(a.zd[d].Gc()===c)return a.zd[d];return null}function Nq(a,b,c,d){if(c>d)return null;var e=Math.floor((c+d)/2),f=a.zd[e],h=f.getStart();return h>b?Nq(a,b,c,e-1):h+f.getExtent()-1<b?Nq(a,b,e+1,d):f}
function Oq(a,b,c,d){for(var e=0;e<a.zd.length;e++)if(a.zd[e].Gc()===b)return a.zd[e];b=new Kq(b,c,d,a);a.zd.push(b);return b}function Lq(a,b){for(var c=0;c<a.zd.length;c++)if(a.zd[c]===b){if(0<c)return a.zd[c-1];break}return null}function Jq(a,b,c){this.Init();this.axis=b;this.OV=[];for(b=0;b<a.length;b++)this.OV.push(c.ZE(a[b],this));this.ls=c;this.wf=new Kq(null,null,null,null)}t("CubeAxis",Jq,w);H(Jq,x,"oj.CubeAxis");Jq.prototype.Init=function(){Jq.o.Init.call(this)};Jq.prototype.bl=function(){return this.OV};
A("CubeAxis.prototype.getLevels",{bl:Jq.prototype.bl});Jq.prototype.getExtent=function(){return this.wf.getExtent()};A("CubeAxis.prototype.getExtent",{getExtent:Jq.prototype.getExtent});Jq.prototype.Dm=function(a){for(var b=[],c=this.wf;c;)(c=Nq(c,a,0,c.zd.length-1))&&b.push(c);return b};A("CubeAxis.prototype.getValues",{Dm:Jq.prototype.Dm});Jq.prototype.Fh=function(a){a=a?JSON.parse(a):{};for(var b=this.wf,c=null;b;)c=b,b=Mq(b,a);return c?c.getStart():-1};A("CubeAxis.prototype.getIndex",{Fh:Jq.prototype.Fh});
function Cq(a,b,c){return Pq(a,b,a.bl().length-1,c)}function Pq(a,b,c,d){b=a.Dm(b);a=a.bl()[c];for(c=0;c<b.length;c++){var e=b[c];e.Tq().Zt()?Qq(d,e.Gc()):d.Cw.push(e);if(e.Tq()===a)break}return d}function Eq(a,b,c,d,e){this.Init();this.b={};this.b.value=a;this.b.uia=b;this.b.PC=c;this.b.rows=d;this.b.Vo=e}t("CubeDataValue",Eq,w);H(Eq,x,"oj.CubeDataValue");Eq.prototype.Init=function(){Eq.o.Init.call(this)};
Eq.prototype.Gc=function(){switch(this.b.PC){case w.Qf.STDDEV:return Math.sqrt(Rq(this));case w.Qf.VARIANCE:return Rq(this);default:return this.b.value}};A("CubeDataValue.prototype.getValue",{Gc:Eq.prototype.Gc});Eq.prototype.v_=function(){return this.b.uia};A("CubeDataValue.prototype.getIndices",{v_:Eq.prototype.v_});Eq.prototype.F_=function(){return this.b.rows};A("CubeDataValue.prototype.getRows",{F_:Eq.prototype.F_});Eq.prototype.b_=function(){return this.b.PC};
A("CubeDataValue.prototype.getAggregation",{b_:Eq.prototype.b_});function Rq(a){if(isNaN(a.b.Vo))return NaN;var b=a.b.rows.length;return 1<b?a.b.Vo/(b-1):0}
function Sq(a,b){var c=b.row?b.row.start:0,d=b.row?b.row.count:0,e=b.column?b.column.start:0,f=b.column?b.column.count:0;w.i.rm(c,null);w.i.rm(d,null);w.i.rm(e,null);w.i.rm(f,null);this.ls=a;this.LK={row:c,column:e};this.wf=this.ls.Dm([{start:e,count:f},{start:c,count:d}]);f=(c=Array.isArray(this.wf))?this.wf.length:1;0<f&&(d=c?this.wf[0].length:1);this.i7={row:d,column:f}}t("CubeCellSet",Sq,w);
Sq.prototype.getData=function(a){var b=a.row;a=a.column;return(b=Array.isArray(this.wf)?this.wf[a-this.LK.column][b-this.LK.row]:this.wf)?b.Gc():null};A("CubeCellSet.prototype.getData",{getData:Sq.prototype.getData});Sq.prototype.getMetadata=function(a){var b={keys:{}};b.keys.row=Tq(this,a,"row",2);b.keys.column=Tq(this,a,"column",1);return b};A("CubeCellSet.prototype.getMetadata",{getMetadata:Sq.prototype.getMetadata});
function Tq(a,b,c,d){a=a.ls.Am();return void 0!==b[c]&&a.length>=d?(d=new Bq,d=Cq(a["row"===c?1:0],b[c],d),Dq(d)[0].key):null}Sq.prototype.getStart=function(a){return this.LK[a]};A("CubeCellSet.prototype.getStart",{getStart:Sq.prototype.getStart});Sq.prototype.getCount=function(a){return this.i7[a]};A("CubeCellSet.prototype.getCount",{getCount:Sq.prototype.getCount});function Uq(a,b,c){this.Init();this.An=c;this.xG();Uq.o.constructor.call(this,a,b)}t("DataValueAttributeCube",Uq,w);H(Uq,vq,"oj.DataValueAttributeCube");
Uq.prototype.fa=null;Uq.prototype.Init=function(){Uq.o.Init.call(this)};g=Uq.prototype;g.zr=function(){Uq.o.zr.call(this)};g.$E=function(a){return this.ps[a]};g.ZE=function(a,b){return a.dataValue?new Vq(null,b,!0):new Vq(a.attribute,b,!1)};g.YE=function(a){return new Uq(null,a,this.An)};
g.kp=function(a,b,c,d,e,f){if(b>=a.bl().length)return e;var h=a.bl()[b];if(h.Zt()){f=!0;for(h=0;h<this.An.length;h++){var k=this.An[h].attribute,l=this.An[h].label;d.hasOwnProperty(k)&&(l=Oq(c,k,l,a.bl()[b]),Qq(e,k,d[k]),this.kp(a,b+1,l,d,e,f),f=!1)}return e}c=Oq(c,d[h.attribute],null,h);f&&e.Cw.push(c);return this.kp(a,b+1,c,d,e,f)};g.xG=function(){this.ps=[];for(var a=0;a<this.An.length;a++){var b=this.An[a];this.ps[b.attribute]=b.aggregation?{Et:b.aggregation,Eb:b.callback}:{Et:w.Qf.SUM,Eb:b.callback}}};
function Bq(){this.Cw=[];this.b=[]}function Qq(a,b,c){a.b.push({name:b,value:c})}function Dq(a){for(var b=[],c={},d=0;d<a.Cw.length;d++){var e;e=a.Cw[d];var f={};f[e.Tq().attribute]=e.Gc();e=f;for(var h in e)e.hasOwnProperty(h)&&(c[h]=e[h])}if(0===a.b.length)b.push({key:JSON.stringify(c)});else for(d=0;d<a.b.length;d++)h=$.extend(!0,{},c),h[a.b[d].name]=a.b[d].name,b.push({key:JSON.stringify(h),IZ:a.b[d].name,value:a.b[d].value});return b}
function Wq(a,b,c,d){this.ls=b;this.Bv=a;this.Og=void 0===c?0:c;this.g7=void 0===d?this.Bv.getExtent():Math.min(d,this.Bv.getExtent()-c);this.ES=c+d-1}t("CubeHeaderSet",Wq,w);Wq.prototype.getData=function(a,b){var c=this.lf(a,b);return c?c.lM():null};A("CubeHeaderSet.prototype.getData",{getData:Wq.prototype.getData});Wq.prototype.getMetadata=function(a,b){var c=new Bq,c=Pq(this.Bv,a,b,c);return(c=Dq(c))&&0<c.length?{key:c[0].key}:null};A("CubeHeaderSet.prototype.getMetadata",{getMetadata:Wq.prototype.getMetadata});
Wq.prototype.getLevelCount=function(){return this.Bv.bl().length};A("CubeHeaderSet.prototype.getLevelCount",{getLevelCount:Wq.prototype.getLevelCount});Wq.prototype.getExtent=function(a,b){var c=this.lf(a,b),d=c.getExtent(),c=c.getStart(),e=c+d-1,f=a<c+d-1;c<this.Og&&(d-=this.Og-c);e>this.ES&&(d-=e-this.ES);return{extent:d,more:{before:a>c,after:f}}};A("CubeHeaderSet.prototype.getExtent",{getExtent:Wq.prototype.getExtent});Wq.prototype.getDepth=function(a,b){return this.lf(a,b).getDepth()};
A("CubeHeaderSet.prototype.getDepth",{getDepth:Wq.prototype.getDepth});Wq.prototype.getCount=function(){return this.g7};A("CubeHeaderSet.prototype.getCount",{getCount:Wq.prototype.getCount});Wq.prototype.getStart=function(){return this.Og};A("CubeHeaderSet.prototype.getStart",{getStart:Wq.prototype.getStart});Wq.prototype.lf=function(a,b){void 0===b&&(b=0);var c=this.Bv.Dm(a);return c&&c.length>b?c[b]:null};function Xq(a){Xq.o.constructor.call(this,a)}t("CubeDataGridDataSource",Xq,w);H(Xq,Uf,"oj.CubeDataGridDataSource");
Xq.prototype.T1=function(a){this.data=a;Yq(this)};A("CubeDataGridDataSource.prototype.setCube",{T1:Xq.prototype.T1});Xq.prototype.setPage=function(a){this.data.setPage(a);Yq(this)};A("CubeDataGridDataSource.prototype.setPage",{setPage:Xq.prototype.setPage});function Yq(a){a.handleEvent("change",{source:a,operation:"refresh"})}Xq.prototype.getCount=function(a){return(a=this.Xl(a))?a.getExtent():0};A("CubeDataGridDataSource.prototype.getCount",{getCount:Xq.prototype.getCount});
Xq.prototype.getCountPrecision=function(){return"exact"};A("CubeDataGridDataSource.prototype.getCountPrecision",{getCountPrecision:Xq.prototype.getCountPrecision});Xq.prototype.fetchHeaders=function(a,b,c){var d=new Wq(this.Xl(a.axis),this.data,a.start,a.count);b.success.call(c?c.success:void 0,d,a)};A("CubeDataGridDataSource.prototype.fetchHeaders",{fetchHeaders:Xq.prototype.fetchHeaders});
Xq.prototype.fetchCells=function(a,b,c){for(var d={},e=0;e<a.length;e++){var f=void 0===a[e].start?0:a[e].start;if("row"===a[e].axis){var h=void 0===a[e].count?this.data.Am()[1].getExtent():a[e].count;d.row={start:f,count:h}}"column"===a[e].axis&&(h=void 0===a[e].count?this.data.Am()[0].getExtent():a[e].count,d.column={start:f,count:h})}d=new Sq(this.data,d);b.success.call(c?c.success:void 0,d,a)};A("CubeDataGridDataSource.prototype.fetchCells",{fetchCells:Xq.prototype.fetchCells});
Xq.prototype.keys=function(a){var b={},b=this.Vb(a,"row",b),b=this.Vb(a,"column",b);return Promise.resolve(b)};A("CubeDataGridDataSource.prototype.keys",{keys:Xq.prototype.keys});Xq.prototype.Vb=function(a,b,c){var d=this.Xl(b);a=a[b];var e=new Bq,e=d?Cq(d,a,e):"";c[b]=Dq(e)[0].key;return c};Xq.prototype.indexes=function(a){var b={},b=this.Dg(a,"row",b),b=this.Dg(a,"column",b);return Promise.resolve(b)};A("CubeDataGridDataSource.prototype.indexes",{indexes:Xq.prototype.indexes});
Xq.prototype.Dg=function(a,b,c){c[b]=this.Xl(b).Fh(a[b]);return c};Xq.prototype.sort=function(){w.i.Yb()};A("CubeDataGridDataSource.prototype.sort",{sort:Xq.prototype.sort});Xq.prototype.move=function(){w.i.Yb()};A("CubeDataGridDataSource.prototype.move",{move:Xq.prototype.move});Xq.prototype.moveOK=function(){return"invalid"};A("CubeDataGridDataSource.prototype.moveOK",{moveOK:Xq.prototype.moveOK});Xq.prototype.getCapability=function(a){switch(a){case "sort":return"none";case "move":return"none"}return null};
A("CubeDataGridDataSource.prototype.getCapability",{getCapability:Xq.prototype.getCapability});Xq.prototype.Xl=function(a){a="row"===a?1:0;var b=this.data.Am();return b.length>a?b[a]:null};function Zq(a,b,c){this.Init();this.An=c;this.wga=c.valueAttr;this.Xba=c.labelAttr;var d=c.defaultAggregation;this.dS=d?w.Ca.ed(d)?{Et:d}:{Et:d.aggregation,Eb:d.callback}:{Et:w.Qf.SUM};this.mG=c.aggregation;this.xG();Zq.o.constructor.call(this,a,b)}t("DataColumnCube",Zq,w);H(Zq,vq,"oj.DataColumnCube");
Zq.prototype.Init=function(){Zq.o.Init.call(this)};g=Zq.prototype;g.zr=function(){Zq.o.zr.call(this)};g.$E=function(a){return this.ps[a]?this.ps[a]:this.dS};g.YE=function(a){return new Zq(null,a,this.An)};g.ZE=function(a,b){return a.attribute===this.Xba?new Vq(a.attribute,b,!0):new Vq(a.attribute,b,!1)};g.kp=function(a,b,c,d,e,f){if(b>=a.bl().length)return e;var h=a.bl()[b],k=d[h.attribute];c=Oq(c,k,null,h);h.Zt()?Qq(e,k,d[this.wga]):e.Cw.push(c);return this.kp(a,b+1,c,d,e,f)};
g.xG=function(){this.ps=[];if(this.mG)for(var a=0;a<this.mG.length;a++){var b=this.mG[a],c=b.aggregation;this.ps[b.value]=c?{Et:c,Eb:b.callback}:this.dS}};function Vq(a,b,c){this.Init();this.attribute=a;this.NQ=b;this.axis=b.axis;this.cS=c}t("CubeLevel",Vq,w);H(Vq,x,"oj.CubeLevel");Vq.prototype.Init=function(){Vq.o.Init.call(this)};Vq.prototype.Gc=function(a){if(a=this.NQ.Dm(a))for(var b=0;b<a.length;b++)if(a[b].Tq()===this)return a[b];return null};A("CubeLevel.prototype.getValue",{Gc:Vq.prototype.Gc});
Vq.prototype.Zt=function(){return this.cS};A("CubeLevel.prototype.isDataValue",{Zt:Vq.prototype.Zt});Vq.prototype.cS=!1;Vq.prototype.NQ=null;function $q(a,b,c){this.J=b;this.p=a;this.ec=!1;this.U1(c);this.Init()}H($q,x,"oj.DataSourceContentHandler");$q.prototype.Init=function(){$q.o.Init.call(this)};A("DataSourceContentHandler.prototype.Init",{Init:$q.prototype.Init});g=$q.prototype;g.Fr=function(){};g.uu=function(){};g.Me=function(){$(this.J).empty();this.J=this.p=null};g.Hr=function(){return!this.ec};
g.DN=function(){this.Gl()?this.J.setAttribute("role","tree"):this.J.setAttribute("role","listbox")};g.vO=function(){this.Ya();this.$k(!1);this.DN();this.Ua()};g.qe=function(a){return a.key};g.jd=function(a){var b,c,d;b=$(this.J).find("."+this.p.Ge());for(c=0;c<b.length;c++)if(d=b[c],a==this.qe(d))return d;return null};g.k_=function(){return this.ua};g.U1=function(a){this.ua=a};g.$k=function(){this.p.Eu()};
function ar(a,b,c,d,e,f){var h,k;h=document.createElement("li");$(h).uniqueId();k=$(b).children("."+a.p.Ge()+", .oj-listview-no-data-message");b.insertBefore(h,c===k.length?null:k[c]);k=$(b).children().index(h);br(a,h,k,b,c,d,e,f)}
function br(a,b,c,d,e,f,h,k){void 0==k&&(k=a.Kq.bind(a));e=a.JL(e,f,h,b);h=a.p.v9();null!=h?(a=h.call(a,e),null!=a&&(null===a.parentNode||a.parentNode instanceof DocumentFragment?b.appendChild(a):null==a.parentNode&&a.toString&&(h=document.createElement("span"),h.appendChild(document.createTextNode(a.toString())),b.appendChild(h)))):(h=document.createElement("span"),h.appendChild(document.createTextNode(null==f?"":f.toString())),b.appendChild(h));b=d.children[c];e.parentElement=b;$.data(b,"data",
f);k(b,e)}g.Kq=function(a,b){var c;a.key=b.key;a=$(a);a.uniqueId();c=this.p.qD(a);c.attr("role",this.Gl()?"treeitem":"option");c!=a&&a.attr("role","presentation");c.addClass(this.p.al());this.au(b)||a.addClass("oj-skipfocus");a.addClass(this.p.Ge())};g.JL=function(a,b,c,d){var e,f;e={};e.parentElement=d;e.index=a;e.data=b;e.component=this.p.Pb();e.datasource=this.ua;for(f in c)c.hasOwnProperty(f)&&(e[f]=c[f]);return e};g.au=function(a){return this.p.lw("focusable",a,!0)};
g.HD=function(a){return this.p.lw("selectable",a,!0)};g.Ya=function(){this.p&&this.p.Ya()};g.Ua=function(){this.p&&this.p.Ua()};function cr(a,b,c){cr.o.constructor.call(this,a,b,c)}H(cr,$q,"oj.TableDataSourceContentHandler");cr.prototype.Init=function(){cr.o.Init.call(this)};g=cr.prototype;g.Gl=function(){return!1};g.Me=function(){cr.o.Me.call(this);this.ex();null!=this.gu&&(this.gu.destroy(),this.VM=this.gu=null);this.vy=null};
g.Fr=function(a,b){this.pf()&&void 0!=this.Eo&&this.Eo!=b&&(this.Eo=b,this.checkViewport())};g.uu=function(){this.pf()&&this.checkViewport()};g.pf=function(){return"loadMoreOnScroll"==this.p.options.scrollPolicy?!0:!1};g.qk=function(){return Math.max(0,this.p.options.scrollPolicyOptions.fetchSize)};g.wk=function(){var a=this.p.options.scrollPolicyOptions.scroller;if(null!=a&&$.contains(a,this.J)){for(var b=0,c=this.J;c&&c!=a&&$.contains(a,c);)b+=c.offsetTop,c=c.offsetParent;this.Mp=b;return a}return this.p.Sg()};
function dr(a){return a.p.options.scrollPolicyOptions.maxCount}
g.U1=function(a){var b;this.ex();if(null!=a){this.pf()&&(b=this,this.VM=function(a){null!=a?(b.Ya(),er(b),b.Hr()&&b.Ya(),fr(b,a),a.maxCountLimit?b.XI():gr(b),b.Ua(),b.Ua()):void 0===a&&(er(b),b.Ua())},this.gu=new So(this.wk(),a,{fetchSize:this.qk(),fetchTrigger:this.Mp,maxCount:dr(this),success:this.VM,error:this.Ua}),this.gu.YI=function(a,d){1>=d-a&&b.Ya();So.prototype.YI.call(this,a,d)});this.N0=this.lia.bind(this);this.M0=this.kia.bind(this);this.I0=this.gia.bind(this);this.L0=this.iia.bind(this);
this.J0=this.hia.bind(this);this.XD=this.jia.bind(this);if(Z&&a instanceof Z)a.on("sync",this.N0);a.on("sort",this.M0);a.on("add",this.I0);a.on("remove",this.L0);a.on("change",this.J0);a.on("reset",this.XD);a.on("refresh",this.XD)}this.ua=a};function gr(a){var b,c;null==a.vy&&(b=$(document.createElement("li")),b.uniqueId().attr("role","presentation").addClass(a.p.fg()),c=$(document.createElement("div")),c.addClass("oj-listview-loading-icon"),b.append(c),$(a.J).append(b),a.vy=b)}
function er(a){null!=a.vy&&a.vy.remove();a.vy=null}g.Kq=function(a,b){var c;cr.o.Kq.call(this,a,b);$(a).addClass(this.p.fg());this.p.tb()&&this.HD(b)&&this.p.ie($(a)).attr("aria-selected",!1);this.pf()&&(c=Math.min(this.ua.totalSize(),dr(this)),-1===c&&(c=dr(this)),0<c&&$(a).attr("aria-setsize",c).attr("aria-posinset",b.index+1));this.p.Wq(a,b)};
g.Ega=function(a,b){var c,d;this.Ya();this.Kq(a,b);c=$(a);c.outerHeight();d=this.p.fg();c.children().wrapAll("\x3cdiv\x3e\x3c/div\x3e");c.removeClass(d).addClass("oj-listview-item-add-remove-transition");c.children().first().addClass(d);this.Ya();c=this.p.Rq("add");var e=this;w.D.Ii(a,"add",c).then(function(){$(a).removeClass("oj-listview-item-add-remove-transition").addClass(e.p.fg()).children().children().unwrap();e.p.s0(a,b);e.Ua()});this.Ua()};g.XI=function(){w.l.error("max count reached")};
g.ex=function(){null!=this.ua&&(this.ua.off("sync",this.N0),this.ua.off("sort",this.M0),this.ua.off("add",this.I0),this.ua.off("remove",this.L0),this.ua.off("change",this.J0),this.ua.off("reset",this.XD),this.ua.off("refresh",this.XD))};
g.$k=function(a){var b=!0,c;this.Ya();if(this.Hr()&&(this.ec=!0,cr.o.$k.call(this,a),Z&&this.ua instanceof Z&&(b=!1,this.Ya()),b||a)){b&&this.Ya();a={fetchType:"init",startIndex:0};this.pf()&&(a.pageSize=this.qk());c=this;a=this.ua.fetch(a);a.then(function(a){null!=c.p&&b&&($(c.J).empty(),fr(c,a),c.pf()&&null!=a&&a.keys&&0<a.keys.length&&(-1==c.ua.totalSize()||c.ua.totalSize()>a.keys.length)&&(gr(c),c.p.GE()))},function(a){c.dm(a);c.Ua()});this.Ua();return}this.Ua()};
g.dm=function(a){w.l.error(a);this.pf()&&er(this);this.p.So()};g.Nn=function(a,b){var c,d,e;c=this.J.childElementCount;for(d=0;d<a.length;d++)e=a[d],ar(this,this.J,c,e,this.getMetadata(c,b[d],e)),c+=1};
g.gia=function(a){var b,c,d;if(null!=this.J){this.Ya();b=a.data;c=a.keys;a=a.indexes;if(null!=b&&null!=c&&0<c.length&&0<b.length&&c.length==b.length&&null!=a&&c.length==a.length){for(d=0;d<b.length;d++)this.Ya(),ar(this,this.J,a[d],b[d],this.getMetadata(a[d],c[d],b[d]),this.Ega.bind(this)),this.Ua();this.Hr()&&this.Ya();hr(this)}this.Ua()}};
g.iia=function(a){var b,c;a=a.keys;if(null!=this.J&&null!=a&&0!=a.length){this.Ya();for(b=0;b<a.length;b++)c=this.jd(a[b]),null!=c&&(this.Ya(),ir(this,c),this.Ua());this.p.Br();this.Ua()}};
function ir(a,b){var c,d;a.Ya();c=a.p.fg();b=$(b);b.children().wrapAll("\x3cdiv class\x3d'"+c+"'\x3e\x3c/div\x3e");b.removeClass(c).addClass("oj-listview-item-add-remove-transition");a.Ya();c=a.p.Rq("remove");d=b.get(0);w.D.Ii(d,"remove",c).then(function(){var c=b,c=$(c),d=c.parent();a.p.GM(c.get(0));c.remove();0==d.get(0).childElementCount&&a.p.So();a.Ua()});a.Ua()}
g.hia=function(a){var b,c,d,e;b=a.keys;if(null!=this.J&&null!=b&&0!=b.length){this.Ya();c=a.data;a=a.indexes;for(d=0;d<b.length;d++)if(e=this.jd(b[d]),null!=e){this.Ya();var f=a[d],h=c[d],k=this.getMetadata(a[d],b[d],c[d]),l=this.Dga.bind(this),m=void 0,n=void 0;this.Ya();$(e).empty();m=e.parentNode;n=$(m).children().index(e);br(this,e,n,m,f,h,k,l);this.Ua()}this.p.Br();this.Ua()}};
g.Dga=function(a,b){var c=this,d;this.Ya();this.Kq(a,b);d=this.p.Rq("update");w.D.Ii(a,"update",d).then(function(){$(a).removeClass("oj-listview-item-add-remove-transition");c.p.rja();c.Ua()});this.Ua()};g.jia=function(){null!=this.J&&(this.Ya(),this.p.Br(),this.$k(!0),this.Ua())};function fr(a,b){var c,d;null!=a.J&&(c=b.data,d=b.keys,Array.isArray(c)&&Array.isArray(d)&&c.length==d.length&&(a.Nn(c,d),hr(a)))}
g.lia=function(a){null!=this.J&&(this.Ya(),0===a.startIndex&&$(this.J).empty(),this.p.Br(),fr(this,a),this.Ua())};g.kia=function(){null!=this.J&&(this.Ya(),this.p.Br(),this.p.rj()&&this.p.ph(!0),this.$k(!0),this.Ua())};function hr(a){a.ec=!1;a.p.So();a.checkViewport();a.Ua()}cr.prototype.checkViewport=function(){var a=this,b;this.Ya();null!=this.gu&&0<this.ua.totalSize()&&this.Hr()&&(b=this.gu.checkViewport(),null!=b&&(this.Ya(),b.then(function(b){a.VM(b);a.Ua()},null)));this.Ua()};
cr.prototype.getMetadata=function(a,b,c){c=c.context;null==c&&(c={});null==c.index&&(c.index=a);null==c.key&&(c.key=b);return c};function jr(a,b,c){jr.o.constructor.call(this,a,b,c)}H(jr,$q,"oj.TreeDataSourceContentHandler");jr.prototype.Init=function(){jr.o.Init.call(this)};g=jr.prototype;g.Gl=function(){return!0};g.$k=function(a){this.Ya();jr.o.$k.call(this,a);this.fetchChildren(0,null,this.J,null);this.Ua()};
g.fetchChildren=function(a,b,c,d){this.Ya();this.ec=!0;a={start:a,count:this.ua.getChildCount(b)};this.ua.fetchChildren(b,a,{success:function(a){this.Nn(a,b,c,d)}.bind(this),error:function(a){this.dm(a)}.bind(this)});this.Ua()};g.Nn=function(a,b,c,d){var e,f,h,k;this.Ya();b=a.getStart();e=a.getCount();for(f=0;f<e;f++)h=a.getData(b+f),k=a.getMetadata(b+f),ar(this,c,b+f,h,k);this.ec=!1;null!=d&&d.call(null,c);this.p.So();this.If=!0;this.Ua()};
g.Kq=function(a,b){var c,d,e,f,h,k;this.Ya();jr.o.Kq.call(this,a,b);c=this.p.Ef();d=this.p.fg();e=this.p.Rd();f=this.p.Sq();k=this.p.Fj();h=this.p.al();a=$(a);!1==b.leaf?(a.children().wrapAll("\x3cdiv\x3e\x3c/div\x3e"),a.hasClass(h)?a.removeClass(h).children().first().addClass(h).attr("aria-expanded","false"):a.children().first().attr("role","presentation").find("."+h).attr("aria-expanded","false"),d=a.children().first(),d.uniqueId().addClass(e),this.p.$t()&&(a.addClass("oj-collapsed"),e=document.createElement("a"),
$(e).attr("href","#").attr("aria-labelledby",d.get(0).id).addClass("oj-component-icon oj-clickable-icon-nocontext").addClass(k),d.prepend(e)),k=document.createElement("ul"),$(k).addClass(c).addClass(f).attr("role","group"),a.append(k)):!0==b.leaf&&a.addClass(d);this.p.tb()&&this.HD(b)&&this.p.ie(a).attr("aria-selected",!1);this.p.Wq(a[0],b);this.Ua()};g.dm=function(a){this.Ya();w.l.error(a);this.p.So();this.Ua()};
g.Er=function(a,b){var c,d;this.Ya();c=this.qe(a[0]);d=a.children("ul")[0];this.fetchChildren(0,c,d,b);this.Ua()};g.Cr=function(a){a.empty()};function kr(a,b){this.p=a;this.J=b}H(kr,x,"oj.StaticContentHandler");kr.prototype.Init=function(){kr.o.Init.call(this)};g=kr.prototype;g.Me=function(){lr(this,this.J,0);this.J.removeAttribute("role")};g.Hr=function(){return!0};g.Fr=function(){};g.uu=function(){};g.vO=function(){mr(this,this.J,0);this.DN();this.p.So()};
g.Er=function(a,b){var c;c="."+this.p.Ef();c=$(a).children(c)[0];$(c).css("display","block");b.call(null,c)};g.Cr=function(){};g.Gl=function(){null==this.$M&&(this.$M=0<$(this.J).children("li").children("ul").length);return this.$M};
function lr(a,b,c){var d,e,f,h,k,l,m,n,p;d=a.p.Ef();e=a.p.Sq();f=a.p.Pt();h=a.p.Rd();k=a.p.fg();l=a.p.Ge();b=b.children;for(m=0;m<b.length;m++){n=b[m];p=a;var q=p.p.qD($(n));q.removeAttr("role");q.removeAttr("aria-selected");q.removeAttr("aria-expanded");q.removeClass(p.p.al());n=$(n);n.removeClass(l).removeClass(k).removeClass(a.p.hM(c)).removeClass("oj-skipfocus").removeClass("oj-focus").removeClass("oj-hover").removeClass("oj-expanded").removeClass("oj-collapsed").removeClass("oj-selected");p=
n.children("ul");0<p.length&&(n.children("."+h).children().unwrap(),n.children(".oj-component-icon").remove(),n=$(p[0]),n.removeClass(d).removeClass(f).removeClass(e).removeAttr("role"),lr(a,n[0],c+1))}}
function mr(a,b,c){var d,e,f,h,k,l,m,n,p,q,r,s,u,v;d=a.p.fg();e=a.p.Ge();f=a.p.Ef();h=a.p.Rd();k=a.p.Sq();l=a.p.Fj();m=a.p.al();b=b.children;n=a.p.$t();for(p=0;p<b.length;p++)q=$(b[p]),r=a.JL(q),s=a,u=q,v=s.p.qD(u),v.attr("role",s.Gl()?"treeitem":"option"),v!=u&&u.attr("role","presentation"),v.addClass(s.p.al()),q.uniqueId().addClass(e),0<c&&q.addClass(a.p.hM(c)),a.au(r)||q.addClass("oj-skipfocus"),s=q.children("ul"),0<s.length?(a.$M=!0,q.children(":not(ul)").wrapAll("\x3cdiv\x3e\x3c/div\x3e"),u=
q.children().first(),u.addClass(h),0<$(s[0]).children("li").length&&(q.hasClass(m)?(q.removeClass(m),u.addClass(m).attr("aria-expanded","false")):(u.attr("role","presentation"),u.find("."+m).attr("aria-expanded","false")),n&&(q.addClass("oj-collapsed"),u.uniqueId(),v=document.createElement("a"),$(v).attr("href","#").attr("role","button").attr("aria-labelledby",u.get(0).id).addClass("oj-component-icon oj-clickable-icon-nocontext").addClass(l),u.prepend(v))),s=$(s[0]),s.addClass(f).addClass(k).attr("role",
"group").css("display","none"),mr(a,s[0],c+1)):q.addClass(d),a.p.tb()&&a.HD(r)&&a.p.ie(q).attr("aria-selected",!1),a.p.Wq(q[0],r)}g.DN=function(){this.Gl()?this.J.setAttribute("role","tree"):this.J.setAttribute("role","listbox")};
g.JL=function(a){var b;b={};b.key=a.attr("id");b.parentElement=a.children().first()[0];b.index=a.index();b.data=a[0];b.component=this.p.Pb();this.Gl()&&(b.leaf=0==a.children("ul").length,a=a.parents("li."+this.p.Ge()),b.depth=a.length,b.parentKey=0==a.length?null:a.first().attr("id"));return b};g.qe=function(a){return $(a).attr("id")};g.jd=function(a){return document.getElementById(a)};g.au=function(a){return this.p.lw("focusable",a,!0)};g.HD=function(a){return this.p.lw("selectable",a,!0)};
w.PJ=function(a,b){function c(){}H(c,a,"");c.prototype=$.extend(c.prototype,b);return c}(Object,{te:37,Oe:39,Rh:40,Sh:38,lz:9,VE:13,WE:27,XE:113,kF:32,Oi:0,Ni:1,wO:2,aka:0,ep:1,Gm:function(a){var b=this,c;this.Ro=[];this.Ya();this.A=a.A;this.element=a.element;this.Kc=a.Kc;this.options=a;this.element.uniqueId().addClass(this.aF()+" oj-component-initnode");this.kz();"undefined"!=typeof nr&&(this.Gf=c=new nr(this),this.A._on(this.element,{dragstart:function(a){return c.NI(a)},dragenter:function(a){return c.JI(a)},
dragover:function(a){return c.MI(a)},dragleave:function(a){return c.KI(a)},dragend:function(a){return c.II(a)},drag:function(a){return c.pj("drag","drag",a)},drop:function(a){return c.OI(a)}}));this.A._on(this.element,{click:function(a){b.bF(a)},touchstart:function(a){b.ez(a)},touchend:function(a){b.Pu(a)},touchcancel:function(a){b.Pu(a)},mousedown:function(a){0===a.button?b.Zw()||b.ez(a):b.Ay=!0},mouseup:function(a){b.yU(a);b.Ay=!1},mouseout:function(a){b.wU(a)},mouseover:function(a){b.yaa(a)},keydown:function(a){b.dz(a)},
ojpanmove:function(a){b.yU(a)}});this.A._on(this.A.element,{focus:function(a){b.Fl(a)},blur:function(a){b.El(a)}});"firefox"===w.Ic.zm().browser&&this.$d().attr("tabIndex",-1);this.ep===this.ep?this.A._on(this.A.element,{focusin:function(a){b.Fl(a)},focusout:function(a){b.T2(a)}}):this.A._on(this.element,{focus:function(a){b.Fl(a)},blur:function(a){b.El(a)}});this.A.document.bind("touchend.ojlistview touchcancel.ojlistview",this.Pu.bind(this));this.fX();this.A._focusable({applyHighlight:!0,recentPointer:b.uO(),
setupHandlers:function(a,c){b.ys=a;b.Np=c}})},Dt:function(){var a;this.w6();this.pn();this.YU();a=this.$d();this.wj(a[0]);this.Ua()},refresh:function(){this.sX();this.Ya();this.jz();this.pn();this.YU();this.fX();this.Ua()},whenReady:function(){return this.K1},destroy:function(){this.element.removeClass(this.aF()+" oj-component-initnode");this.Qk(this.$d());this.sX();w.q.unwrap(this.element,this.$d());this.A.document.off(".ojlistview")},sX:function(){var a=this;this.HO();this.J6(this.element);null!=
this.Gd&&(this.Gd.Me(),delete this.Gd,this.Gd=null);this.Do=this.t=null;this.Ro=[];this.K1=new Promise(function(b){a.L1=b});this.Br()},Uia:function(){this.GE()},r1:function(){this.$d().removeClass("oj-focus-ancestor");null!=this.t&&$(this.t.elem).removeClass("oj-focus oj-focus-highlight");null!=this.aN&&this.om(this.aN,"oj-hover")},uu:function(){this.GE();null!=this.Gd&&this.Gd.uu()},getNodeBySubId:function(a){var b;if(null==a)return this.element?this.element[0]:null;b=a.subId;if("oj-listview-disclosure"===
b||"oj-listview-icon"===b)if(a=a.key,a=this.jd(a),null!=a&&a.firstElementChild&&(a=a.firstElementChild.firstElementChild,null!=a&&($(a).hasClass(this.Cm())||$(a).hasClass(this.Fj()))))return a;return null},getSubIdByNode:function(a){if(null!=a&&$(a).hasClass(this.Cm())||$(a).hasClass(this.Fj()))if(a=this.Mi(a),null!=a&&0<a.length&&(a=this.qe(a[0]),null!=a))return{subId:"oj-listview-disclosure",key:a};return null},getContextByNode:function(a){var b,c,d;a=this.Mi(a);return null!=a&&0<a.length&&(b=this.qe(a[0]),
null!=b)?(c=a.parent(),d=c.children("li").index(a),b={subId:"oj-listview-item",key:b,index:d},c.get(0)!=this.element.get(0)&&(b.parent=c.parent().get(0)),a.children().first().hasClass(this.Rd())?b.group=!0:b.group=!1,b):null},getDataForVisibleItem:function(a){var b;b=a.index;a=a.parent;a=null==a?this.element.get(0):$(a).children("ul."+this.Ef()).first();b=$(a).children("li").get(b);return null!=b&&$(b).hasClass(this.fg())?this.kT(b):null},kT:function(a){return null==this.Dc("data")?a:$.data(a,"data")},
pn:function(a){null!=this.Gf&&or(this.Gf,a)},Qk:function(a){a&&this.Ce&&w.q.Hi(a,this.Ce)},wj:function(a){a&&(null==this.Ce&&(this.Ce=this.Ae.bind(this)),w.q.Ch(a,this.Ce))},Ae:function(a,b){0<a&&0<b&&null!=this.Gd&&this.Gd.Fr(a,b)},i3:function(){return!0},uO:function(){return function(){return!1}},FO:function(a){return null!=a.data||null!=a.drillMode||null!=a.groupHeaderPosition||null!=a.item||null!=a.scrollPolicy||null!=a.scrollPolicyOptions},qr:function(a){var b,c,d;if(this.FO(a))return null!=
a.data&&(null==a.currentItem&&this.sg("currentItem",null),null==a.selection&&this.ph(!0)),!0;if(null!=a.expanded&&this.Gd.Gl()&&(this.ik=void 0,c=a.expanded,Array.isArray(c))){this.Ya();this.W6();this.RU=!0;try{b=this,$.each(c,function(a,c){b.PL(c,!0,!0,!0)})}finally{this.RU=void 0,this.Ua()}}null!=a.currentItem?(c=this.jd(a.currentItem),null!=c&&(c=$(c),this.gh(c)||((d=document.activeElement)&&this.element.get(0).contains(d)?this.nn(c,null):this.yb(c,null)))):null===a.currentItem&&(this.$u(),this.t=
null,this.kz());this.cF(a);null!=a.selectionMode&&(this.ph(!0),this.jz());null!=a.contextMenu&&this.pn(a.contextMenu);null!=a.scrollTop&&(c=this.wk(),d=a.scrollTop,null==d||isNaN(d)||(c.scrollTop=d));null!=this.Gf&&null!=this.t&&null!=a.dnd&&null!=a.dnd.reorder&&("enabled"===a.dnd.reorder.items?pr(this.t.elem):"disabled"===a.dnd.reorder.items&&this.t.elem.removeClass("oj-draggable"));return!1},cF:function(a){var b,c;if(null!=a.selection&&this.tb())for(a.selection=this.S8(a.selection),b=a.selection,
this.ph(!1),c=0;c<b.length;c++)a=this.jd(b[c]),null!=a&&this.yv(a,b[c])},ih:function(a,b,c){return this.A._trigger(a,b,c)},sg:function(a,b,c){this.A.option(a,b,c)},Dc:function(a){return this.A.option(a)},Ya:function(){var a=this;this.Ro&&(0==this.Ro.length&&(this.K1=new Promise(function(b){a.L1=b})),this.Ro.push(1))},Ua:function(){this.Ro&&0<this.Ro.length&&(this.Ro.pop(),0==this.Ro.length&&this.L1(null))},Hha:function(a){var b,c=this,d=[];$.each(a,function(a,f){b=c.jd(f);null!=b&&d.push(b)});return d},
YU:function(){var a;this.Ya();a=this.Dc("data");if(null!=a){if("undefined"===typeof Sf||"undefined"===typeof Rf)throw"oj.TableDataSource or oj.TreeDataSource not found. Ensure the required modules are imported";if(a instanceof Sf)this.Gd=new cr(this,this.element[0],a);else if(a instanceof Rf)this.Gd=new jr(this,this.element[0],a);else throw"Invalid data";}else this.Gd=new kr(this,this.element[0]);this.Eu();this.Gd.vO();this.Ua()},k3:function(a){this.element.attr("aria-activedescendant",a.attr("id"))},
jz:function(){this.element.attr("aria-activedescendant","");this.rj()?this.element.attr("aria-multiselectable",!0):this.tb()&&this.element.attr("aria-multiselectable",!1)},HO:function(){this.element.removeAttr("aria-activedescendant").removeAttr("aria-multiselectable")},w6:function(){var a,b;a=this.$d();this.jz();b=this.y6();a.append(b);this.Di=b;b=this.t6();a.append(b);this.bu=b;this.ii()&&null!=this.Gf&&a.append(this.u6())},y6:function(){var a=$(document.createElement("div"));a.addClass("oj-listview-status-message oj-listview-status").attr({id:this.Gp("status"),
role:"status"});return a},t6:function(){var a=$(document.createElement("div"));a.addClass("oj-helper-hidden-accessible").attr({id:this.Gp("info"),role:"status"});return a},u6:function(){var a=$(document.createElement("div"));a.addClass("oj-helper-hidden-accessible").attr({id:this.Gp("instr")});a.text(this.A.r("accessibleReorderTouchInstructionText"));return a},Ee:function(a){""!=a&&this.bu.text()!=a&&this.bu.text(a)},Eu:function(){var a=this.A.r("msgFetchingData");this.Di.text(a).css("left",this.element.outerWidth()/
2-this.Di.outerWidth()/2).show()},Fm:function(){this.Di.hide()},Sg:function(){return this.$d()},$d:function(){null==this.jy&&(this.jy=this.t7());return this.jy},t7:function(){var a;this.Kc?a=$(this.Kc):(a=$(document.createElement("div")),this.element.parent()[0].replaceChild(a[0],this.element[0]));a.addClass(this.gO()).addClass("oj-component");a.prepend(this.element);return a},oT:function(){return this.A.r("msgNoData")},Dv:function(){var a,b;a=this.oT();b=document.createElement("li");b.id=this.Gp("empty");
b.className="oj-listview-no-data-message oj-listview-empty-text";b.textContent=a;return b},Ne:function(a){a=this.ie(a).attr("aria-expanded");return"true"==a?this.Oi:"false"==a?this.Ni:this.wO},lp:function(a,b){var c=this.$t();b==this.Oi?(this.ie(a).attr("aria-expanded","true"),c&&a.removeClass("oj-collapsed").addClass("oj-expanded")):b==this.Ni&&(this.ie(a).attr("aria-expanded","false"),c&&a.removeClass("oj-expanded").addClass("oj-collapsed"))},lw:function(a,b,c){a=this.options.item[a];return"function"==
typeof a&&c?a.call(this,b):a},v9:function(){var a=this.lw("renderer",null,!1);return"function"!=typeof a?null:a},s0:function(){},GM:function(a){var b;null!=this.t&&this.t.elem&&$(this.t.elem).get(0)==a&&this.sg("currentItem",null);if(null!=a&&a.id&&null!=this.ql)for(b in this.ql)if(this.ql.hasOwnProperty(b)&&this.ql[b]===a.id){delete this.ql[b];break}},Wq:function(a,b){var c,d,e,f;null!=this.Gf&&this.Gf.Wq(a);this.Qv(a);if(this.tb())if(c=this.Dc("selection"),this.fh(a))for(e=0;e<c.length;e++){if(c[e]==
b.key&&(this.yv(a,c[e]),!this.rj())){1<c.length&&(d=$(this.jd(b.key)),this.sg("selection",[b.key],{_context:{originalEvent:null,Ia:!0,Eh:{items:d}},changed:!0}));break}}else if(e=c.indexOf(b.key),-1<e){c=c.slice(0);c.splice(e,1);d=Array(c.length);for(e=0;e<c.length;e++)d[e]=this.jd(c[e]);this.sg("selection",c,{_context:{originalEvent:null,Ia:!0,Eh:{items:$(d)}},changed:!0})}this.Gd.Gl()&&void 0==this.RU&&this.Ne($(a))==this.Ni&&(e=this.Dc("expanded"),this.Ps()?void 0==this.ik&&this.dp($(a),null,!1,
null,!1,!1,!1):Array.isArray(e)&&(f=this,$.each(e,function(c,d){d!=b.key||void 0!=f.ik&&-1!=f.ik.indexOf(d)||f.dp($(a),null,!1,null,!1,!1,!1)})));null!=this.t&&b.key==this.t.key&&null!=this.t.elem&&a!=this.t.elem.get(0)&&(this.t.elem=$(a))},So:function(){var a;this.Fm();$(document.getElementById(this.Gp("empty"))).remove();0==this.element[0].childElementCount?(a=this.Dv(),this.element.append(a)):(this.lu=null,a=this.Dc("currentItem"),null!=a&&(a=this.jd(a),null==a?this.sg("currentItem",null):null!=
this.t||this.gh($(a))||this.nn($(a),null)),this.$d().hasClass("oj-focus-ancestor")&&null==this.t&&this.cV(),this.GE());this.ih("ready",null,{})},GE:function(){var a,b;a=this.Dc("scrollTop");if(!isNaN(a)&&(b=this.wk(),a!=b.scrollTop&&(b.scrollTop=a,b.scrollTop!=a))){this.GK=!0;return}this.GK=!1},rja:function(){var a=this.Dc("currentItem");null!=a&&(a=this.jd(a),null==a||this.gh($(a))||this.nn($(a),null))},Br:function(){this.ZM=this.lu=null},q1:function(a,b,c){if(this.fz($(b.target)))return!1;a=$(b.target).closest("."+
this.Ge());0<a.length&&!this.gh($(a[0]))&&this.nn($(a[0]),null);a=this.element;null!=this.t&&(a=this.t.elem);a={launcher:a,initialFocus:"menu"};"keyboard"===c&&(a.position={my:"start top",at:"start bottom",of:this.t.elem});this.A.Te(b,c,a)},jO:function(a){return null!=a.prop("nodeName").match(/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/)},fz:function(a){for(;null!=a&&a[0]!=this.element[0]&&"LI"!=a.prop("nodeName");){if(3!=a[0].nodeType){var b=a.attr("tabIndex"),c=a.attr("data-oj-tabindex");if(null!=
b&&0<=b&&!a.hasClass(this.al())||this.jO(a)&&(-1!=b||-1!=c))return!0}a=a.parent()}return!1},Qv:function(a){var b;a=$(a);a.hasClass(this.fg())||(a=$(a.get(0).firstElementChild));a.find("a, input, select, textarea, button, object, .oj-component-initnode").each(function(){$(this).removeAttr("data-first").removeAttr("data-last");b=parseInt($(this).attr("tabIndex"),10);(isNaN(b)||0<=b)&&$(this).attr("tabIndex",-1).attr("data-tabmod",isNaN(b)?-1:b)})},e8:function(a){var b,c;b=this.Sp();a=b.index(a);for(c=
0;c<=a;c++)this.Qv(b[c])},d8:function(a){var b;b=this.Sp();a=b.index(a);if(-1!=a)for(;a<=b.length-1;a++)this.Qv(b[a])},D8:function(a){var b;a=$(a).find("[data-tabmod]").each(function(){b=parseInt($(this).attr("data-tabmod"),10);$(this).removeAttr("data-tabmod");-1==b?$(this).removeAttr("tabIndex"):$(this).attr("tabIndex",b)});a.first().attr("data-first","true");a.last().attr("data-last","true")},J6:function(a){$(a).find("[data-tabmod]").removeAttr("tabIndex").removeAttr("data-tabmod").removeAttr("data-first").removeAttr("data-last")},
gh:function(a){return a.hasClass("oj-skipfocus")},qJ:function(a){return void 0===a.relatedTarget||null!=a.relatedTarget&&$.contains(this.A.element.get(0),a.relatedTarget)?!0:!1},Fl:function(a){this.$d().addClass("oj-focus-ancestor");null==this.t?this.Ay||this.qJ(a)||this.cV(a):(this.Ay||this.wV()||this.qJ(a)||this.Qu(),this.jF(),this.zK(this.t.elem))},cV:function(a){var b,c,d;if(!this.ii())for(b=this.Sp(),c=0;c<b.length;c++)if(d=$(b[c]),!this.gh(d)){this.nn(d,a);break}},T2:function(a){this.El(a)},
Jfa:function(){var a=w.Ic.zm();return"firefox"==a.browser&&48>parseInt(a.browserVersion,10)?!1:!0},Gba:function(a){var b=w.Ic.zm();return null==a.relatedTarget&&"ie"==b.browser&&a.target==this.A.element.get(0)?!0:!1},El:function(a){!this.Jfa()||this.Gba(a)||this.qJ(a)||(this.$d().removeClass("oj-focus-ancestor"),this.$u(),null!=this.t&&this.uX(this.t.elem),this.kz())},wU:function(a){a=this.Mi(a.target);null!=a&&(this.aN=null,this.om(a,"oj-hover"))},yaa:function(a){this.Zw()||(a=this.Mi(a.target),
null==a||this.gh(a)||(this.aN=a,this.pB(a,"oj-hover")))},Zw:function(){return 500>Date.now()-this.BJ},dz:function(a){var b,c;if(this.$t()&&(b=a.keyCode,b===this.te||b===this.Oe))if(c=this.t.elem,b===this.te){if(this.Ne(c)==this.Oi){this.cn(c,a,!0,this.t.key,!0,!0);return}}else if(this.Ne(c)==this.Ni){this.dp(c,a,!0,this.t.key,!0,!0,!0);return}b=this.iO(a);null!=this.Gf&&(b=b||this.Gf.dz(a));!0===b&&a.preventDefault()},yU:function(a){this.cr&&this.om(this.cr,"oj-focus");null!=this.Gf&&qr(this.Gf,$(a.target))},
ez:function(a){var b,c;c=$(a.target);null!=this.Gf&&rr(this.Gf,c);b=this.xe(c,!0);null!=b&&this.pV(b)&&(this.Ay=!0,b=null);null==b||0==b.length||this.gh(b)||c.hasClass("oj-listview-drag-handle")||(this.Ay=!0,this.$d().hasClass("oj-focus-ancestor")||this.$d().addClass("oj-focus-ancestor"),this.cr=b,this.pB(b,"oj-focus"),a.originalEvent.touches&&0<a.originalEvent.touches.length&&(this.kE={x:a.originalEvent.changedTouches[0].pageX,y:a.originalEvent.changedTouches[0].pageY}))},Pu:function(a){var b,c;
null!=this.cr&&(this.om(this.cr,"oj-focus"),null!=this.kE&&(b=this.cr.offset(),c=this.Rq("pointerUp"),c.offsetX=this.kE.x-b.left+"px",c.offsetY=this.kE.y-b.top+"px",b=this.cr.children("."+this.Rd()),b=0<b.length?b.get(0):this.cr.get(0),w.D.Ii(b,"pointerUp",c),this.kE=null));this.BJ=Date.now();this.wU(a)},BA:function(){var a;a=this.t.elem;this.Qv(a);this.D8(a);0<a.find("[data-first]").length&&this.IX(!0)},Dn:function(){this.IX(!1);this.Qv(this.t.elem)},bF:function(a){var b,c,d,e;0===a.button&&(b=this.Fj(),
c=this.Cm(),d=this.Rd(),e=$(a.target),e.hasClass(c)?(this.hk(a),a.preventDefault()):e.hasClass(b)?(this.Zd(a),a.preventDefault()):(b=this.xe(e),null==b||0==b.length||this.gh(b)||(this.oV()&&null!=this.t&&this.t.elem.get(0)!=b.get(0)&&this.Dn(),this.$d().hasClass("oj-focus-ancestor")||this.$d().addClass("oj-focus-ancestor"),this.tb()&&this.fh(b[0])?this.ii()?this.Oaa(b,a):this.S2(b,a):this.cz(b,a),this.$t()&&e.closest("."+d)&&(this.Ne(b)==this.Ni?this.Zd(a):this.Ne(b)==this.Oi&&this.hk(a)))))},ii:function(){return w.q.ud()},
wV:function(){return this.ii()&&"Windows"!=w.Ic.zm().os},pH:function(a){return w.q.Hm(a)},Gp:function(a){return[this.element.attr("id"),a].join(":")},Mi:function(a){return $(a).closest("."+this.Ge())},pV:function(a){return a.hasClass("oj-clickthrough-disabled")||a.hasClass("oj-component-initnode")||a.hasClass("oj-component")},xe:function(a,b){for(var c=a;0<c.length;){if(this.pV(c)){if(b)return c;break}if(c.hasClass(this.Ge()))return c;c=c.parent()}return null},z9:function(){null==this.C0&&(this.C0=
parseInt(this.$d().css("border-top-width"),10)+parseInt(this.$d().css("border-bottom-width"),10));return this.C0},FX:function(a){var b,c,d,e,f,h,k=0;b=a.offsetTop;c=a.offsetHeight;a=this.$d()[0];d=a.scrollTop;e=a.offsetHeight;null!=this.Je&&(f=parseInt(this.Je.style.top,10),h=$(this.Je).outerHeight(),b<=f&&f<b+c?k=(c+b-f)/2:b>=f&&b<f+h&&(k=(f+h-b)/2));b>=d&&b+c<=d+e?0<k&&(a.scrollTop=d-k):(b=Math.max(0,Math.min(b-k,Math.abs(b+c-e))),b>d&&(b+=this.z9()),a.scrollTop=b)},qe:function(a){return this.Gd.qe(a)},
jd:function(a){var b;return null!=this.ql&&(b=this.ql[a],null!=b)?document.getElementById(b):this.Gd.jd(a)},Gr:function(a){return a==this.Sh||a==this.Rh},Sp:function(){var a,b,c;null==this.lu&&(a=this.Sq(),b="."+this.Ge()+":visible",this.lu=this.element.find(b).filter(function(){return(c=$(this).parent().hasClass(a))?!$(this).parent().parent().hasClass("oj-collapsed"):!0}));return this.lu},raa:function(a){a=a.get(0).nextElementSibling;null!=a&&$(a).hasClass(this.Ge())||(a=this.wk(),a.scrollTop<a.scrollHeight&&
(a.scrollTop=a.scrollHeight))},gp:function(a,b,c){var d,e,f;if(!this.Gd.Hr())return!0;d=!b||this.$D?this.t.elem:this.Bc;e=!1;f=this.Sp();d=f.index(d);switch(a){case this.Sh:d--;if(0<=d){for(a=$(f[d]);this.gh(a);){d--;if(0>d)return!1;a=$(f[d])}b?(this.KH(a,c),this.$D=!1):(this.nn(a,c),this.$D=!0)}e=!0;break;case this.Rh:d++;if(d<f.length){for(a=$(f[d]);this.gh(a);){d++;if(d==f.length)return!1;a=$(f[d])}b?(this.KH(a,c),this.$D=!1):(this.nn(a,c),this.$D=!0,this.raa(a))}e=!0}return e},oV:function(){return"actionable"==
this.V0},IX:function(a){this.V0=a?"actionable":"navigation";a||this.element[0].focus()},cka:function(){return this.ep},ie:function(a){return a.hasClass(this.al())?a:$(a.find("."+this.al()).first())},kz:function(){this.element.attr("tabIndex",0)},jF:function(){this.element.removeAttr("tabIndex")},zK:function(a){this.ie(a).attr("tabIndex",0)},uX:function(a){var b;b=!0;"presentation"===a.attr("role")&&(b=!1);a=this.ie(a);b?a.removeAttr("tabIndex"):a.attr("tabIndex",-1)},VS:function(a,b){this.ep===this.ep?
(null!=a&&this.uX(a),this.zK(b),this.jF()):this.k3(b)},qD:function(a){var b;b=a.children("a, input, select, textarea, button");return 1===b.length&&0===b.first().find("a, input, select, textarea, button").length?b.first():a},yb:function(a,b){var c,d,e;null!=a?(c=a[0],c=this.qe(c),null==this.t||c!=this.t.key?(d={key:c,item:a},null!=this.t&&(d.previousKey=this.t.key,d.previousItem=this.t.elem,null!=this.Gf&&this.ii()&&qr(this.Gf,d.previousItem)),e=!this.ih("beforeCurrentItem",b,d),e||(this.t=e={key:c,
elem:a},null!=this.Gf&&this.ii()&&rr(this.Gf,a),this.VS(d.previousItem,a),this.sg("currentItem",c,{_context:{originalEvent:b,Ia:!0,Eh:{item:a}},changed:!0}))):c==this.t.key&&(this.t=e={key:c,elem:a},this.VS(null,a))):this.t=null},Qu:function(a){var b,c;null!=this.t&&this.$d().hasClass("oj-focus-ancestor")&&(a=a||!1,b=this.t.elem,this.pB(b,"oj-focus"),this.ep===this.ep&&(b=this.ie(b),c=document.activeElement,!a&&b.get(0).contains(c)||b.get(0).focus()))},$u:function(){null!=this.t&&this.om(this.t.elem,
"oj-focus")},cz:function(a,b){this.nn(a,b)},nn:function(a,b){this.FX(a[0]);this.$u();this.yb(a,b);this.Qu()},tb:function(){return"none"!=this.Dc("selectionMode")},rj:function(){return"multiple"==this.Dc("selectionMode")},fh:function(a){a=this.ie($(a)).get(0);return a.hasAttribute("aria-selected")},S8:function(a){var b,c,d;b=[];for(c=0;c<a.length&&(d=this.jd(a[c]),null==d||!this.fh(d)||(b.push(a[c]),this.rj()));c++);return b},hga:function(){var a,b;null!=this.ql&&(a=this,$.each(this.Dc("selection"),
function(c,d){b=a.jd(d);null!=b&&a.om(b,"oj-selected")}))},pB:function(a,b){this.Ru(a,b,!0)},om:function(a,b){this.Ru(a,b,!1)},Ru:function(a,b,c){var d;a=$(a);"oj-selected"==b&&this.ie(a).attr("aria-selected",c?"true":"false");d=a.children("."+this.Rd());0<d.length&&(a=$(d[0]));"oj-focus"===b?c?"actionable"!=this.V0&&this.ys(a):this.Np(a):c?a.addClass(b):a.removeClass(b)},S2:function(a,b){var c,d;this.FX(a[0]);c=this.pH(b);d=b.shiftKey;this.rj()?c||d?!c&&d?this.KH(a,b):this.rG(a,b):this.Yu(a,b):this.Yu(a,
b)},Oaa:function(a,b){this.rj()?this.rG(a,b):this.Yu(a,b)},ph:function(a){this.hga();a&&this.sg("selection",[],{_context:{originalEvent:null,Ia:!0,Eh:{items:$()}},changed:!0});this.Bc=null},Yu:function(a,b){this.ph(!1);this.rG(a,b,[])},KH:function(a,b){var c;null!=this.t&&(c=this.Bc,c!=a&&(this.om(a,"oj-focus"),this.IS(this.t.elem,a,b)))},IS:function(a,b,c){this.ph(!1);this.Bc=b;this.$aa(a,b,c);this.Qu()},$aa:function(a,b,c){var d,e,f,h,k;d=[];e=[];f=this.Sp();a=f.index(a);h=f.index(b);a>h?b=h:(b=
a,a=h);for(;b<=a;b++)h=f[b],this.fh(h)&&(k=this.Gd.qe(h),this.yv(h,k),d.push(k),e.push(h));this.sg("selection",d,{_context:{originalEvent:c,Ia:!0,Eh:{items:$(e)}},changed:!0})},yv:function(a,b){null==this.ql&&(this.ql={});this.ql[b]=$(a).attr("id");this.pB(a,"oj-selected")},rG:function(a,b,c){var d,e;d=this.qe(a[0]);void 0==c&&(c=this.Dc("selection").slice(0));this.$u();this.yb(a,b);this.Qu();if(null==this.t||this.t.elem.get(0)!=a.get(0))null!=c&&0==c.length&&this.sg("selection",c,{_context:{originalEvent:b,
Ia:!0,Eh:{items:$([])}},changed:!0});else{e=c.indexOf(d);-1<e?(this.om(a,"oj-selected"),c.splice(e,1)):(this.Bc=a,this.yv(a,d),c.push(d));a=Array(c.length);for(d=0;d<c.length;d++)a[d]=this.jd(c[d]);this.sg("selection",c,{_context:{originalEvent:b,Ia:!0,Eh:{items:$(a)}},changed:!0})}},mz:function(a,b,c){var d,e,f,h;d=this.Dc("selection").slice(0);e=this.t.elem;f=this.t.key;h=d.indexOf(f);if(-1<h){if(c)return;this.om(e,"oj-selected");d.splice(h,1);0==d.length&&(this.Bc=null)}else this.fh(e[0])&&(b||
(this.ph(!1),d.length=0),this.Bc=e,this.yv(e,f),d.push(f));b=Array(d.length);for(c=0;c<d.length;c++)b[c]=this.jd(d[c]);this.sg("selection",d,{_context:{originalEvent:a,Ia:!0,Eh:{items:$(b)}},changed:!0})},iO:function(a){var b,c,d,e=!1;if(null==this.t)return!1;b=a.keyCode;c=this.t.elem;this.oV()?b==this.WE?(this.Dn(),this.Qu(!0),this.zK(c),e=!0):b===this.lz&&(b=c.find("[data-first]"),c=c.find("[data-last]"),a.shiftKey?0<b.length&&0<c.length&&b!=c&&a.target==b[0]&&(c[0].focus(),e=!0):0<b.length&&0<
c.length&&b!=c&&a.target==c[0]&&(b[0].focus(),e=!0)):b==this.XE?(this.BA(),b=c.find("[data-first]"),0<b.length&&(b[0].focus(),c.removeClass("oj-focus-highlight"))):b==this.kF&&this.tb()?(c=this.pH(a),(d=a.shiftKey)&&!c&&null!=this.Bc&&this.rj()?this.IS(this.Bc,this.t.elem,a):this.mz(a,c&&!d&&this.rj(),!1),e=!0):b==this.VE&&this.tb()?this.mz(a,!1,!0):this.Gr(b)?(c=this.pH(a),d=a.shiftKey,c||(e=this.gp(b,d&&this.tb()&&this.rj(),a))):b===this.lz&&(a.shiftKey?this.e8(c):this.d8(c));return e},rV:function(a){return a&&
this.Do?-1<this.Do.indexOf(a):!1},lC:function(a,b){var c;if(null!=a)if(null==this.Do&&(this.Do=[]),b)this.Do.push(a);else for(c=this.Do.indexOf(a);-1<c;)this.Do.splice(c,1),c=this.Do.indexOf(a)},Rq:function(a){var b;null==this.JZ&&(b=w.Ob.Tc(this.z_()),this.JZ=b.animation);return this.JZ[a]},$t:function(){return"none"!=this.Dc("drillMode")},Ps:function(){var a=this.Dc("expanded");if("auto"===a){if(!this.$t())return!0}else if("all"===a)return!0;return!1},PL:function(a,b,c,d,e){var f=this.jd(a);null!=
f&&this.dp($(f),null,e,a,b,d,c)},Zd:function(a){var b=this.Mi(a.target);null!=b&&0<b.length&&this.dp(b,a,!0,null,!0,!0,!0)},dp:function(a,b,c,d,e,f,h){var k;if(this.Ne(a)==this.Ni&&(null==d&&(d=this.qe(a[0])),!c||!this.rV(d))){k={item:a,key:d};if(h&&(h=!this.ih("beforeExpand",b,k))&&e)return;this.Ya();c&&this.lC(d,!0);this.Gd.Er(a,function(a){this.N8(a,c,b,k,f)}.bind(this));this.lu=null;null!=b&&b.stopPropagation();null!=this.ik&&(a=this.ik.indexOf(d),-1!=a&&this.ik.splice(a,1));this.Ua()}},N8:function(a,
b,c,d,e){var f,h,k=this;this.Ya();a.key=d.key;b=this.RE($(a),b,c);a=a.parentNode;a=$(a);this.lp(a,this.Oi);f=this.Fj();h=this.Cm();a.children("."+this.Rd()).find("."+f).removeClass(f).addClass(h);e&&b.then(function(){k.ih("expand",c,d)});b.then(function(){k.Ua()})},CQ:function(a,b){var c;a.parentsUntil("ul.oj-component-initnode","ul."+this.Ef()).each(function(){c=parseInt($(this).css("maxHeight"),10);0<c&&$(this).css("maxHeight",c+b+"px")})},RE:function(a,b){var c=0,d,e,f=this,h,k;d=new Promise(function(a){e=
a});b?(this.Ya(),a.children().each(function(){c+=$(this).outerHeight(!0)}),this.ii()&&this.CQ(a,c),a.css("maxHeight",c+"px"),h=this.Rq("expand"),this.Ya(),k=a.get(0),h=w.D.Ii(k,"expand",h),h.then(function(){f.O$(a,e)}),this.Ua()):(this.ii()?(a.children().each(function(){c+=$(this).outerHeight(!0)}),a.css("maxHeight",c+"px"),this.CQ(a,c)):a.css("maxHeight",""),this.SE(a),e(null));return d},O$:function(a,b){this.ii()||a.css("maxHeight","");this.SE(a);b(null);this.Ua()},SE:function(a){a.removeClass(this.Sq()).addClass(this.Pt());
this.lC(a[0].key,!1)},wZ:function(a,b,c,d){var e=this.jd(a);null!=e&&this.cn($(e),null,d,a,b,c)},hk:function(a){var b=this.Mi(a.target);null!=b&&0<b.length&&this.cn(b,a,!0,null,!0,!0)},cn:function(a,b,c,d,e,f){var h,k,l=this;this.Ne(a)==this.Oi&&(null==d&&(d=this.qe(a[0])),c&&this.rV(d)||(h={item:a,key:d},k=!this.ih("beforeCollapse",b,h),k&&e||(this.Ya(),c&&this.lC(d,!0),k=this.PE(a,d,c,b),this.lp(a,this.Ni),c=this.Fj(),e=this.Cm(),a.find("."+e).first().removeClass(e).addClass(c),this.lu=null,null!=
b&&b.stopPropagation(),f&&k.then(function(){l.ih("collapse",b,h)}),void 0==this.ik&&(this.ik=[]),-1==this.ik.indexOf(d)&&this.ik.push(d),k.then(function(){l.Ua()}))))},PE:function(a,b,c){var d=0,e,f,h,k=this;f=new Promise(function(a){h=a});e=a.children("ul").first();e[0].key=b;c?(this.Ya(),e.children().each(function(){d+=$(this).outerHeight()}),e.css("maxHeight",d+"px"),a=this.Rq("collapse"),a.persist="all",this.Ya(),b=e.get(0),a=w.D.Ii(b,"collapse",a),a.then(function(){k.w$(e,h)}),this.Ua()):(e.css("maxHeight",
"0px"),this.QE(e),h(null));return f},w$:function(a,b){this.QE(a);b(null);this.Ua()},QE:function(a){a.removeClass(this.Pt()).addClass(this.Sq());null!=this.Gd&&this.Gd.Cr(a);this.lC(a[0].key,!1)},W6:function(){var a;this.Ya();a=this;this.Sp().each(function(){a.cn($(this),null,!1,null,!1,!1)});this.Ua()},getExpanded:function(){var a,b,c;a=[];b=this;this.Sp().each(function(){c=$(this);b.Ne(c)==b.Oi&&a.push(b.qe(c[0]))});return a},Pb:function(){return w.Components.Pb(this.element)},gO:function(){return this.wV()?
"oj-listview oj-listview-container-touch":"oj-listview oj-listview-container"},aF:function(){return"oj-listview-element"},fg:function(){return"oj-listview-item"},al:function(){return"oj-listview-focused-element"},Ge:function(){return"oj-listview-item-element"},Rd:function(){return"oj-listview-group-item"},Ef:function(){return"oj-listview-group"},Pt:function(){return"oj-listview-collapsible-transition"},Sq:function(){return this.Pt()},Fj:function(){return"oj-listview-collapse-icon"},Cm:function(){return"oj-listview-expand-icon"},
Ela:function(){return"oj-listview-no-data-message"},hM:function(){return""},z_:function(){return"oj-listview-option-defaults"},tda:function(a,b){var c=b.originalEvent.wheelDelta;isNaN(c)||(0>c?a.scrollTop+a.clientHeight+Math.abs(c)>=a.scrollHeight&&(a.scrollTop=a.scrollHeight,b.preventDefault()):0>=a.scrollTop-c&&(a.scrollTop=0,b.preventDefault()))},ZA:function(){var a=this.wk();return a==document.body||a==document.documentElement?window:a},fX:function(){var a=this,b;b=$(this.ZA());this.A._off(b,
"scroll mousewheel");this.A._on(b,{scroll:function(b){a.GK||a.sg("scrollTop",a.wk().scrollTop,{_context:{originalEvent:b,Ia:!0}});a.GK=!1;a.AV()&&a.BU()}});"loadMoreOnScroll"==this.options.scrollPolicy&&this.A._on(b,{mousewheel:function(b){a.tda(a.wk(),b)}})},AV:function(){return"static"!=this.Dc("groupHeaderPosition")},jw:function(){var a;null==this.ZM&&(a="."+this.Rd()+":visible",this.ZM=this.element.find(a).filter(function(){return!$(this).parent().hasClass("oj-collapsed")&&0<$(this).next().children().length?
!0:!1}));return this.ZM},hL:function(a){$(a).removeClass("oj-pinned");a.style.top="auto";a.style.width="auto"},GT:function(a){var b;b=this.jw();a=b.index(a);return-1<a&&a<b.length-1?b[a+1]:null},gda:function(a,b){var c,d,e;c=a.offsetWidth;d=a.offsetHeight;e=this.GT(a);null!=e&&e.offsetTop<=b+d+5&&(b-=d);$(a).addClass("oj-pinned");a.style.top=b+"px";a.style.width=c+"px"},BU:function(){var a,b,c,d,e,f,h,k;a=this.wk().scrollTop;if(null!=this.Je&&0==a)this.hL(this.Je),this.Je=null;else{c=this.jw();d=
0;null!=this.Je&&(d=this.Je.offsetHeight);for(e=0;e<c.length;e++)if(f=c[e],this.Je!=f&&(h=c[e].offsetTop,k=h+f.parentNode.offsetHeight,h<a&&k>a+d)){b=f;break}null!=b&&b!=this.Je?(null!=this.Je&&this.hL(this.Je),this.gda(b,a),this.Je=b):null!=this.Je&&(b=this.GT(this.Je),this.Je.style.top=null!=b&&b.offsetTop<=a+d?b.offsetTop-d+"px":a+"px")}},wk:function(){var a;a=this.Dc("scrollPolicyOptions");return null!=a&&(a=a.scroller,null!=a)?a:this.$d().get(0)},EX:function(a){var b,c;b=this.wk();c=b.scrollTop;
null!=this.Je&&(this.hL(this.Je),this.Je=null);b.scrollTop=a.offsetTop;this.AV()&&c==b.scrollTop&&this.BU();this.Qea(a)},Qea:function(a){var b=this,c;$(a).next().children().each(function(){c=$(this);if(!b.gh(c))return b.sg("currentItem",this.key),!1})}});t("_ojListView",w.PJ,w);
w.sa("oj.ojListView",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{currentItem:null,data:null,dnd:{drag:null,drop:null,reorder:{items:"disabled"}},drillMode:"collapsible",expanded:"auto",groupHeaderPosition:"sticky",item:{focusable:!0,renderer:null,selectable:!0},scrollPolicy:"auto",scrollPolicyOptions:{fetchSize:25,maxCount:500},scrollTop:0,selection:[],selectionMode:"none",animateStart:null,animateEnd:null,beforeCurrentItem:null,beforeExpand:null,beforeCollapse:null,collapse:null,copy:null,
cut:null,expand:null,optionChange:null,paste:null,ready:null,reorder:null},_ComponentCreate:function(){this._super();this.Aa()},Aa:function(){var a={};a.element=this.element;a.Kc=this.Kc;a.A=this;a=$.extend(this.options,a);this.ga=new w.PJ;this.ga.Gm(a)},cf:function(){this._super();this.ga.Dt()},_destroy:function(){this.ga.destroy();this._super()},Se:function(a,b,c){this.ga.q1(a,b,c)},_setOptions:function(a,b){var c=this.ga.qr(a,b);this._super(a,b);c&&(this.ga.refresh(),this.OS())},_setOption:function(a,
b,c){var d=!0;"selectionMode"==a?d="none"==b||"single"==b||"multiple"==b:"drillMode"==a?d="collapsible"==b||"none"==b:"scrollPolicy"==a?d="auto"==b||"loadMoreOnScroll"==b:"groupHeaderPosition"==a&&(d="static"==b||"sticky"==b);if(d)"selection"==a&&(c={_context:{Eh:{items:$(this.ga.Hha(b))}}}),this._super(a,b,c);else throw"Invalid value: "+b+" for key: "+a;},Ml:function(){this.ga.Uia()},xg:function(){this.ga.r1()},Nl:function(){this.ga.uu()},widget:function(){return this.ga.Sg()},refresh:function(){this._super();
this.ga.refresh();this.OS()},whenReady:function(){return this.ga.whenReady()},getNodeBySubId:function(a){return this.ga.getNodeBySubId(a)},getSubIdByNode:function(a){return this.ga.getSubIdByNode(a)},getContextByNode:function(a){return this.ga.getContextByNode(a)},getDataForVisibleItem:function(a){return this.ga.getDataForVisibleItem(a)},expand:function(a,b){this.ga.PL(a,b,!0,!0)},collapse:function(a,b){this.ga.wZ(a,b,!0)},getExpanded:function(){return this.ga.getExpanded()},getIndexerModel:function(){null==
this.Yx&&sr&&(this.Yx=new sr(this.ga));return this.Yx},OS:function(){null!=this.Yx&&this.Yx.TZ&&this.Yx.TZ()}});
w.Components.xa("ojListView","baseComponent",{properties:{currentItem:{type:"Object"},data:{},dnd:{},drillMode:{type:"string"},expanded:{type:"Array\x3cObject\x3e|string"},groupHeaderPosition:{},item:{},scrollPolicy:{type:"string"},scrollPolicyOptions:{type:"Object\x3cstring, number\x3e"},scrollTop:{type:"number"},selection:{type:"Array\x3cObject\x3e"},selectionMode:{type:"string"}},methods:{collapse:{},expand:{},getContextByNode:{},getDataForVisibleItem:{},getExpanded:{},getIndexerModel:{},getNodeBySubId:{},
getSubIdByNode:{},refresh:{},whenReady:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"ul",_widgetName:"ojListView"}});w.Components.register("oj-list-view",w.Components.getMetadata("ojListView"));function tr(a,b,c){this.p=a;this.J=b;this.QM=c}g=tr.prototype;g.Me=function(){this.J.removeClass("oj-navigationlist-expanded oj-navigationlist-vertical")};g.Er=function(){return Promise.resolve(null)};g.Cr=function(){return Promise.resolve(null)};g.hO=function(){return!1};g.fF=function(){};
g.qF=function(a,b){a.attr("aria-selected",b?"true":"false")};g.TE=function(){var a=this.p.element.attr("role"),b=this.J.attr("role");a&&"presentaion"!=a&&!b&&(this.p.element.attr("role","presentation"),this.J.attr("role",a))};g.kO=function(){};g.lO=function(){};g.gp=function(a,b,c){return ur.o.gp.apply(this.p,arguments)};g.Gr=function(a){return ur.o.Gr.apply(this.p,arguments)};g.Ne=function(a){return ur.o.Ne.apply(this.p,arguments)};g.lp=function(a,b){ur.o.lp.apply(this.p,arguments)};
tr.prototype.Init=function(){this.J.addClass("oj-navigationlist-expanded oj-navigationlist-vertical")};g=tr.prototype;g.fh=function(a){return ur.o.fh.apply(this.p,arguments)};g.Wu=function(){};g.bO=function(){};g.qr=function(){};g.El=function(a){return ur.o.El.apply(this.p,arguments)};g.Fl=function(a){return ur.o.Fl.apply(this.p,arguments)};function vr(a,b,c){vr.o.constructor.call(this,a,b,c)}H(vr,tr,"oj.HorizontalNavListHandler");g=vr.prototype;
g.Me=function(){this.J.removeClass("oj-navigationlist-expanded oj-navigationlist-horizontal");this.J.find("."+this.p.Dr).remove()};g.qF=function(a,b){a.attr("aria-pressed",b?"true":"false")};g.gp=function(a,b,c){a===$.ui.keyCode.LEFT?a=this.p.Jh()?$.ui.keyCode.DOWN:$.ui.keyCode.UP:a===$.ui.keyCode.RIGHT&&(a=this.p.Jh()?$.ui.keyCode.UP:$.ui.keyCode.DOWN);a=ur.o.gp.call(this.p,a,b,c);"top"===this.p.A.options.edge&&this.p.t.elem[0].scrollIntoView(!1);return a};
g.Gr=function(a){return a===this.p.Sh||a===this.p.Rh||a===this.p.te||a===this.p.Oe};g.fF=function(a){a=this.p.qD(a);a.attr("role","button");a[0].hasAttribute("aria-selected")&&(a.attr("aria-pressed","false"),a.removeAttr("aria-selected"))};g.TE=function(){var a=this;this.J.attr("role","toolbar");this.p.element.attr("role","presentation");this.p.element.find("."+this.p.Ge()+":visible").each(function(b){0<b&&wr(a,this,b)})};
function wr(a,b,c){b=$(b);var d=b.prev();0<c&&b.is(":visible")&&d.length&&!d.is("li."+a.p.Dr)&&b.before('\x3cli role\x3d"separator" class\x3d"'+a.p.Dr+'"\x3e\x3c/li\x3e')}g.kO=function(a,b){wr(this,a,b.index)};g.lO=function(a){a=$(a);var b=a.prev();b.length&&b.is("li."+this.p.Dr)?b.remove():(a=a.next(),a.is("li."+this.p.Dr)&&a.remove())};g.fh=function(a){return this.p.ie($(a))[0].hasAttribute("aria-pressed")};vr.prototype.Init=function(){this.J.addClass("oj-navigationlist-expanded oj-navigationlist-horizontal")};
vr.prototype.Wu=function(){};function xr(a,b,c){xr.o.constructor.call(this,a,b,c)}H(xr,tr,"oj.CollapsibleNavListHandler");xr.prototype.Me=function(){this.J.removeClass("oj-navigationlist-collapsible oj-navigationlist-vertical")};xr.prototype.Init=function(){this.J.addClass("oj-navigationlist-collapsible oj-navigationlist-vertical")};xr.prototype.Er=function(a,b,c){return ur.o.RE.apply(this.p,arguments)};xr.prototype.Cr=function(a,b,c,d){return ur.o.PE.apply(this.p,arguments)};
xr.prototype.hO=function(a,b,c,d){var e=0<c.children("."+this.p.Ef()).length;if(b===this.p.te||b===this.p.Oe)return b===this.p.te&&!this.p.Jh()||b===this.p.Oe&&this.p.Jh()?this.p.Ne(c)===this.p.Oi&&this.p.cn(c,a,!0,d,!0,!0):this.p.Ne(c)===this.p.Ni&&this.p.dp(c,a,!0,d,!0,!0,!0),!0;if(e&&(b===$.ui.keyCode.ENTER||b===$.ui.keyCode.SPACE)){if(0>=c.length)return;this.p.Ne(c)===this.p.Ni?this.p.dp(c,null,!0,d,!0,!0,!0):this.p.Ne(c)===this.p.Oi&&this.p.cn(c,null,!0,d,!0,!0);return!0}return!1};
xr.prototype.Wu=function(){};function yr(a,b,c){yr.o.constructor.call(this,a,b,c);this.XM=[]}H(yr,xr,"oj.SlidingNavListHandler");g=yr.prototype;g.Me=function(){this.J.removeClass("oj-navigationlist-slider oj-navigationlist-vertical");this.Hq.remove()};function zr(a,b,c,d,e,f){var h=a.p.Sg();a.p.Jh();var k=a.p.Sg().hasClass("oj-focus-ancestor"),l;l=c?"sliderExpand":"sliderCollapse";w.D.Ii(h,l,a.p.Rq(l)).then(function(){Ar(a,b,c,d,e,k);f(null)})}
function Ar(a,b,c,d,e,f){null!==a.p.Gd&&(d&&(f&&a.p.Sg().addClass("oj-focus-ancestor"),e&&0===e.button&&a.p.YN(!0),a.p.cz(d,e),a.p.YN(!1)),c?a.p.SE(b.children("."+a.p.Ef())):a.p.QE(b.children("."+a.p.Ef())))}
g.Er=function(a,b,c){var d,e=new Promise(function(a){d=a}),f=$(a).parents(".oj-navigationlist-item-element:first"),h=f.children("."+this.p.Ef()),k,l=null,m=f.closest("."+this.p.en);if(0<m.length){m.removeClass(this.p.en);f.addClass(this.p.en);var l=h.find("."+this.p.Ge()+":eq(0)"),n=f.parentsUntil(m,"ul"),n=m.is(this.p.element)?n.get().concat(m.get()):n.get(),p=this,q,n=$(n.reverse());n.each(function(a,b){k=$(b).is(p.p.element)?p.p.pM():p.p.kM($(b).parent());q=a===n.length-1?f:$(n.get(a+1)).parent();
var c=p.p.qe(q[0]),d=p.p.kM(q),e=k,h;if(p.mf){var l=p.ae.find("li").length,m=$(document.createElement("li")),F=$(document.createElement("a"));F.attr("href","#");m.append(F);if(0<l){for(h=0;h<l;h++)0<h&&F.append($(document.createElement("span")).addClass("oj-navigationlist-hvitem-space"));F.append($(document.createElement("span")).addClass("oj-menu-item-icon oj-icon oj-navigationlist-level-indicator"))}h=$(document.createElement("span")).addClass("oj-navigationlist-hierarchical-menu-label");h.text(e);
F.append(h);m.data("key",c);p.ae.append(m);p.ae.ojMenu("refresh");Br(p,p.p.Dc("hierarchyMenuDisplayThresholdLevel"));p.mf.ojButton("option","disabled",!1);p.hc.css("visibility","visible");p.p.Sg().hasClass("oj-focus-ancestor")&&p.hc.attr("tabindex","0");p.rw.text(d)}p.XM.push(q)})}b?zr(this,f,!0,l,c,d):(Ar(this,f,!0,l,c,!1),d(null));f.siblings().attr("aria-hidden","true");f.children("."+this.p.Rd()).children("."+this.p.Vj).attr("aria-hidden","true");h.removeAttr("aria-hidden");a.css("display","");
f.addClass("oj-skipfocus");return e};
g.Cr=function(a,b,c,d){var e;b=new Promise(function(a){e=a});var f=a.children("."+this.p.Ef()),h=a.parent();a.children("."+this.p.Rd()).children("."+this.p.Vj).removeAttr("aria-hidden");f.attr("aria-hidden","true");a.siblings().removeAttr("aria-hidden");a.removeClass("oj-skipfocus");a.removeClass(this.p.en);0===a.closest("."+this.p.en).length&&(h.closest("."+this.p.Ge()).addClass(this.p.en),this.p.element.is(h)&&this.p.element.addClass(this.p.en));c?zr(this,a,!1,f.parent(),d,e):(Ar(this,a,!1,f.parent(),
d,!1),e(null));Cr(this);return b};g.qF=function(a,b){b?a.attr("aria-describedby","selectedLabel"):a.removeAttr("aria-describedby")};g.Ne=function(a){a=this.p.ie(a).attr("aria-expanded");return"true"===a?this.p.Oi:"false"===a?this.p.Ni:this.p.wO};g.lp=function(a,b){b===this.p.Oi?(this.p.ie(a).attr("aria-expanded","true"),a.removeClass(this.p.ZN).addClass(this.p.eO)):b===this.p.Ni&&(this.p.ie(a).attr("aria-expanded","false"),a.removeClass(this.p.eO).addClass(this.p.ZN))};
g.fF=function(a,b){var c=this.p.ie(a);c.attr("role","menuitem");b.attr("id")||b.uniqueId();var d=a.children("."+this.p.Ef());0<d.length&&(c.attr("aria-haspopup","true"),d.attr("role","menu"),d.css("display",""),a.removeAttr("aria-expanded"),c.attr("aria-expanded","false"))};g.TE=function(){this.J.attr("role","menu");this.p.element.attr("role","presentation")};
yr.prototype.Init=function(a){this.J.addClass("oj-navigationlist-slider oj-navigationlist-vertical");a.element.addClass("oj-navigationlist-current");var b;this.Hq=$(document.createElement("div"));this.Hq.addClass("oj-navigationlist-toolbar");this.YJ=$(document.createElement("a"));this.hc=$(document.createElement("a"));this.hc.addClass("oj-navigationlist-previous-button");this.hc.css("visibility","hidden").attr("tabindex","-1");this.YJ.addClass("oj-navigationlist-previous-link").attr("tabindex","-1");
this.rw=$(document.createElement("label"));this.rw.addClass("oj-navigationlist-current-header").text(this.p.pM());this.JC=$(document.createElement("span"));this.JC.attr("role","separator").attr("aria-orientation","vertical").addClass("oj-navigationlist-toolbar-separator");this.mf=$(document.createElement("button"));this.mf.addClass("oj-navigationlist-hierarchical-button").attr("tabindex","-1");this.ae=$(document.createElement("ul"));this.ae.addClass("oj-navigationlist-hierarchical-menu").hide();b=
$(document.createElement("label"));b.addClass("oj-helper-hidden-accessible").attr("aria-hidden","true").attr("id","selectedLabel");b.text(this.QM.r("selectedLabel"));this.YJ.append(this.rw);this.Hq.append(this.hc);this.Hq.append(this.YJ).append(this.JC).append(this.mf).append(this.ae).append(b);this.J.prepend(this.Hq);Br(this,a.hierarchyMenuDisplayThresholdLevel);Dr(this)};g=yr.prototype;g.bO=function(a){var b=this.XM.pop();b&&this.p.cn(b,a,!0,null,!0,!0)};
function Dr(a){var b=a.ae.uniqueId().attr("id");a.ae.ojMenu({openOptions:{position:{my:"end top",at:"end bottom"}},select:function(b,d){for(var e=d.item.nextAll(),f,h,k=a.XM,l=d.item.data("key");0<k.length&&(h=k.pop(),f=a.p.qe(h[0]),a.p.cn($(h),b,!0,f,!0,!0),l!==f););e.remove();d.item.remove();a.ae.ojMenu("refresh")}});a.mf.ojButton({label:a.QM.r("hierMenuBtnLabel"),display:"icons",icons:{start:"oj-fwk-icon oj-hier-icon"},menu:"#"+b,disabled:!0,chroming:"half"});a.hc.ojButton({label:a.QM.r("previousIcon"),
display:"icons",icons:{start:"oj-navigationlist-previous-icon oj-component-icon oj-clickable-icon-nocontext"},chroming:"half"})}g.qr=function(a){this.p.Dc("hierarchyMenuDisplayThresholdLevel")!==a.hierarchyMenuDisplayThresholdLevel&&Br(this,a.hierarchyMenuDisplayThresholdLevel)};
function Br(a,b){var c=a.ae.find("li").length;-1===b||c<b?(a.JC.css("visibility","hidden"),a.mf[0]===document.activeElement&&a.J.focusin(),a.mf.css("visibility","hidden")):c>=b&&(a.JC.css("visibility","visible"),a.mf.css("visibility","visible"))}
function Cr(a){if(a.mf){var b=a.ae.find("li").last().remove();a.ae.ojMenu("refresh");Br(a,a.p.Dc("hierarchyMenuDisplayThresholdLevel"));0===a.ae.children("li").length?(a.mf.ojButton("option","disabled",!0),a.hc.css("visibility","hidden"),a.hc.attr("tabindex","-1"),a.rw.text(a.p.pM())):a.rw.text(b.children("a").text())}}g.Wu=function(a,b){a.removeClass(this.p.en);b.removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-describedby").removeAttr("aria-hidden")};
function Er(a,b){var c;b?((c=a.ae.find("li").length)&&a.hc.attr("tabindex","0"),a.mf.attr("tabindex","0")):(a.hc.attr("tabindex","-1"),a.mf.attr("tabindex","-1"))}g.Fl=function(a){$.contains(this.Hq.get(0),a.target)||this.ae.get(0)===a.relatedTarget||(Er(this,!0),ur.o.Fl.apply(this.p,arguments))};
g.El=function(a){$.contains(this.Hq.get(0),a.relatedTarget)||this.ae.get(0)===a.relatedTarget?this.p.$u():(null!=a.relatedTarget&&$.contains(this.J.get(0),a.relatedTarget)||Er(this,!1),ur.o.El.apply(this.p,arguments))};
var ur=function(a,b){function c(){}H(c,a,"");$.extend(c.prototype,b);return c}(w.PJ,{Vj:"oj-navigationlist-item-content",eO:"oj-expanded",ZN:"oj-collapsed",en:"oj-navigationlist-current",Dr:"oj-navigationlist-divider",u3:"oj-navigationlist-category-divider",DF:"oj-navigationlist-item-label",kP:"oj-navigationlist-icon-only",pP:"oj-navigationlist-item-icon",xka:"oj-navigationlist-horizontal",HP:"oj-navigationlist-has-icons",IP:"oj-navigationlist-item-no-icon",y4:"oj-navigationlist-item-title",JP:"oj-navigationlist",
KP:"oj-navigationlist-touch",z4:"oj-navigationlist-listview-container",tz:"IsTitleAttrDueToTruncation",rF:"oj-navigationlist-app-level",PF:"oj-navigationlist-page-level",LF:"navigationListItemIconHastitle",A4:"oj-navigationlist-nofollow-link",kM:function(a){a=this.nD(a);return a.is("a")?$.trim(a.text()):$.trim(a.find("."+this.y4).text())},nD:function(a){var b=a.children("."+this.Vj);0===b.length&&(b=a.children("."+this.Rd()).children("."+this.Vj),0===b.length&&(b=a.children("."+this.Rd()).children(":not(."+
this.Cm()+"):not(."+this.Fj()+")")));return b},Jh:function(){return"rtl"===this.A.$b()},So:function(){this.Mb.TE();ur.o.So.apply(this,arguments)},s0:function(a,b){this.Mb.kO(a,b)},GM:function(a){this.Mb.lO(a);ur.o.GM.apply(this,arguments)},xX:function(a){var b,c,d,e=a.children();a.removeAttr("style").removeClass(this.HP).removeAttr("aria-hidden");for(a=0;a<e.length;a++)b=e[a],b=$(b),b.hasClass(this.Dr)?b.remove():(c=this.nD(b),c.removeClass(this.Vj).removeClass(this.IP).removeAttr("aria-haspopup"),
(d=c.children("."+this.pP))&&0<d.length&&(d.removeAttr("role"),d.removeAttr("aria-label"),this.gea(d)),b.removeClass("oj-default").removeAttr("role").removeAttr("aria-disabled").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-pressed"),d=this.ie(b),d.removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-pressed"),c.children("."+this.DF).contents().unwrap(),d.data(this.tz)&&d.removeAttr("title"),d=b.children("ul"),0<d.length?(this.Mb.Wu(b,c,d),this.xX(d)):this.Mb.Wu(b,
c))},fz:function(a){return a.hasClass(this.Vj)||a.hasClass(this.Cm())||a.hasClass(this.Fj())?!1:ur.o.fz.apply(this,arguments)},jO:function(a){return a.prop("nodeName").match(/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/)&&!a.hasClass(this.Vj)||a.hasClass("oj-component")},oda:function(a){var b={drillMode:"none"!==a.drillMode?"collapsible":"none",selection:null!==a.selection?[a.selection]:[],item:a.item,data:a.data,selectionMode:"single"};b.element=this.Vn;b.item.focusable=function(a){return $(a.data).is("li")?
!$(a.data).hasClass("oj-disabled"):!$(a.parentElement).hasClass("oj-disabled")};return b=$.extend($.extend({},a),b)},pM:function(){return this.A.options.rootLabel?this.A.options.rootLabel:this.A.r("defaultRootLabel")},jz:function(){this.A.element.attr("aria-multiselectable",!1)},Fl:function(a){return this.Mb.Fl(a)},El:function(a){return this.Mb.El(a)},kz:function(){this.A.element.attr("tabIndex",0)},jF:function(){this.A.element.removeAttr("tabIndex")},HO:function(){this.A.element.removeAttr("aria-activedescendant").removeAttr("aria-multiselectable")},
Gm:function(a){var b=this,c=a.A.element;c.addClass(this.JP);w.q.ud()&&c.addClass(this.KP);this.Vn=c.children("ul:first");0===this.Vn.length&&(this.Vn=$(document.createElement("ul")),c.append(this.Vn));c=$(document.createElement("div"));c.addClass(this.z4);this.Vn.wrap(c);a=this.oda(a);ur.o.Gm.call(this,a);this.element.removeClass("oj-component-initnode");this.A._on(this.A.element,{mouseup:function(a){b.ZG(a)},"click .oj-navigationlist-previous-link":function(a){b.Jv(a)},"keydown .oj-navigationlist-previous-link":function(a){a.keyCode===
$.ui.keyCode.ENTER&&b.Jv(a)},"click .oj-navigationlist-previous-button":function(a){b.Jv(a)},"keydown .oj-navigationlist-previous-button":function(a){a.keyCode===$.ui.keyCode.ENTER&&b.Jv(a)},"keydown .oj-navigationlist-element":function(a){a.keyCode!==$.ui.keyCode.ESCAPE||a.isDefaultPrevented()||b.Jv(a)},"mouseenter a.oj-navigationlist-item-content":function(a){a=$(a.currentTarget);var c=a.find("."+b.DF);c[0].offsetWidth<c[0].scrollWidth&&!a.attr("title")&&(a.attr("title",c.text().trim()),a.data(b.tz,
"true"))},"mouseleave a.oj-navigationlist-item-content":function(a){var c=$(a.currentTarget);c.data(b.tz)&&(c.removeData(b.tz),c.removeAttr("title"));b.ZG(a)}})},Jv:function(a){this.Mb.bO(a)},dV:function(){var a=this.A.options.drillMode,b=this.A.options.edge;this.Mb="sliding"===a?new yr(this,this.A.element,this.A):"collapsible"===a?new xr(this,this.A.element,this.A):"none"===a&&"top"===b?new vr(this,this.A.element,this.A):new tr(this,this.A.element,this.A);this.Mb.Init(this.options);this.RX(this.A.options.navigationLevel)},
RX:function(a){"none"===this.A.options.drillMode&&("application"===a?(this.A.element.addClass(this.rF),this.A.element.removeClass(this.PF)):"page"===a&&(this.A.element.addClass(this.PF),this.A.element.removeClass(this.rF)))},ZG:function(a){a=this.Mi($(a.target));null!=a&&this.Ru(a,"oj-active",!1)},Dt:function(){this.dV();ur.o.Dt.apply(this,arguments)},ez:function(a){ur.o.ez.apply(this,arguments);var b=this.Mi($(a.target));b&&!b.hasClass("oj-disabled")&&this.Ru(b,"oj-active",!0)},Pu:function(a){this.ZG(a);
ur.o.Pu.apply(this,arguments)},gO:function(){return"oj-navigationlist-listview"},aF:function(){return"oj-navigationlist-element"},fg:function(){return"oj-navigationlist-item"},al:function(){return"oj-navigationlist-focused-element"},Ge:function(){return"oj-navigationlist-item-element"},Fj:function(){return"oj-navigationlist-collapse-icon"},Cm:function(){return"oj-navigationlist-expand-icon"},hM:function(a){return"oj-navigationlist-depth-"+a},Rd:function(){return"oj-navigationlist-group-item"},Ef:function(){return"oj-navigationlist-group"},
Pt:function(){return"oj-navigationlist-collapsible-transition"},Sq:function(){return this.Pt()},RE:function(a,b,c){return this.Mb.Er(a,b,c)},PE:function(a,b,c,d){return this.Mb.Cr(a,b,c,d)},gp:function(a,b,c){return this.Mb.gp(a,b,c)},Gr:function(a){return this.Mb.Gr(a)},Ne:function(a){return this.Mb.Ne(a)},lp:function(a,b){this.Mb.lp(a,b)},bF:function(a){var b=this.Mi($(a.target));null!=b&&0!==b.length&&(this.gh(b)?a.preventDefault():this.fz($(a.target))||(b=this.nD(b).attr("href"),b&&"#"!==b&&0===
a.button&&(a.shiftKey||a.ctrlKey)||(ur.o.bF.apply(this,arguments),a.preventDefault())))},dz:function(a){var b,c,d;if(this.t)if(b=a.keyCode,c=this.t.elem,d=this.t.key,b===$.ui.keyCode.HOME||b===$.ui.keyCode.END){var e;e=b===$.ui.keyCode.HOME?this.element.find("."+this.Vj+":visible").first().closest("."+this.Ge()):this.element.find("."+this.Vj+":visible").last().closest("."+this.Ge());this.cz(e,a);a.preventDefault()}else e=this.iO(a),b=this.Mb.hO(a,b,c,d),!0!==e&&!0!==b||a.preventDefault()},YN:function(a){this.m6=
a},uO:function(){var a=this;return function(){return!!a.m6}},i3:function(){return!0},mz:function(a,b,c){var d=this.t.elem;this.fh(d[0])&&!this.xh(d)&&this.RH(a,d)&&(ur.o.mz.apply(this,arguments),this.nJ(d))},Ru:function(a,b,c){var d;a=$(a);"oj-selected"===b&&this.Mb.qF(this.ie(a),c);d=a.children("."+this.Rd());0<d.length&&(a=$(d[0]));"oj-focus"===b?c?this.ys(a):this.Np(a):c?a.addClass(b):a.removeClass(b);a.hasClass("oj-selected")||a.hasClass("oj-hover")||a.hasClass("oj-active")||a.hasClass("oj-disabled")?
a.removeClass("oj-default"):a.addClass("oj-default")},fh:function(a){return!$(a).hasClass("oj-disabled")&&this.Mb.fh($(a))},ih:function(a,b,c){return"ready"!==a?this.A._trigger(a,b,c):!0},sg:function(a,b,c){if("selection"===a){var d=c._context,e=d&&d.Eh&&d.Eh.items;e&&(d.Eh.item=e,d.Eh.items=void 0);b&&0<b.length?this.A.option(a,b[0],c):this.A.option(a,null,c)}else this.A.option(a,b,c);this.options[a]=b},FO:function(a){return null!=a.data||null!=a.drillMode||null!=a.item||null!=a.display||null!=a.edge},
z_:function(){return"oj-navigationlist-option-defaults"},qr:function(a,b){var c={a2:[]},d;void 0!==a.hierarchyMenuDisplayThresholdLevel&&this.Mb.qr(a);void 0!==a.navigationLevel&&this.RX(a.navigationLevel);void 0!==a.selection&&(d=a.selection);c.Qia=ur.o.qr.call(this,a,b);void 0!==d&&void 0===a.selection&&c.a2.push("selection");void 0!==d&&(a.selection=d);return c},cF:function(a){var b;if(void 0!==a.selection)if(b=a.selection){var c=this.Dc("selection");c&&0!==c.length&&c[0]===b?delete a.selection:
(c=this.jd(b))&&this.fh(c)?this.RH(null,$(c))?(a.selection=[b],this.nJ($(c))):delete a.selection:delete a.selection}else a.selection=[];ur.o.cF.call(this,a)},Dc:function(a){var b=this.A.option(a);return"selection"===a?b?[b]:[]:null===b?this.options[a]:b},Pb:function(){return w.Components.Pb(this.A.element)},Yu:function(a,b){!a.hasClass("oj-disabled")&&this.fh(a[0])&&(!this.xh(a)&&this.RH(b,a)?(ur.o.Yu.apply(this,arguments),this.nJ(a)):this.cz(a,b))},RH:function(a,b){var c=this.qe(b[0]);return this.ih("beforeSelect",
a,{item:b,key:c})},nJ:function(a){if(this.A.element.hasClass(this.A4))return!1;var b=this.nD(a);a=b.attr("href");b=b.attr("target");return a&&"#"!==a?(b&&"_self"!==b?window.open(a,b):window.location.href=a,!0):!1},xh:function(a){var b;b=this.Dc("selection");a=this.qe(a[0]);return-1<b.indexOf(a)?!0:!1},hfa:function(a,b){a.attr("title")||a.attr("title",b)},gea:function(a){a.data(this.LF)?a.removeData(this.LF):a.removeAttr("title")},Wq:function(a,b){var c=$(a);if(c.hasClass(this.u3))c.removeClass(this.Ge()),
c.removeClass(this.al()),c.removeClass(this.fg()),c.removeAttr("aria-selected"),c.children().remove(),c.attr("role","separator");else{var d=this.Fj(),e=this.Cm(),f=this.pP,h=c.children("."+this.Rd()),k;0<h.length?(h.addClass(this.fg()),k=h.children(":not(."+e+"):not(."+d+")"),e=h.children("."+e),0===e.length&&(e=h.children("."+d)),e.attr("role","presentation"),e.removeAttr("aria-labelledby"),c.hasClass("oj-disabled")&&h.addClass("oj-disabled")):k=c.children().first();k.addClass(this.Vj);d=k.wrapInner('\x3cspan class\x3d"'+
this.DF+'"\x3e\x3c/span\x3e').find("."+f);0<d.length?(d.insertBefore(d.parent()),d.attr("title")&&d.data(this.LF,d.attr("title")),"icons"===this.A.options.display&&(this.A.element.addClass(this.kP),f=this.kM(c),d.attr("aria-label",f),d.attr("role","img"),this.hfa(d,f)),c.closest("ul").addClass(this.HP)):k.addClass(this.IP);c.hasClass("oj-disabled")?this.ie(c).attr("aria-disabled","true"):0<h.length?h.addClass("oj-default"):c.addClass("oj-default");this.Mb.fF(c,k);ur.o.Wq.apply(this,arguments)}},getNodeBySubId:function(a){var b;
if(null===a)return this.element?this.element[0]:null;b=a.subId;return"oj-navigationlist-item"===b?(a=a.key,a=this.jd(a)):"oj-navigationlist-previous-link"===b?this.Mb.hc?this.Mb.hc[0]:null:"oj-navigationlist-hierarchical-button"===b?this.Mb.mf?this.Mb.mf[0]:null:"oj-navigationlist-hierarchical-menu"===b?this.Mb.ae?this.Mb.ae[0]:null:null},getSubIdByNode:function(a){if(this.Mb.hc&&this.Mb.hc[0]===a)return{subId:"oj-navigationlist-previous-link"};if(this.Mb.mf&&this.Mb.mf[0]===a)return{subId:"oj-navigationlist-hierarchical-button"};
if(this.Mb.ae&&this.Mb.ae[0]===a)return{subId:"oj-navigationlist-hierarchical-menu"};a=this.Mi(a);return null!=a&&0<a.length&&(a=this.qe(a[0]),null!=a)?{subId:"oj-navigationlist-item",key:a}:null},getContextByNode:function(a){return(a=ur.o.getContextByNode.call(this,a))&&"oj-listview-item"==a.subId?(a.subId="oj-navigationlist-item",a):null},refresh:function(){this.tX();this.dV();ur.o.refresh.apply(this,arguments)},tX:function(){this.A.element.removeClass(this.kP);this.A.element.removeClass(this.rF);
this.A.element.removeClass(this.PF);this.xX(this.element);this.Mb.Me()},destroy:function(){this.tX();ur.o.destroy.apply(this,arguments);this.Vn.unwrap();this.Vn.is(":empty")&&this.Vn.remove();this.A.element.removeClass(this.JP+" "+this.KP);this.A._off(this.element,"click");this.A._off(this.element,"focus");this.A._off(this.element,"blur");this.A._off(this.element,"mouseover");this.A._off(this.element,"mousein");this.A._off(this.element,"mouseout");this.A._off(this.element,"keydown")}});
w.sa("oj.ojNavigationList",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{currentItem:null,drillMode:"none",edge:"start",hierarchyMenuDisplayThresholdLevel:0,rootLabel:null,selection:null,expanded:"auto",data:null,display:"all",navigationLevel:"page",item:{renderer:null,selectable:!0},beforeSelect:null,beforeCollapse:null,beforeCurrentItem:null,collapse:null,beforeExpand:null,expand:null,optionChange:null},_ComponentCreate:function(){this._super();this.Aa()},cf:function(){this._super();this.$e.Dt()},
Se:function(a,b,c){this.$e.q1(a,b,c)},Aa:function(){for(var a in this.options)this.YY(a,this.options[a]);this.KC(this.options.drillMode,this.options.display,this.options.edge);this.$e=new ur;a={A:this};a=$.extend(this.options,a);this.$e.Gm(a)},getNodeBySubId:function(a){return this.$e.getNodeBySubId(a)},getSubIdByNode:function(a){return this.$e.getSubIdByNode(a)},getContextByNode:function(a){return this.$e.getContextByNode(a)},expand:function(a,b){this.$e.PL(a,b,!0,!0)},collapse:function(a,b){this.$e.wZ(a,
b,!0)},getExpanded:function(){return this.$e.getExpanded()},KC:function(a,b,c){if("none"!==a){if("icons"===b)throw"Icon only navigation list should have drillMode set to 'none'.";if("top"===c)throw"Horizontal navigation list should have drillMode set to 'none'.";}},YY:function(a,b){var c=!0;"drillMode"===a?c="none"===b||"collapsible"===b||"sliding"===b:"display"===a?c="all"===b||"icons"===b:"edge"===a&&(c="top"===b||"start"===b);if(!c)throw"Invalid value: "+b+" for key: "+a;},_setOption:function(a,
b){this.YY(a,b);switch(a){case "drillMode":this.KC(b,this.options.display,this.options.edge);break;case "display":this.KC(this.options.drillMode,b,this.options.edge);break;case "edge":this.KC(this.options.drillMode,this.options.display,b)}return this._super(a,b)},_setOptions:function(a,b){var c,d=this.$e.qr(a,b);for(c in a)0>d.a2.indexOf(c)&&this._setOption(c,a[c],b);d.Qia&&this.$e.refresh();return this},xg:function(){this.$e.r1()},Nl:function(){this.$e.uu()},refresh:function(){this._super();this.$e.refresh()},
whenReady:function(){return this.$e.whenReady()},_destroy:function(){this.$e.destroy();this._super();delete this.$e}});w.Components.Rj({ojNavigationList:{hierarchyMenuDisplayThresholdLevel:w.Components.ad(function(){return(w.Ob.Tc("oj-navigationlist-option-defaults")||{}).hierarchyMenuDisplayThresholdLevel})}});
w.Components.xa("ojNavigationList","baseComponent",{properties:{currentItem:{type:"Object"},data:{},display:{type:"string"},drillMode:{type:"string"},edge:{type:"string"},expanded:{type:"Array|string"},hierarchyMenuDisplayThresholdLevel:{type:"number"},item:{},navigationLevel:{type:"string"},rootLabel:{type:"string"},selection:{type:"string"}},methods:{collapse:{},expand:{},getContextByNode:{},getExpanded:{},refresh:{},whenReady:{}},extension:{_widgetName:"ojNavigationList"}});
w.Components.register("oj-navigation-list",w.Components.getMetadata("ojNavigationList"));function Fr(a,b){this.Kia=a;this.Tb=b}t("EmptyNodeSet",Fr,w);Fr.prototype.getParent=function(){return this.Kia};A("EmptyNodeSet.prototype.getParent",{getParent:Fr.prototype.getParent});Fr.prototype.getStart=function(){return this.Tb};A("EmptyNodeSet.prototype.getStart",{getStart:Fr.prototype.getStart});Fr.prototype.getCount=function(){return 0};A("EmptyNodeSet.prototype.getCount",{getCount:Fr.prototype.getCount});
Fr.prototype.getData=function(){return null};A("EmptyNodeSet.prototype.getData",{getData:Fr.prototype.getData});Fr.prototype.getMetadata=function(){return null};A("EmptyNodeSet.prototype.getMetadata",{getMetadata:Fr.prototype.getMetadata});function Gr(a,b){this.pb=a;this.Tb=b}t("FlattenedNodeSet",Gr,w);Gr.prototype.getParent=function(){return this.pb.getParent()};A("FlattenedNodeSet.prototype.getParent",{getParent:Gr.prototype.getParent});
Gr.prototype.getStart=function(){return void 0!=this.Tb?this.Tb:this.pb.getStart()};A("FlattenedNodeSet.prototype.getStart",{getStart:Gr.prototype.getStart});Gr.prototype.getCount=function(){void 0===this.OD&&(this.OD=Hr(this,this.pb,0),void 0!=this.Tb&&(this.OD-=this.Tb));return this.OD};A("FlattenedNodeSet.prototype.getCount",{getCount:Gr.prototype.getCount});function Hr(a,b,c){var d,e,f,h;d=b.getStart();e=b.getCount();c+=e;if(b.Cf)for(f=0;f<e;f++)h=b.Cf(f+d),null!=h&&(c=Hr(a,h,c));return c}
Gr.prototype.getData=function(a){return Ir(this,this.pb,a,{index:this.pb.getStart()},this.Va)};A("FlattenedNodeSet.prototype.getData",{getData:Gr.prototype.getData});Gr.prototype.getMetadata=function(a){return Ir(this,this.pb,a,{index:this.pb.getStart()},this.hI)};A("FlattenedNodeSet.prototype.getMetadata",{getMetadata:Gr.prototype.getMetadata});Gr.prototype.hI=function(a,b){return a.getMetadata(b)};Gr.prototype.Va=function(a,b){return a.getData(b)};
function Ir(a,b,c,d,e){var f,h,k,l;f=b.getStart();h=b.getCount();for(k=0;k<h;k++){l=d.index;if(l===c)return e.call(a,b,k+f);d.index=l+1;if(b.Cf&&(l=b.Cf(k+f),null!=l&&(l=Ir(a,l,c,d,e),null!=l)))return l}return null}function Jr(a,b,c){this.Fo=a;this.gN=b;a:{var d;b=this.Fo.getStart();for(a=b+this.Fo.getCount();b<a;b++)if(d=this.Fo.getMetadata(b).key,c===d){c=b;break a}c=a-1}this.fN=c}t("MergedNodeSet",Jr,w);Jr.prototype.getParent=function(){return this.Fo.getParent()};
A("MergedNodeSet.prototype.getParent",{getParent:Jr.prototype.getParent});Jr.prototype.getStart=function(){return this.Fo.getStart()};A("MergedNodeSet.prototype.getStart",{getStart:Jr.prototype.getStart});Jr.prototype.getCount=function(){return this.Fo.getCount()+this.gN.getCount()};A("MergedNodeSet.prototype.getCount",{getCount:Jr.prototype.getCount});Jr.prototype.getData=function(a){a=Kr(this,a);return a.set.getData(a.index)};A("MergedNodeSet.prototype.getData",{getData:Jr.prototype.getData});
Jr.prototype.getMetadata=function(a){a=Kr(this,a);return a.set.getMetadata(a.index)};A("MergedNodeSet.prototype.getMetadata",{getMetadata:Jr.prototype.getMetadata});function Kr(a,b){if(b<=a.fN)return{set:a.Fo,index:b};var c=a.gN.getCount();return b>a.fN+c?{set:a.Fo,index:b-c}:{set:a.gN,index:b-(a.fN+1)}}function Lr(a,b,c,d){this.pb=a;this.wi=b;this.pu=c;this.Kh=d}t("NodeSetWrapper",Lr,w);Lr.prototype.getParent=function(){return this.pb.getParent()};A("NodeSetWrapper.prototype.getParent",{getParent:Lr.prototype.getParent});
Lr.prototype.getStart=function(){return null!=this.pu?this.pu.start:this.pb.getStart()};A("NodeSetWrapper.prototype.getStart",{getStart:Lr.prototype.getStart});Lr.prototype.getCount=function(){var a,b;a=this.pb.getStart();b=this.pb.getCount();null!=this.pu&&(this.pu.start>a?b=Math.min(0,b-(this.pu.start-a)):this.pu.start<a&&(b=0));return b};A("NodeSetWrapper.prototype.getCount",{getCount:Lr.prototype.getCount});Lr.prototype.getData=function(a){return this.pb.getData(a)};
A("NodeSetWrapper.prototype.getData",{getData:Lr.prototype.getData});Lr.prototype.getMetadata=function(a){var b;b=this.pb.getMetadata(a);b.index=a;b.parentKey=this.getParent();this.wi.call(null,b.key,b);return b};A("NodeSetWrapper.prototype.getMetadata",{getMetadata:Lr.prototype.getMetadata});Lr.prototype.Cf=function(a){return null!=this.Kh&&-1!=this.Kh.indexOf(this.pb.getMetadata(a).key)||!this.pb.Cf||(a=this.pb.Cf(a),null==a)?null:new Lr(a,this.wi,null,this.Kh)};
A("NodeSetWrapper.prototype.getChildNodeSet",{Cf:Lr.prototype.Cf});function Mr(a,b){this.Id=a;this.Y=b||{};Mr.o.constructor.call(this)}t("FlattenedTreeDataSource",Mr,w);H(Mr,Qf,"oj.FlattenedTreeDataSource");
Mr.prototype.Init=function(){var a;Mr.o.Init.call(this);this.Id.on("change",this.vaa.bind(this));this.YM=parseInt(this.Y.fetchSize,10);isNaN(this.YM)&&(this.YM=25);this.Km=parseInt(this.Y.maxCount,10);isNaN(this.Km)&&(this.Km=500);a=this.Y.expanded;Array.isArray(a)?this.ll=a:("all"===a&&(this.Kh=[]),this.ll=[]);this.Rc=[]};A("FlattenedTreeDataSource.prototype.Init",{Init:Mr.prototype.Init});Mr.prototype.handleEvent=function(a,b){return Mr.o.handleEvent.call(this,a,b)};
A("FlattenedTreeDataSource.prototype.handleEvent",{handleEvent:Mr.prototype.handleEvent});Mr.prototype.Me=function(){delete this.Rc;delete this.ll;delete this.Kh;this.Id.off("change");this.Id.Me&&this.Id.Me()};A("FlattenedTreeDataSource.prototype.Destroy",{Me:Mr.prototype.Me});Mr.prototype.ri=function(){return this.YM};Mr.prototype.mD=function(){return this.ll};A("FlattenedTreeDataSource.prototype.getExpandedKeys",{mD:Mr.prototype.mD});Mr.prototype.Tx=function(a){return null!=this.Y?this.Y[a]:null};
A("FlattenedTreeDataSource.prototype.getOption",{Tx:Mr.prototype.Tx});Mr.prototype.getWrappedDataSource=function(){return this.Id};A("FlattenedTreeDataSource.prototype.getWrappedDataSource",{getWrappedDataSource:Mr.prototype.getWrappedDataSource});function Nr(a,b){var c,d;c=a.ri();d=a.Km;return-1===c?-1===b?d:b:-1===b?Math.min(c,b):c}Mr.prototype.$k=function(a,b){this.Ps()?Or(this,a,b):Pr(this,a,b)};
function Pr(a,b,c){var d,e,f,h,k,l;if(b.start>Qr(a)){d=a.Km-(Qr(a)+1);if(0>Qr(a)){b.count=Math.min(d,b.count);a.Id.fetchChildren(null,b,{success:function(a){this.Nn(a,null,0,b,0,c)}.bind(a),error:function(a){this.dm(a,c)}.bind(a)});return}if(0<d){e=a.Rc[Qr(a)];f=e.parent;h=a.Id.getChildCount(f);k=e.index;l=e.depth;-1===h||k<h-1?(e=Nr(a,h),b.start=k+1,b.count=-1===h?Math.min(e,b.count):Math.min(d,Math.min(Math.min(e,b.count),h-b.start)),a.Id.fetchChildren(f,b,{success:function(a){this.Nn(a,f,l,b,h,
c)}.bind(a),error:function(a){this.dm(a,c)}.bind(a)})):k===h-1?(a=new Fr(null,b.start),null!=c&&null!=c.success&&c.success.call(null,a)):(a=Rr(a,f,l,c,d),a||(a=new Fr(null,b.start),null!=c&&null!=c.success&&c.success.call(null,a)));return}}a.tM(b,c)}Mr.prototype.moveOK=function(a,b,c){return this.Id.moveOK(a,b,c)};A("FlattenedTreeDataSource.prototype.moveOK",{moveOK:Mr.prototype.moveOK});Mr.prototype.move=function(a,b,c,d){this.Id.move(a,b,c,d)};A("FlattenedTreeDataSource.prototype.move",{move:Mr.prototype.move});
Mr.prototype.dm=function(a,b){null!=b&&null!=b.error&&b.error.call(null,a)};
Mr.prototype.Nn=function(a,b,c,d,e,f){var h;h=[];d=a=new Lr(a,this.Zx.bind(this),d);var k,l,m,n;k=d.getStart();l=d.getCount();for(m=0;m<l;m++)n=d.getMetadata(k+m),n=n.key,Sr(this,n,c,k+m,b),Tr(this,n)&&h.push(n);-1===e&&0===a.getCount()&&null!=b&&0<c?(h=Rr(this,b,c,f))||null!=f&&null!=f.success&&f.success.call(null,a):0===h.length?null!=f&&null!=f.success&&f.success.call(null,a):(b=[],b.push(h),h={},h.callbacks=f,h.nodeSet=a,h.keys=[],Ur(this,b,h))};Mr.prototype.getChildCount=function(a){return this.Id.getChildCount(a)};
A("FlattenedTreeDataSource.prototype.getChildCount",{getChildCount:Mr.prototype.getChildCount});
function Rr(a,b,c,d,e){var f,h,k,l,m,n,p,q,r;void 0===e&&(e=a.Km-(Qr(a)+1));"enable"===a.Id.getCapability("batchFetch")&&(f={queueOnly:!0});h=r=Nr(a,-1);for(k=Qr(a)-1;0<=k;k--)if(l=a.Rc[k],m=l.depth,m<c&&(b=l.parent,n=a.Id.getChildCount(b),l=l.index,(p=-1===n)||l<n-1)){q={};q.start=l+1;p?(q.count=Math.min(e,Math.max(0,h)),f=void 0):q.count=Math.min(e,Math.min(h,n-q.start));if(0==q.count)break;a.Id.fetchChildren(b,q,{success:function(a){this.Nn(a,b,m,q,n,d)}.bind(a),error:function(a){this.dm(a,d)}.bind(a)},
f);c=m;h=Math.max(0,h-q.count);if(p||0===m||0===h)break}void 0!=f&&a.Id.fetchChildren(b,{start:q.count,count:0},{success:function(a){this.Nn(a,b,m,q,n,d)}.bind(a),error:function(a){this.dm(a,d)}.bind(a)});return h!=r}Mr.prototype.Zx=function(a,b){Tr(this,a)&&!b.leaf?b.state="expanded":b.state=b.leaf?"leaf":"collapsed"};
function Or(a,b,c){var d={maxCount:a.Km};0<=Qr(a)&&(d.start=a.Rc[Qr(a)].key);a.Id.fetchDescendants(null,{success:function(a){var d,h,k;b.start>Qr(this)?(d=this.Km-(Qr(this)+1),h=Math.min(d,b.count),a=new Lr(a,this.Zx.bind(this),null,this.Kh),0<=Qr(this)?(k=this.Rc[Qr(this)],d={index:0,found:!1,count:0},Vr(this,a,null,0,k,h,d),h=d.index+1):(d={count:0},Vr(this,a,null,0,null,h,d),h=0),null!=c&&null!=c.success&&(a=null!=d?0===d.count?new Fr(null,b.start):new Gr(a,h):new Gr(a),c.success.call(null,a))):
this.tM(b,c)}.bind(a),error:function(a){this.dm(a,c)}.bind(a)},d)}Mr.prototype.getSortCriteria=function(){return this.Id.getSortCriteria()};A("FlattenedTreeDataSource.prototype.getSortCriteria",{getSortCriteria:Mr.prototype.getSortCriteria});
function Vr(a,b,c,d,e,f,h){var k,l,m,n,p;k=b.getStart();l=b.getCount();for(m=0;m<l&&h.count!=f;m++){n=b.getMetadata(k+m);p=n.key;h.checkDepth&&e.depth===d&&(h.found=!0,h.checkDepth=!1);if(null==e||h.found)Sr(a,p,d,k+m,c),h.count+=1,n.state=n.leaf?"leaf":"expanded";null==e||h.found||(p===e.key?n.leaf||Tr(a,p)?h.found=!0:h.checkDepth=!0:h.index+=1);b.Cf&&Tr(a,p)&&(n=b.Cf(m),null!=n&&Vr(a,n,p,d+1,e,f,h))}}Mr.prototype.expand=function(a){this.Zd(a)};A("FlattenedTreeDataSource.prototype.expand",{expand:Mr.prototype.expand});
Mr.prototype.Zd=function(a,b){var c,d,e,f;c=this.Id.getChildCount(a);d=Nr(this,c);e=this.Km;if(Qr(this)+1===e&&(f=this.Fh(a),f==e-1)){Wr(this,a,new Fr(a,0),0,b);return}0==d?Wr(this,a,new Fr(a,0),0,b):this.Id.fetchChildren(a,{start:0,count:d},{success:function(d){Wr(this,a,d,c,b)}.bind(this),error:function(){this.handleEvent("expand",{rowKey:a})}.bind(this)})};
Mr.prototype.collapse=function(a){var b,c,d,e,f;b=this.Fh(a)+1;c=this.Rc[b-1];d=0;c=c.depth;e=Qr(this);for(f=b;f<e+1;f++){var h=this.Rc[f].depth;if(h>c)d+=1;else if(h==c)break}if(0!=d){this.Ps()?this.Kh.push(a):(c=Xr(this.ll,a),-1<c&&this.ll.splice(c,1));e=[];for(c=0;c<d;c++)e.push({key:this.Rc[b+c].key,index:b+c});this.Rc.splice(b,d);this.yE(e)}this.handleEvent("collapse",{rowKey:a})};A("FlattenedTreeDataSource.prototype.collapse",{collapse:Mr.prototype.collapse});
function Tr(a,b){return a.Ps()?a.Kh&&0<a.Kh.length?-1===Xr(a.Kh,b):!0:a.ll&&0<a.ll.length?-1<Xr(a.ll,b):!1}function Xr(a,b){var c,d;d=-1;for(c=0;c<a.length;c++)a[c]===b&&(d=c);return d}
function Wr(a,b,c,d,e){var f,h,k,l,m,n,p,q,r,s,u;c=new Lr(c,a.Zx.bind(a));h=f=a.Fh(b)+1;k=c.getStart();l=c.getCount();m=a.Rc[f-1];n=m.depth+1;q=[];for(r=k;r<l;r++){k=c.getMetadata(r);p=k.key;Tr(a,p)&&q.push(p);p=a;var v=m.key,y=r,z=n,B=void 0,B=k.key;f<=Qr(p)?Sr(p,B,z,y,v,f):Sr(p,B,z,y,v);f++}a.Ps()?(m=Xr(a.Kh,b),-1<m&&a.Kh.splice(m,1)):-1===a.ll.indexOf(b)&&a.ll.push(b);void 0!=e&&(s=e.queue,u=e.prevNodeSetInfo);void 0!=u&&(c=new Jr(u.nodeSet,c,b));if(0!=q.length||void 0!==s&&0!=s.length)void 0===
s&&(s=[]),0<q.length&&s.push(q),void 0===u&&(u={},u.firstIndex=h,u.firstKey=b,u.keys=[]),u.nodeSet=c,u.keys.push(b),Ur(a,s,u);else{if(void 0!=u){e=u.callbacks;if(null!=e){e.success.call(null,c);return}a.ED(u.firstIndex,u.firstKey,c)}else a.ED(h,b,c);c=a.Km;-1===d&&l===a.ri()||d>l||f==c?Yr(a,f):Qr(a)>=c&&Yr(a,c);if(void 0!=u)for(d=0;d<u.keys.length;d++)a.handleEvent("expand",{rowKey:u.keys[d]});a.handleEvent("expand",{rowKey:b})}}
function Ur(a,b,c){var d,e;d=b[b.length-1];e=d.shift();0===d.length&&b.pop();a.Zd(e,{prevNodeSetInfo:c,queue:b})}function Yr(a,b,c){var d;void 0==c&&(c=Qr(a)+1-b);d=[];for(var e=0;e<c;e++)d.push({key:a.Rc[b+e].key,index:b+e});a.Rc.splice(b,c);a.yE(d)}
Mr.prototype.vaa=function(a){var b,c,d;b=a.operation;c=a.parent;d=Array.isArray(c)?c[c.length-1]:c;c=a.index;if("insert"===b){b=a.data;var e;e=this.Fh(d);a=this.Rc[e].depth+1;e=e+c+1;b=b.getMetadata(b.getStart()).key;e<=Qr(this)?Sr(this,b,a,c,d,e):Sr(this,b,a,c,d)}else if("delete"===b){d=this.Fh(d);a=this.Rc[d];c=d+c;d=this.Rc[c];w.i.assert(d.parent===a&&d.depth===a.depth+1);a=c+1;for(b=Qr(this);a<=b;){e=this.Rc[a];if(e.depth!=d.depth)break;a++}Yr(this,c,1)}else"refresh"===b&&null==d&&this.refresh()};
Mr.prototype.Ps=function(){var a=this.Id.getCapability("fetchDescendants");return void 0!=this.Kh&&null!=a&&"disable"!=a};Mr.prototype.refresh=function(){this.Rc.length=0};g=Mr.prototype;g.Fh=function(a){var b,c,d;b=Qr(this);for(c=0;c<=b;c++)if(d=this.Rc[c],d.key==a)return c;return-1};g.getKey=function(a){return 0>a||a>Qr(this)?null:this.Rc[a].key};g.Gha=function(){return{start:0,end:Qr(this)+1}};g.tM=function(a,b){null!=b&&null!=b.error&&b.error.call(null)};g.ED=function(){w.i.Yb()};g.yE=function(){w.i.Yb()};
function Qr(a){return a.Rc.length-1}g.kj=function(a){a=this.Rc[a];return null!=a?a.parent:null};function Sr(a,b,c,d,e,f){var h={};h.key=b;h.depth=c;h.index=d;h.parent=e;void 0===f?a.Rc.push(h):a.Rc.splice(f,0,h)}Mr.prototype.getCapability=function(a){return this.Id.getCapability(a)};A("FlattenedTreeDataSource.prototype.getCapability",{getCapability:Mr.prototype.getCapability});
w.sa("oj.ojRowExpander",$.oj.baseComponent,{version:"1.0.0",widgetEventPrefix:"oj",options:{context:null,expand:null,collapse:null},Vk:{root:"oj-rowexpander",icon:"oj-component-icon",clickable:"oj-clickable-icon-nocontext",expand:"oj-rowexpander-expand-icon",collapse:"oj-rowexpander-collapse-icon",leaf:"oj-rowexpander-leaf-icon",lazyload:"oj-rowexpander-lazyload-icon",toucharea:"oj-rowexpander-touch-area",indent:"oj-rowexpander-indent",iconspacer:"oj-rowexpander-icon-spacer",depth0:"oj-rowexpander-depth-0",
depth1:"oj-rowexpander-depth-1",depth2:"oj-rowexpander-depth-2",depth3:"oj-rowexpander-depth-3",depth4:"oj-rowexpander-depth-4",depth5:"oj-rowexpander-depth-5",depth6:"oj-rowexpander-depth-6",depth7:"oj-rowexpander-depth-7"},Kt:{Tu:7,gF:53},_ComponentCreate:function(){this._super();this.element.addClass(this.Vk.root);this.XU()},XU:function(){var a=this,b;b=this.options.context;this.u="function"===typeof b.component?b.component("instance"):b.component;this.ic=b.datasource;this.depth=b.depth;this.Ih=
b.state;this.Wm=b.key;this.index=b.index;this.sE=b.parentKey;this.P5();this.O5();this.oC();"expanded"===this.Ih||"collapsed"===this.Ih?($(this.LN).on("touchend",function(b){b.preventDefault();a.SH()}),$(this.LN).on("click",function(b){b.preventDefault();a.SH()}),$(this.element).on("keypress",function(b){var d=b.keyCode||b.which;if(d===$.ui.keyCode.ENTER||d===$.ui.keyCode.SPACE)a.SH(),b.preventDefault(),b.target.focus()}),this.BD=this.sU.bind(this),$(this.u.element).on("ojkeydown",this.BD),this.T_=
this.N$.bind(this),this.P_=this.v$.bind(this),this.ic.on("expand",this.T_,this),this.ic.on("collapse",this.P_,this)):"leaf"===this.Ih&&(this.BD=this.sU.bind(this),$(this.u.element).on("ojkeydown",this.BD),$(this.icon).attr("tabindex",-1));this.O_=this.m$.bind(this);$(this.u.element).on("ojbeforecurrentcell",this.O_)},refresh:function(){this.element.empty();this.XU()},_destroy:function(){$(this.u.element).off("ojkeydown",this.BD);$(this.u.element).off("ojbeforecurrentcell",this.O_);this.ic.off("expand",
this.T_,this);this.ic.off("collapse",this.P_,this);this.element.removeClass(this.Vk.root);this.element.empty()},_setOption:function(a,b,c){this._super(a,b,c);"context"==a&&null!=c._context&&!0!=c._context.internalSet&&this.refresh()},P5:function(){var a,b;b=this.depth-1;if(b<this.Kt.Tu)this.oG(b);else{for(a=1;a<=b/this.Kt.Tu;a++)this.oG(this.Kt.Tu);a=b%this.Kt.Tu;a<this.Kt.Tu&&this.oG(a)}},oG:function(a){a=$(document.createElement("span")).addClass(this.Vk.indent).addClass(this.Vk["depth"+a]);this.element.append(a)},
O5:function(){var a;a=$(document.createElement("div")).addClass(this.Vk.iconspacer);this.LN=$(document.createElement("div")).addClass(this.Vk.toucharea);this.icon=$(document.createElement("a")).attr("href","#").attr("aria-labelledby",this.AT()).addClass(this.Vk.icon).addClass(this.Vk.clickable);this.element.append(a.append(this.LN.append(this.icon)));this._focusable({element:this.icon,applyHighlight:!0})},Ap:function(a){this.icon.addClass(this.Vk[a])},xq:function(a){this.icon.removeClass(this.Vk[a])},
oC:function(){switch(this.Ih){case "leaf":this.xq("icon");this.xq("clickable");this.Ap("leaf");break;case "collapsed":this.Ap("expand");this.Wz(!1);break;case "expanded":this.Ap("collapse");this.Wz(!0);break;case "loading":this.xq("clickable"),this.Ap("lazyload")}},hK:function(){switch(this.Ih){case "leaf":this.xq("leaf");this.Ap("icon");this.Ap("clickable");break;case "collapsed":this.xq("expand");break;case "expanded":this.xq("collapse");break;case "loading":this.xq("lazyload"),this.Ap("clickable")}},
m$:function(a,b){var c,d;null!=b.currentCell&&(c="cell"==b.currentCell.type?b.currentCell.keys.row:b.currentCell.key,null!=b.previousValue&&(d="cell"==b.previousCurrentCell.type?b.previousCurrentCell.keys.row:b.previousCurrentCell.key),this.Wm===c&&d!=c&&this.u.iC&&(c=this.r("accessibleRowDescription",{level:this.depth,num:this.index+1,total:this.ic.getWrappedDataSource().getChildCount(this.sE)}),d="collapsed"===this.Ih?this.r("accessibleStateCollapsed"):"expanded"===this.Ih?this.r("accessibleStateExpanded"):
"",this.u.iC({context:c,state:d})))},sU:function(a,b){var c,d,e;if(this.Wm===b.rowKey&&(a=a.originalEvent,c=a.keyCode||a.which,w.q.Hm(a))){if(c==$.ui.keyCode.RIGHT&&"collapsed"===this.Ih)return this.DJ(),this.ic.expand(this.Wm),!1;if(c==$.ui.keyCode.LEFT&&"expanded"===this.Ih)return this.DJ(),this.ic.collapse(this.Wm),!1;if(a.altKey&&c==this.Kt.gF&&this.u.iC){c=this.ic;var f;e=[];f=c.Fh(this.Wm);for(f=c.kj(f);null!=f;)e.push(f),f=c.Fh(f),f=c.kj(f);c=e.reverse();if(null!=c&&0<c.length)for(d=[],e=0;e<
c.length;e++)d.push({key:c[e],label:this.r("accessibleLevelDescription",{level:e+1})});c=this.r("accessibleRowDescription",{level:this.depth,num:this.index+1,total:this.ic.getWrappedDataSource().getChildCount(this.sE)});this.u.iC({context:c,state:"",ancestors:d})}}return!0},DJ:function(){this.hK();this.Ih="loading";this.oC()},N$:function(a){a=a.rowKey;a===this.Wm&&(this.hK(),this.Ih="expanded",this.oC(),this.Wz(!0),this._trigger("expand",null,{rowKey:a}),this.TY("expanded"))},v$:function(a){a=a.rowKey;
a===this.Wm&&(this.hK(),this.Ih="collapsed",this.oC(),this.Wz(!1),this._trigger("collapse",null,{rowKey:a}),this.TY("collapsed"))},TY:function(a){var b=this.options.context;b.state=a;this._setOption("context",b,{changed:!0,_context:{internalSet:!0}})},SH:function(){var a=this.Ih;this.DJ();"collapsed"===a?this.ic.expand(this.Wm):"expanded"===a&&this.ic.collapse(this.Wm)},Wz:function(a){this.icon.attr("aria-expanded",a)},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;
a=a.subId;return"oj-rowexpander-disclosure"!==a&&"oj-rowexpander-icon"!==a||null==this.icon?null:this.icon.get(0)},getSubIdByNode:function(a){return a===this.icon.get(0)?{subId:"oj-rowexpander-disclosure"}:null},Ml:function(){this._super();this.icon.attr("aria-labelledby",this.AT())},AT:function(){return this.element.parent().closest("[id]").attr("id")}});
w.Components.xa("ojRowExpander","baseComponent",{properties:{context:{type:"Object"}},methods:{getNodeBySubId:{},getSubIdByNode:{},refresh:{}},extension:{_widgetName:"ojRowExpander"}});w.Components.register("oj-row-expander",w.Components.getMetadata("ojRowExpander"));function Zr(a){this._init(a)}
Zr.prototype._init=function(a){this.ac=a;this.wC=this.xx=!1;this.yC=$.proxy(this.bga,this);this.vx=$.proxy(this.$fa,this);this.SK=$.proxy(this.aga,this);this.ac.on({touchstart:this.yC,touchend:this.vx,touchmove:this.SK,touchcancel:this.vx})};Zr.prototype._destroy=function(){this.ac&&this.yC&&(this.ac.off({touchstart:this.yC,touchmove:this.SK,touchend:this.vx,touchcancel:this.vx}),this.SK=this.vx=this.yC=void 0)};
function $r(a,b){if(!(1<a.originalEvent.touches.length)){"touchstart"!=a.type&&"touchend"!=a.type&&a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvent");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null);c.target.dispatchEvent(d)}}Zr.prototype.bga=function(a){this.xx||(this.xx=!0,this.wC=!1,$r(a,"mouseover"),$r(a,"mousemove"),$r(a,"mousedown"))};Zr.prototype.aga=function(a){this.xx&&(this.wC=!0,$r(a,"mousemove"))};
Zr.prototype.$fa=function(a){this.xx&&($r(a,"mouseup"),$r(a,"mouseout"),this.wC||"touchend"!=a.type||$r(a,"click"),this.xx=!1)};function as(a){a=$(a);var b=a.data("_ojTouchProxy");b||(b=new Zr(a),a.data("_ojTouchProxy",b));return b}function bs(a){a=$(a);var b=a.data("_ojTouchProxy");b&&(b._destroy(),a.removeData("_ojTouchProxy"))}w.Ir={};
w.Ir.bc={viewPath:"text!views/",viewSuffix:".html",modelPath:"viewModels/",initializeMethod:"initialize",disposeMethod:"dispose",activatedHandler:"handleActivated",attachedHandler:"handleAttached",detachedHandler:"handleDetached",bindingsAppliedHandler:"handleBindingsApplied",deactivatedHandler:"handleDeactivated",transitionCompletedHandler:"handleTransitionCompleted"};t("ModuleBinding.defaults",w.Ir.bc,w);
(function(){function a(a,b,d,e,f,h,k){var q=b.canAnimate;if(null==q||q.call(b,a)){var n,p;if(q=b.prepareAnimation.call(b,a))n=q.newViewParent,p=q.oldViewParent;var G=n||d;p&&p!==d?c(e,p):G===d&&h(null);G!==d&&ko.virtualElements.setDomNodeChildren(G,[]);f(G);var E=Array.prototype.slice.call(G.childNodes),D=!1,J=function(){D||(D=!0,d!==G&&(l(d,E),w.Components&&(m(E,w.Components.af),m(E,w.Components.me))))},Q=h.bind(null,p);a.newViewParent=n;a.oldViewParent=p;a.oldViewNodes=e;a.removeOldView=Q;a.insertNewView=
J;var P=function(){Q();J();k()};return b.animate.call(b,a).then(P,function(){P();w.l.error("ojModule animation promise was rejected")})}}function b(a,b,c){b=b||a;var d=[];c&&a===b&&(c.parentNode.removeChild(c),d.push(c));ko.virtualElements.setDomNodeChildren(b,d)}function c(a,b){a.forEach(function(a){b.appendChild(a)})}function d(a,b,c){if(a&&a[b]){var d={element:c[0],valueAccessor:c[1]};2<c.length&&(d.viewModel=c[2],3<c.length&&(d["boolean"===typeof c[3]?"fromCache":"cachedNodes"]=c[3]));return ko.ignoreDependencies(a[b],
a,[d])}}function e(a,b,c){if(null!=a&&(b=w.Ir.bc[b],null!=b&&a&&(b=a[b],"function"===typeof b))){var d=void 0;c&&(d={element:c[0],valueAccessor:c[1]},2<c.length&&(d["boolean"===typeof c[2]?"fromCache":"cachedNodes"]=c[2]));return ko.ignoreDependencies(b,a,[d])}}function f(a,b,c){var d=[];for(a=ko.virtualElements.firstChild(a);null!=a&&a!=c;a=a.nextSibling)a!=b&&d.push(a);return d}function h(a,b){var c=[],d=ko.virtualElements.firstChild(a);k(d,b,function(a){c.push(a)});return c}function k(a,b,c){for(;null!=
a;){var d=ko.virtualElements.nextSibling(a),e=a.nodeType;a===b||1!==e&&8!==e||c(a);a=d}}function l(a,b){for(var c=b.length-1;0<=c;c--)ko.virtualElements.prepend(a,b[c])}function m(a,b){if(b)for(var c=0;c<a.length;c++)b(a[c])}function n(a){if("string"===typeof a)a=ko.utils.parseHtmlFragment(a);else if(window.DocumentFragment?a instanceof DocumentFragment:a&&11===a.nodeType)a=ko.utils.arrayPushAll([],a.childNodes);else if(Array.isArray(a))a=ko.utils.arrayPushAll([],a);else throw"The View ("+a+") has an unsupported type";
return a}function p(a){return new Promise(function(b,c){require([a],function(a){b(a)},function(b){w.l.error("ojModule failed to load "+a);c(b)})})}function q(a){return a?new Promise(function(b){a.then(b,b)}):a}ko.bindingHandlers.ojModule={init:function(r,s,u,v,y){function z(a){if(a!=E)throw Q;}function B(a){e(a,"disposeMethod",[r,s])}var C,F,I={},G,E=-1,D,J;ko.utils.domNodeDisposal.addDisposeCallback(r,function(){B(C);for(var a=Object.keys(I),b=0;b<a.length;b++)B(I[a[b]].Mo)});var Q=Error("Promise cancelled because ojModule is fetching new View and ViewModel");
8===r.nodeType&&(ko.virtualElements.setDomNodeChildren(r,[]),J=r.nextSibling);ko.computed(function(){E++;var u=0===E,v=ko.utils.unwrapObservable,K=v(s()),ha,ra,ia,Aa,fa,Nb,Qa,Xb;"string"===typeof K?ha=K:(ha=v(K.name),ra=v(K.viewName),ia=v(K.params),Aa=v(K.viewModelFactory),fa=v(K.createViewFunction),Nb=v(K.cacheKey),Qa=v(K.lifecycleListener),Xb=v(K.animation));var v=d(Qa,"activated",[r,s]),Fa,na,$a=null==Nb?null:I[Nb];if(null!=$a)delete I[Nb],Fa=Promise.resolve($a.view),na=Promise.resolve($a.Mo);
else if(null!=Aa&&(na=ko.ignoreDependencies(Aa.createViewModel,Aa,[ia,s])),null==na&&null!=ha&&(na=p(w.Ir.bc.modelPath+ha)),null!=na&&(na=na.then(function(a,b){z(a);return b="function"===typeof b?new b(ia):e(b,"initializeMethod",[r,s])||b}.bind(null,E)),null!=fa&&(Fa=na.then(function(a,b){z(a);if(null==b)throw"createViewFunction option cannot be used when the ViewModel is null";var c=b[fa];if(null==c)throw"function specified by the createViewFunction option was not found on the ViewModel";return c.call(b)}.bind(null,
E)))),null==Fa)if(ra=null==ra?ha:ra,null!=ra)Fa=p(w.Ir.bc.viewPath+ra+w.Ir.bc.viewSuffix);else throw Error("View name must be specified");if(null==Fa)throw Error("ojModule is missing a View");var Hc;null!=na&&(Hc=na.then(function(a,b){z(a);return e(b,"activatedHandler",[r,s])}.bind(null,E)));Promise.all([Fa,na,v,Hc,F]).then(function(p,v){if(p==E){var z=v[0];if(null==z)throw"The module's View was resolved to null";var Q=n(z),K=v[1],U=!1,ha,fa=f(r,D,J),na=h(r,D);null!=G&&(U=!0,ha=fa,D||(D=document.createElement("div"),
D.className="oj-helper-module-cache",ko.virtualElements.prepend(r,D)));var ra=!1,z=function(a){ra||(ra=!0,U?c(fa,D):na.forEach(function(a){ko.cleanNode(a)}),b(r,a||r,D),u||(d(Qa,"detached",[r,s,C,ha]),e(C,"detachedHandler",[r,s,ha]),d(Qa,"deactivated",[r,s,C]),e(C,"deactivatedHandler",[r,s])),U?(m(ha,w.Components?w.Components.Wo:null),I[G]={Mo:C,view:ha}):B(C),C=K,G=Nb)},Rg=function(a){a=a||r;l(a,Q);var b=null!=$a;b&&m(Q,w.Components?w.Components.Zm:null);d(Qa,"attached",[a,s,K,b]);e(K,"attachedHandler",
[a,s,b]);if(!b){var c=y.createChildContext(K,void 0,function(a){a.$module=K;a.$params=ia});k(Q[0],D,function(a){ko.applyBindings(c,a)});d(Qa,"bindingsApplied",[a,s,K]);e(K,"bindingsAppliedHandler",[a,s])}},db=function(){d(Qa,"transitionCompleted",[r,s,K]);e(K,"transitionCompletedHandler",[r,s])};if(null!=Xb){var mi=a({node:r,valueAccessor:s,isInitial:u,oldViewModel:C,newViewModel:K},Xb,r,fa,Rg,z,db);F=q(mi)}else F=void 0;F||(z(null),Rg(null),db())}}.bind(null,E),function(a,b){b!==Q&&null!=b&&w.l.error(b)}.bind(null,
E))},null,{disposeWhenNodeIsRemoved:r});return{controlsDescendantBindings:!0}}};ko.virtualElements.allowedBindings.ojModule=!0})();
(function(){function a(a,b,c){a:{for(var d=p[a],e=0;e<d.length;++e){var f=d[e];if(0<=c.indexOf(f))for(;;b=b.parentNode){var h=w.Components.Pb(b,f);if(h){c=h;break a}}}c=null}return c?c("option","chroming"):(w.Ob.Tc("oj-"+a+"-option-defaults")||{}).chroming}function b(a,b){var c=a.name,d=a.form;c?(c=c.replace(/'/g,"\\'"),c=":radio[name\x3d'"+c+"']:oj-button",d=b?b.filter(c):d?$(d).find(c):$(c,a.ownerDocument).filter(function(){return!this.form})):d=(b?b.filter(a):$(a)).filter(":oj-button");return d}
function c(a,b){a.removeClass(m).addClass(n[b])}w.sa("oj.ojButton",$.oj.baseComponent,{defaultElement:"\x3cbutton\x3e",widgetEventPrefix:"oj",options:{chroming:"full",disabled:!1,display:"all",label:null,icons:{start:null,end:null},menu:null},Vd:function(a,b){this._super(a,b);this.dba();"disabled"in b||this.option("disabled",!!this.element.prop("disabled"),{_context:{Ia:!0}});"label"in b||(this.Eia=!0,this.option("label","inputPush"===this.type?this.td.val():this.td.html(),{_context:{Ia:!0}}));!this.options.menu||
b.icons&&void 0!==b.icons.end||this.option("icons.end","oj-component-icon oj-button-menu-dropdown-icon",{_context:{kc:!0,Ia:!0}})},_ComponentCreate:function(){function a(){b.BJ=Date.now();b.jb.removeClass(l);b.jb.removeClass("oj-hover");b.mi()}this._super();this.element.closest("form").unbind("reset"+f).bind("reset"+f,function(){var a=$(this);setTimeout(function(){a.find(":oj-button").each(function(){$(this).data("oj-ojButton").Uz(!1)}).length||a.unbind("reset"+f)},1)});this.Hy=this.eventNamespace+
"menu";this.eba();this.wM=!!this.jb.attr("title");var b=this,k=this.Aw,l=k?"":"oj-active";this.jb.addClass(h);c(this.jb,this.options.chroming);this.document.bind("touchend"+this.eventNamespace+" touchcancel"+this.eventNamespace,a);this.td.bind("touchstart"+this.eventNamespace,function(){b.Wd()||($(this).addClass(l),b.mi())}).bind("touchend"+this.eventNamespace+" touchcancel"+this.eventNamespace,a).bind("mouseenter"+this.eventNamespace,function(){b.Wd()||b.Zw()||(this===d&&b.jb.addClass("oj-active"),
b.jb.addClass("oj-hover").removeClass("oj-default oj-focus-only"))}).bind("mouseleave"+this.eventNamespace,function(){b.jb.removeClass("oj-hover");b.Wd()||(b.jb.removeClass(l),b.mi())});this.tS=function(a){b.Wd()&&(a.preventDefault(),a.stopImmediatePropagation())};this.td[0].addEventListener("click",this.tS,!0);this._focusable({element:this.jb,applyHighlight:!0,afterToggle:function(){b.mi()}});k&&(this.element.bind("change"+this.eventNamespace,function(a){b.Uz(!0);var c=b.o9("buttonset"),d=c&&c.dT(c.Kd);
c&&void 0!==d&&c.option("checked",d,{_context:{kc:!0,originalEvent:a,Ia:!0}})}),this.td.bind("mousedown"+this.eventNamespace,function(){b.Wd()||(e=this,b.document.one("mouseup",function(){e=null}))}).bind("mouseup"+this.eventNamespace,function(){b.Wd()||this!==e||b.element.focus()}));"checkbox"===this.type?(this.td.bind("click"+this.eventNamespace,function(){if(b.Wd())return!1}),this.element.bind("keyup"+this.eventNamespace,function(a){a.keyCode===$.ui.keyCode.ENTER&&(b.Wd()||b.element.click())})):
"radio"===this.type?(this.td.bind("click"+this.eventNamespace,function(){if(b.Wd())return!1}),this.element.bind("keyup"+this.eventNamespace,function(a){a.keyCode!==$.ui.keyCode.ENTER||b.element[0].checked||b.Wd()||(b.element[0].checked=!0,b.element.change(),b.element.click())})):(this.td.bind("mousedown"+this.eventNamespace,function(a){if(b.Wd())return!1;1!==a.which||b.Zw()||($(this).addClass("oj-active").removeClass("oj-default oj-focus-only"),d=this,b.document.one("mouseup",function(){d=null}))}).bind("mouseup"+
this.eventNamespace,function(){if(b.Wd())return!1;$(this).removeClass("oj-active");b.mi()}).bind("keydown"+this.eventNamespace,function(a){if(b.Wd())return a.keyCode===$.ui.keyCode.TAB||a.keyCode===$.ui.keyCode.LEFT||a.keyCode===$.ui.keyCode.RIGHT;var c=a.keyCode===$.ui.keyCode.SPACE,d="anchor"===b.type;d&&c&&a.preventDefault();(c&&!d||a.keyCode===$.ui.keyCode.ENTER)&&$(this).addClass("oj-active").removeClass("oj-default oj-focus-only")}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,
function(){$(this).removeClass("oj-active");b.mi()}),"anchor"===this.type&&(k=this.td.attr("tabindex"),("undefined"===k||null===k||isNaN(k))&&this.td.attr("tabindex","0")));this.options.disabled&&this.EJ(!1,!0);this.lL();this.qaa();this.bY(null);this.mi()},Zw:function(){return 500>Date.now()-this.BJ},Se:function(a,b,c){this.Te(b,c,{position:{of:"keyboard"===c?this.jb:b}})},dba:function(){if(this.element.is("input[type\x3dcheckbox]"))this.type="checkbox",this.Aw=!0;else if(this.element.is("input[type\x3dradio]"))this.type=
"radio",this.Aw=!0;else if(this.element.is("input[type\x3dbutton],input[type\x3dsubmit],input[type\x3dreset]"))this.type="inputPush";else if(this.element.is("button"))this.type="button";else if(this.element.is("a"))this.type="anchor";else throw Error("JET Button not supported on this element type");if(this.Aw){var a="label[for\x3d'"+this.element.attr("id")+"']";this.td=this.element.siblings().filter(a)}else this.td=this.element},eba:function(){this.Aw?(this.td.addClass("oj-button-label"),this.element.addClass("oj-button-input oj-helper-hidden-accessible").add(this.td).wrapAll("\x3cspan\x3e\x3c/span\x3e"),
this.jb=this.element.parent(),this.jb.addClass("oj-button-toggle"),this.element[0].checked&&this.jb.addClass("oj-selected").removeClass("oj-default oj-focus-only")):this.jb=this.element},widget:function(){return this.jb},_destroy:function(){this.lX(this.options.menu);this.document.off(this.eventNamespace);this.td[0].removeEventListener("click",this.tS,!0);this.element.removeClass("oj-helper-hidden-accessible").removeAttr("aria-labelledby").removeUniqueId();this.options.disabled&&this.EJ(!0,!1);var a=
this.Aw;a||this.jb.removeClass(h+" "+k+" "+l+" "+m);this.td.html(this.td.find(".oj-button-text").html());a?(this.td.removeClass("oj-button-label"),w.q.unwrap(this.element)):this.wM||this.jb.removeAttr("title");e===this.td[0]&&(e=null)},xg:function(){this._super();this.mi()},rv:function(a){this._super(a);this.lL()},lL:function(){var a=this.Wd();this.jb.toggleClass("oj-disabled",a);this.jb.toggleClass("oj-enabled",!a);"anchor"!==this.type?(this.element.prop("disabled",a),this.jb.removeAttr("aria-disabled")):
this.jb.attr("aria-disabled",a);a?(this.widget().removeClass("oj-active oj-default oj-focus-only oj-hover oj-focus oj-focus-highlight"),d=null,this.wH(this.options.menu)):this.mi()},_setOption:function(a,b,d){var e=this.options[a];this._super(a,b,d);switch(a){case "chroming":c(this.jb,b);break;case "disabled":this.EJ(e,b);this.lL();break;case "label":this.Vea();break;case "display":"inputPush"!==this.type&&this.mC();break;case "icons":this.Sea(!0);break;case "menu":this.bY(e)}},refresh:function(){this._super();
this.GQ&&!this.OA("buttonset").length&&this.rv(!1);c(this.jb,this.options.chroming)},Uz:function(a){"radio"===this.type?(a?b(this.element[0]):this.element).each(function(){var a=$(this).data("oj-ojButton");this.checked?a.jb.addClass("oj-selected").removeClass("oj-default oj-focus-only"):(a.jb.removeClass("oj-selected"),a.mi())}):"checkbox"===this.type&&(this.element[0].checked?this.jb.addClass("oj-selected").removeClass("oj-default oj-focus-only"):(this.jb.removeClass("oj-selected"),this.mi()))},
qaa:function(){if("inputPush"===this.type)this.PX();else{var a=this.Uea(),b=this.nC(!0),c=this.nC(!1);this.mC(a,b,c)}},Uea:function(){var a=this.td,b=$("\x3cspan class\x3d'oj-button-text'\x3e\x3c/span\x3e",this.document[0]);this.Eia?b.append(a.contents()):(a.empty(),b.text(this.options.label));"button"===this.type?(a=$("\x3cdiv\x3e\x3c/div\x3e").addClass("oj-button-label"),a.append(b),this.element.append(a)):a.append(b);if("button"===this.type||"anchor"===this.type)b.uniqueId(),this.element.attr("aria-labelledby",
b.attr("id"));return b},Vea:function(){if("inputPush"===this.type)this.PX();else{var a=this.td.find(".oj-button-text");a.text(this.options.label);this.mC(a)}},PX:function(){this.options.label&&this.element.val(this.options.label)},Sea:function(){if("inputPush"!==this.type){var a=this.nC(!0),b=this.nC(!1);this.mC(void 0,a,b)}},nC:function(a){var b=this.td;"button"===this.type&&(b=this.element.children("div.oj-button-label"));if(a){var c=".oj-button-icon.oj-start";a="oj-button-icon oj-start";var d=
this.options.icons.start,e="_lastStartIcon",f="prependTo"}else c=".oj-button-icon.oj-end",a="oj-button-icon oj-end",d=this.options.icons.end,e="_lastEndIcon",f="appendTo";c=b.find(c);d?(c.length?c.removeClass(this[e]):c=$("\x3cspan\x3e\x3c/span\x3e").addClass(a)[f](b),c.addClass(d)):c.remove();this[e]=d;return!!d},mC:function(a,b,c){void 0===a&&(a=this.td.find(".oj-button-text"));void 0===b&&(b=!!this.options.icons.start);void 0===c&&(c=!!this.options.icons.end);var d=b&&c;c=b||c;var e="icons"===
this.options.display;c&&e?(a.addClass("oj-helper-hidden-accessible"),this.wM||(a=a.text(),this.jb.attr("title",$.trim(a)))):(a.removeClass("oj-helper-hidden-accessible"),this.wM||this.jb.removeAttr("title"));b=c?e?d?"oj-button-icons-only":"oj-button-icon-only":d?"oj-button-text-icons":b?"oj-button-text-icon-start":"oj-button-text-icon-end":"oj-button-text-only";this.jb.removeClass(l).addClass(b)},EJ:function(a,b){if(!a!=!b&&"anchor"===this.type&&!this.OA("buttonset").length&&!this.OA("toolbar").length)if(b){var c=
this.element.attr("tabindex");this.qW=this.Kba(Number(c))?c:null;this.element.attr("tabindex",-1)}else null==this.qW?this.element.removeAttr("tabindex"):this.element.attr("tabindex",this.qW)},Kba:function(a){return"number"===typeof a&&isFinite(a)&&Math.floor(a)===a},Hea:{buttonset:".oj-buttonset",toolbar:".oj-toolbar"},a7:{buttonset:"ojButtonset",toolbar:"ojToolbar"},OA:function(a){return this.jb.closest(this.Hea[a])},o9:function(a){return(a=w.Components.Pb(this.OA(a)[0],this.a7[a]))&&a("instance")},
bY:function(a){if(this.options.menu&&this.element.is("input"))throw Error("Menu Button functionality is not supported on input elements.");this.lX(a);if(this.options.menu){var b=this;this.element.attr("aria-haspopup",!0).on("keydown"+this.Hy,function(a){if(a.which===$.ui.keyCode.DOWN)b.iY(a,"firstItem"),a.preventDefault();else if(a.which===$.ui.keyCode.ESCAPE){var c=b.G6(b.jb);b.wH(b.options.menu,a);return c}return!0}).on("click"+this.Hy,function(a){var c=b.DT();c.Pz||b.iY(a,"firstItem");c.Pz=!1;
a.preventDefault();return!0})}},G6:function(a){return!a.hasClass("oj-selected")},lX:function(a){this.element.removeAttr("aria-haspopup").off(this.Hy);this.wH(a);$(a).off(this.Hy);this.$V=!1},DT:function(){var a=this.ET(this.options.menu);if(!a)throw Error('JET Button: "menu" option specified, but does not reference a valid JET Menu.');if(!this.$V){var b=this;a.widget().on("ojclose"+this.Hy,function(a){b.pca(a)});this.$V=!0}return a},ET:function(a){return(a=w.Components.Pb($(a)[0],"ojMenu"))&&a("instance")},
iY:function(a,b){if(!this.Wd()){var c=this.DT(),d=c.widget();c.open(a,{launcher:this.element,initialFocus:b});d.is(":visible")&&(this.bW=!0,d.attr("aria-label")||d.attr("aria-labelledby")||(this.element.uniqueId(),this.JX=!0,d.attr("aria-labelledby",this.element.attr("id"))),this.jb.addClass("oj-selected").removeClass("oj-default oj-focus-only"))}},wH:function(a,b){if(this.bW){var c=this.ET(a);c&&(c.Nz(b,!0),c.yp(b))}},pca:function(){this.JX&&($(this.options.menu).removeAttr("aria-labelledby"),this.JX=
!1);this.jb.removeClass("oj-selected");this.mi();this.bW=!1},mi:function(){var a,b;this.jb.is(".oj-hover, .oj-active, .oj-selected, .oj-disabled")?b=a=!1:(b=this.jb.is(".oj-focus"),a=!b);this.jb.toggleClass("oj-default",a);this.jb.toggleClass("oj-focus-only",b)}});w.sa("oj.ojButtonset",$.oj.baseComponent,{JV:"button, input[type\x3dbutton], input[type\x3dsubmit], input[type\x3dreset], input[type\x3dcheckbox], input[type\x3dradio], a",widgetEventPrefix:"oj",options:{checked:null,chroming:"full",focusManagement:"oneTabstop"},
kx:function(a,b){var c=$.type(a),d;if("null"===c||"array"===c)d=b.filter("input[type\x3dcheckbox]").length===b.length;if(d&&"null"===c)throw Error("Invalid 'checked' value set on JET Buttonset: "+a);if("string"===c||"null"===c)(c=((c=b[0].name)||1>=b.length)&&b.filter("input[type\x3dradio][name\x3d"+c+"]").length===b.length&&(null===a||b.filter("[value\x3d"+a+"]").length))&&b.each(function(){this.checked=this.value===a}),c=c||null===a;else if("array"===c){var e;(c=d&&a.concat().sort().every(function(a){var c=
a!==e&&b.filter("[value\x3d"+a+"]").length;e=a;return c}))&&b.each(function(){this.checked=-1<a.indexOf(this.value)})}else c=!1;if(!c)throw Error("Invalid 'checked' value set on JET Buttonset: "+a);},dT:function(a){var b=void 0,c=null,d=null;a.each(function(){if("input"!==this.tagName.toLowerCase())return b=void 0,!1;var a=this.type.toLowerCase(),e;if("radio"===a)a=!0,e=this.name.toLowerCase();else if("checkbox"===a)a=!1,e=null;else return b=void 0,!1;if(void 0!==b&&(a!==c||e!==d||c&&!d))return b=
void 0,!1;void 0===b?(b=a?this.checked?this.value:null:this.checked?[this.value]:[],c=a,d=e):this.checked&&(c?b=this.value:b.push(this.value))});return b},ev:function(a,b,c){return"checked"===a?b===c?!0:"array"===$.type(b)&&"array"===$.type(c)&&this.Z6(b,c):this._superApply(arguments)},Z6:function(a,b){return!a.some(function(a){return 0>b.indexOf(a)})&&!b.some(function(b){return 0>a.indexOf(b)})},Vd:function(a,b){this._super(a,b);this.Kd=this.element.find(this.JV);if(!("checked"in b)){this.xM=!0;
var c=this.dT(this.Kd);"array"===$.type(c)&&(this.options.checked=[]);void 0!==c&&this.option("checked",c,{_context:{Ia:!0}})}},_ComponentCreate:function(){this._super();this.element.attr(w.Components.Zj,this.widgetName).addClass("oj-buttonset oj-component");this.ZX(this.options.focusManagement);this.Aa(!0)},Se:function(a,b,c){a=this.element.find(":oj-button[tabindex\x3d0]");this.Te(b,c,{launcher:a,position:{of:"keyboard"===c?a.ojButton("widget"):b}})},Zn:function(a){a=!!a;this.Kd.each(function(){$(this).data("oj-ojButton").rv(a)})},
ZX:function(a){"oneTabstop"===a?this.element.attr("role","toolbar"):this.element.removeAttr("role")},_setOption:function(a,b,d){this._superApply(arguments);"disabled"===a?this.Zn(b):"checked"===a?(this.kx(b,this.Kd),this.Kd.each(function(){$(this).data("oj-ojButton").Uz(!1)})):"focusManagement"===a?this.ZX(b):"chroming"===a&&(c(this.element,b),this.Kd.ojButton("refresh"))},refresh:function(){this._super();this.Aa(!1)},Aa:function(a){var b=this;this.Jh="rtl"===this.$b();c(this.element,this.options.chroming);
a?this.xM||this.kx(this.options.checked,this.Kd):this.Kd=this.element.find(this.JV);this.element.toggleClass("oj-buttonset-multi",1<this.Kd.length);this.Kd.filter(":oj-button").ojButton("refresh").each(function(){$(this).data("oj-ojButton").Uz(!1)}).end().not(":oj-button").ojButton().end().map(function(){return $(this).ojButton("widget")[0]}).removeClass("oj-buttonset-first oj-buttonset-last").filter(":first").addClass("oj-buttonset-first").end().filter(":last").addClass("oj-buttonset-last").end().end();
this.Zn(this.options.disabled);"oneTabstop"===this.options.focusManagement&&(this.Kd.unbind("keydown"+this.eventNamespace).bind("keydown"+this.eventNamespace,function(a){b.Xp(a,$(this))}).unbind("click"+this.eventNamespace).bind("click"+this.eventNamespace,function(){$(this).data("oj-ojButton").Wd()||b.Bq($(this))}).unbind("focus"+this.eventNamespace).bind("focus"+this.eventNamespace,function(){b.Bq($(this))}),this.Dl=this.Kd.filter(function(){return!$(this).data("oj-ojButton").Wd()}),this.mJ(a))},
mJ:function(a){var b=$(this.lq);this.lq=void 0;this.Kd.attr("tabindex","-1");a=a||!b.is(this.Dl)?this.Dl.first():b;this.Bq(a)},FJ:function(a){var c=this.Dl;return a.map(function(a,d){if("radio"!=d.type||d.checked||""==d.name)return d;var e=b(d,c).filter(":checked");return e.length?e[0]:d})},Bq:function(a){a=this.FJ(a);var b=a[0],c=this.lq;b!==c&&($(c).attr("tabindex","-1"),a.attr("tabindex","0"),this.lq=b)},Xp:function(a,b){switch(a.which){case $.ui.keyCode.LEFT:case $.ui.keyCode.RIGHT:a.preventDefault();
var c=this.Dl,d=c.length;if(2>d)break;var e=c.index(b);c.eq((e+(a.which==$.ui.keyCode.RIGHT^this.Jh?1:-1)+d)%d).focus();break;case $.ui.keyCode.UP:case $.ui.keyCode.DOWN:"radio"==b.attr("type")&&a.preventDefault()}},_destroy:function(){this.element.removeClass("oj-buttonset oj-component "+m).removeAttr(w.Components.Zj).removeAttr("role");"oneTabstop"===this.options.focusManagement&&this.Kd.attr("tabindex","0");this.Kd.map(function(){return $(this).ojButton("widget")[0]}).removeClass("oj-buttonset-first oj-buttonset-last").end().ojButton("destroy")}});
var d,e,f=".ojButton",h="oj-button oj-component oj-enabled oj-default",k="oj-hover oj-active oj-selected",l="oj-button-icons-only oj-button-icon-only oj-button-text-icons oj-button-text-icon-start oj-button-text-icon-end oj-button-text-only",m="oj-button-full-chrome oj-button-half-chrome oj-button-outlined-chrome",n={full:"oj-button-full-chrome",half:"oj-button-half-chrome",outlined:"oj-button-outlined-chrome"},p={button:["ojButtonset","ojToolbar"],buttonset:["ojToolbar"]};w.Components.Rj({ojButton:{chroming:w.Components.ad(function(b){return a("button",
b.element,b.containers)})},ojButtonset:{chroming:w.Components.ad(function(b){return a("buttonset",b.element,b.containers)})}})})();w.Components.xa("ojButton","baseComponent",{properties:{chroming:{type:"string"},disabled:{type:"boolean"},display:{type:"string"},icons:{type:"Object"},label:{type:"string"},menu:{type:"string"}},methods:{destroy:{},refresh:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"button",_widgetName:"ojButton"}});w.Components.register("oj-button",w.Components.getMetadata("ojButton"));
w.Components.xa("ojToggleButton","baseComponent",{properties:{chroming:{type:"string"},disabled:{type:"boolean"},display:{type:"string"},icons:{type:"Object"},label:{type:"string"},menu:{type:"string"}},methods:{destroy:{},refresh:{},widget:{}},extension:{_hasWrapper:!0,_defaultAttrs:{type:"checkbox"},_innerElement:"input",_widgetName:"ojButton"}});w.Components.register("oj-toggle-button",w.Components.getMetadata("ojToggleButton"));
w.Components.xa("ojButtonset","baseComponent",{properties:{checked:{type:"string|Array\x3cstring\x3e"},chroming:{type:"string"},disabled:{type:"boolean"},focusManagement:{type:"string"}},methods:{destroy:{},refresh:{},widget:{}},extension:{_widgetName:"ojButtonset"}});w.Components.register("oj-buttonset",w.Components.getMetadata("ojButtonset"));
w.sa("oj.ojTrain",$.oj.baseComponent,{version:"1.0.0",defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{steps:[],selected:"",optionChange:null,beforeDeselect:null,deselect:null,beforeSelect:null,select:null},Fe:0,eb:null,_ComponentCreate:function(){this._super();this.eY()},eY:function(){var a=this.options,b=a.steps;this.Fe=b.length;this.Pg=$("\x3cdiv class\x3d'oj-train-wrapper'\x3e\x3c/div\x3e");this.Pg.appendTo(this.element);this.kA=$("\x3cdiv class\x3d'oj-train-connector-wrapper'\x3e\x3c/div\x3e");
this.kA.appendTo(this.Pg);var c=this.element.attr("class");(this.sY=null!=c&&0<=c.indexOf("oj-train-stretch"))&&this.kA.css("padding","0 "+100/(2*this.Fe)+"%");this.AR=$("\x3cdiv class\x3d'oj-train-connector'\x3e\x3c/div\x3e");this.AR.appendTo(this.kA);this.ge=$("\x3cul\x3e");this.ge.addClass("oj-train-step-list");this.fH=$("\x3cdiv class\x3d'oj-train-connector-fill'\x3e\x3c/div\x3e");this.fH.appendTo(this.kA);this.kfa();this.yj=this.Hs(a.selected);-1===this.yj&&b[0]&&b[0].id&&(this.yj=0,a.selected=
b[0].id);for(a=0;a<this.Fe;a++)b=$("\x3cli\x3e").addClass("oj-train-step-list-item").attr({id:this.eb[a][1]}),c=this.eb[a][4],"confirmation"===c?b.addClass("oj-confirmation"):"info"===c?b.addClass("oj-info"):"error"===c||"fatal"===c?b.addClass("oj-invalid"):"warning"===c&&b.addClass("oj-warning"),b.appendTo(this.ge),this.v8(a),this.y8(a),this.u8(a),this.t8(a),this.z8(a),this.w8(a),this.sY&&b.css("width",100/this.Fe+"%");this.fH.css({width:(this.Fe-1===this.yj?100:100/(2*(this.Fe-1))+this.yj/(this.Fe-
1)*100)+"%"});this.ge.appendTo(this.Pg);this.element.addClass("oj-train")},kfa:function(){var a=this.options;this.eb=[];for(var b=0;b<this.Fe;b++){var c=a.steps[b];this.eb[b]=Array(5);this.eb[b][0]=c.label?c.label:null;this.eb[b][1]=c.id?c.id:null;this.eb[b][2]=c.disabled?!0:!1;this.eb[b][3]=c.visited?!0:!1;this.eb[b][4]=c.messageType?c.messageType:null}},t8:function(a){var b=$("\x3cdiv/\x3e").addClass("oj-train-button"),c=$("\x3cspan/\x3e"),d=this,e="";if(this.eb[a]){var f=this.eb[a][3],h=this.eb[a][2];
this.yj===a?(b.addClass("oj-selected"),e=" current "):f&&!h?(b.addClass("oj-visited"),e=" visited "):f||h?b.addClass("oj-disabled"):(b.addClass("oj-default"),e=" not visited ");this.eb[a][2]||this.yj===a||(this.ld(b),this.jh(b),b.on("click"+this.eventNamespace,function(a){d.FA("selected",d.options.selected,this.parentNode.parentNode.id,a);d.refresh()}));f=this.ge.children().eq(a).find(".oj-train-button-connector");1<=f.length&&f.children().remove();f.append(b);c.text(e);c.addClass("oj-helper-hidden-accessible");
this.ge.children().eq(a).find("a").append(c)}},w8:function(a){if(this.eb[a]&&this.eb[a][4]){var b=$("\x3cdiv/\x3e").addClass("oj-train-icon oj-component-icon"),c=$("\x3cspan/\x3e"),d="",e=this,f=this.eb[a][4];"confirmation"===f?(b.addClass("oj-confirmation"),d=" Confirmation "):"info"===f?(b.addClass("oj-info"),d=" Info "):"error"===f?(b.addClass("oj-error"),d=" Error "):"fatal"===f?(b.addClass("oj-error"),d=" Error "):"warning"===f&&(b.addClass("oj-warning"),d=" Warning ");var h=this.ge.children().eq(a).find(".oj-train-button");
2<=h.children().length&&h.children()[1].remove();if(!this.eb[a][2]&&this.yj!==a)b.on("click"+this.eventNamespace,function(a){e.FA("selected",e.options.selected,this.parentNode.parentNode.parentNode.id,a);e.refresh()});null!=f&&(c.text(d),c.addClass("oj-helper-hidden-accessible"),this.ge.children().eq(a).find("a").append(c),h.append(b))}},FA:function(a,b,c,d){a={option:a,fromStep:this.getStep(b),toStep:this.getStep(c),optionMetadata:{writeback:d?"shouldWrite":"shouldNotWrite"}};!1!==this._trigger("beforeDeselect",
d,a)&&!1!==this._trigger("beforeSelect",d,a)&&(b=this.Hs(b),-1!==b&&(this.options.steps[b].visited=!0),this._trigger("deselect",d,a),this.option("selected",c,{_context:{originalEvent:d,Ia:!0}}),this._trigger("select",d,a))},z8:function(a){var b=$("\x3cdiv/\x3e").addClass("oj-train-button-text");b.append((a+1).toString());this.ge.children().eq(a).find(".oj-train-button").append(b)},u8:function(a){if(a!=this.Fe-1){var b=$("\x3cdiv/\x3e").addClass("oj-train-step-individual-connector");this.ge.children().eq(a).prepend(b)}},
y8:function(a){var b=$("\x3cdiv/\x3e");b.addClass("oj-train-button-connector");this.eb[a]&&(a<=this.yj&&b.addClass("oj-train-fill"),a=this.ge.children().eq(a).children(),b.insertBefore(a))},v8:function(a){var b=this;if(this.eb[a]){var c=$("\x3cdiv/\x3e").addClass("oj-train-label-wrapper"),d=$("\x3ca\x3e");d.text(this.eb[a][0]);var e=this.eb[a][2];c.append(d);d.addClass("oj-train-label");a===this.yj?d.addClass("oj-selected"):this.eb[a][3]&&!e?d.addClass("oj-visited"):e&&d.addClass("oj-disabled");e||
(d.attr("href","#"),this.ld(d),this.jh(d),d.on("click keydown"+this.eventNamespace,function(a){if(a.keyCode===$.ui.keyCode.ENTER||"click"===a.type)a.preventDefault(),b.FA("selected",b.options.selected,this.parentNode.parentNode.id,a),b.refresh(),a.keyCode===$.ui.keyCode.ENTER&&b.Mg(this.parentNode.parentNode.id)}));d=this.ge.children().eq(a).children();2<=d.length&&d[1].remove();this.ge.children().eq(a).append(c)}},Hs:function(a){for(var b=0;b<this.Fe;b++)if(this.eb[b]&&this.eb[b][1]===a)return b;
return-1},getStep:function(a){for(var b=0;b<this.Fe;b++)if(this.eb[b]&&this.eb[b][1]===a)return $.extend({},this.options.steps[b]);return null},nextSelectableStep:function(){for(var a=this.Hs(this.options.selected);a<this.Fe;a++)if(a+1<this.Fe&&this.eb[a+1]&&!this.eb[a+1][2])return this.eb[a+1][1];return null},previousSelectableStep:function(){for(var a=this.Hs(this.options.selected);0<=a;a--)if(this.eb[a-1]&&!this.eb[a-1][2])return this.eb[a-1][1];return null},setStep:function(a){if(a.id){var b=
this.getStep(a.id),c=this.Hs(a.id);-1!==c&&(c=this.options.steps[c],a.label&&(b[0]=a.label,c.label=a.label),"boolean"===typeof a.disabled&&(b[2]=a.disabled,c.disabled=a.disabled),"boolean"===typeof a.visited&&(b[3]=a.visited,c.visited=a.visited),a.messageType&&(b[4]=a.messageType,c.messageType=a.messageType));this.refresh()}},_setOptions:function(a){this._super(a);this.refresh()},_setOption:function(a,b,c){"selected"===a&&this.options.selected&&this.eb&&this.eb[this.yj]&&this.FA("selected",this.eb[this.yj][1],
b,null);this._super(a,b,c)},refresh:function(){this._super();this._destroy();this.eY()},_destroy:function(){this.ge.children().each(function(){$(this).remove()});this.element.removeClass("oj-train");this.element.find(".oj-train-wrapper").remove();this.element.find(".oj-train-connector-wrapper").remove();this.element.find(".oj-train-step-list").remove();this.element.find(".oj-train-step-list").remove();this._super()},Mg:function(a){a=this.Hs(a);for(var b=0;b<this.Fe;b++)if(this.eb[(a+b+1)%this.Fe]&&
!this.eb[(a+b+1)%this.Fe][2]){this.ge.children().eq((a+b+1)%this.Fe).find(".oj-train-label").focus();break}},getNodeBySubId:function(a){if(null===a)return this.element?this.element[0]:null;var b=a.index;if("number"!==typeof b||0>b||b>=this.Fe)return null;switch(a.subId){case "oj-train-step":return this.ge.children().eq(b)[0];case "oj-train-button":return this.ge.children().eq(b).find(".oj-train-button")[0];case "oj-train-button-connector":return this.ge.children().eq(b).find(".oj-train-button-connector")[0];
case "oj-train-connector":return this.AR;case "oj-train-connector-fill":return this.fH;case "oj-train-icon":return this.ge.children().eq(b).find(".oj-train-icon")[0];case "oj-train-label":return this.ge.children().eq(b).find(".oj-train-label")[0]}return null},getSubIdByNode:function(a){for(var b=this.eb?this.eb.length:0,c=0;c<b;c++){var d={subId:"oj-train-step",index:c};if(a===this.getNodeBySubId(d))return d}return null}});
w.Components.xa("ojTrain","baseComponent",{properties:{selected:{},steps:{}},methods:{getStep:{},nextSelectableStep:{},previousSelectableStep:{},refresh:{},setStep:{}},extension:{_widgetName:"ojTrain"}});w.Components.register("oj-train",w.Components.getMetadata("ojTrain"));
function cs(a,b){this.data=a||{};if(!(a instanceof Array)&&"function"!=typeof a&&"function"!=typeof a.subscribe)throw Error(Tf._ERR_DATA_INVALID_TYPE_SUMMARY+"\n"+Tf._ERR_DATA_INVALID_TYPE_DETAIL);null!=b&&null!=b.idAttribute||w.l.info(ds._INFO_ARRAY_TABLE_DATASOURCE_IDATTR);cs.o.constructor.call(this,a,b);this.md=[];this.fa={};if(null!=a&&void 0!==a&&(this.iJ=null,null!=b&&null!=b.idAttribute&&(this.iJ=b.idAttribute),this.b=a instanceof Array?a:a(),this.sd=this.b.length,!(a instanceof Array))){var c=
this;a.subscribe(function(a){if(null!=c.fa&&null!=c.fa.data){var b,f=[],h=[];for(b=0;b<a.length;b++)"deleted"===a[b].status&&f.push(a[b].value);c.remove(f,null);f=[];h=[];for(b=0;b<a.length;b++)"added"===a[b].status&&(f.push(a[b].value),h.push(a[b].index));c.add(f,{at:h})}},null,"arrayChange")}if(null!=b&&("enabled"==b.startFetch||null==b.startFetch)||null==b)this.qx=!0}t("ArrayTableDataSource",cs,w);H(cs,Sf,"oj.ArrayTableDataSource");cs.prototype.oi=null;
A("ArrayTableDataSource.prototype.comparator",{oi:cs.prototype.oi});cs.prototype.sortCriteria=null;A("ArrayTableDataSource.prototype.sortCriteria",{sortCriteria:cs.prototype.sortCriteria});cs.prototype.Init=function(){cs.o.Init.call(this)};A("ArrayTableDataSource.prototype.Init",{Init:cs.prototype.Init});
cs.prototype.add=function(a,b){b=b||{};es(this);var c=a,d=b.at,e,f,h;e=b||{};var k=e.silent,l={data:[],keys:[],indexes:[]};c instanceof Array||(c=[c]);null==d||d instanceof Array||(d=[d]);for(e=0;e<c.length;e++)if(h=c[e],null!=h){f=fs(this,h);l.data.push(this.ni(h));l.keys.push(f);if(!0==this.Dfa&&0<this.fa.data.length)for(f=0;f<this.fa.data.length;f++)if(0>gs(h,this.fa.data[f],this.ew(),this)){this.fa.data.splice(f,0,h);l.indexes.push(f);break}else{if(f==this.fa.data.length-1){this.fa.data.push(h);
l.indexes.push(f+1);break}}else null==d?(this.fa.data.push(h),l.indexes.push(this.fa.data.length-1)):(this.fa.data.splice(d[e],0,h),l.indexes.push(d[e]));this.sd++;this.Yw()}!k&&0<l.data.length&&Sf.o.handleEvent.call(this,R.ADD,l);return Promise.resolve(l)};A("ArrayTableDataSource.prototype.add",{add:cs.prototype.add});cs.prototype.at=function(a){es(this);var b;b=0>a||a>=this.fa.data.length?null:{data:this.fa.data[a],index:a,key:fs(this,this.fa.data[a])};return new Promise(function(a){a(b)})};
A("ArrayTableDataSource.prototype.at",{at:cs.prototype.at});cs.prototype.change=function(a,b){b=b||{};es(this);var c=b.silent,d,e,f,h,k={data:[],keys:[],indexes:[]};a instanceof Array||(a=[a]);for(d=0;d<a.length;d++)e=a[d],null!=e&&(f=fs(this,e),h=this.uh(f,null),k.data.push(this.ni(e)),k.keys.push(f),k.indexes.push(h.index),this.fa.data[h.index]=e);!c&&0<k.data.length&&Sf.o.handleEvent.call(this,R.CHANGE,k);return Promise.resolve(k)};A("ArrayTableDataSource.prototype.change",{change:cs.prototype.change});
cs.prototype.fetch=function(a){a=a||{};return"init"!=a.fetchType||this.qx?this.we(a):Promise.resolve()};A("ArrayTableDataSource.prototype.fetch",{fetch:cs.prototype.fetch});cs.prototype.get=function(a,b){b=b||{};es(this);return Promise.resolve(this.uh(a,b))};A("ArrayTableDataSource.prototype.get",{get:cs.prototype.get});cs.prototype.getCapability=function(){return"full"};A("ArrayTableDataSource.prototype.getCapability",{getCapability:cs.prototype.getCapability});
cs.prototype.remove=function(a,b){b=b||{};es(this);return this.yq(a,b)};A("ArrayTableDataSource.prototype.remove",{remove:cs.prototype.remove});cs.prototype.reset=function(a,b){b=b||{};b.previousRows=this.fa;var c=b.silent;null!=a&&(this.b=a);this.fa={};this.sd=0;c||Sf.o.handleEvent.call(this,R.RESET,null);return Promise.resolve()};A("ArrayTableDataSource.prototype.reset",{reset:cs.prototype.reset});
cs.prototype.sort=function(a){null==a?a=this.sortCriteria:this.sortCriteria=a;es(this);var b=this;return new Promise(function(c){a=a||{};var d=b.ew();b.fa.data.sort(function(a,c){return gs(a,c,d,b)});b.Dfa=!0;var e={header:a.key,direction:a.direction};Sf.o.handleEvent.call(b,R.SORT,e);c(e)})};A("ArrayTableDataSource.prototype.sort",{sort:cs.prototype.sort});cs.prototype.totalSize=function(){return this.sd};A("ArrayTableDataSource.prototype.totalSize",{totalSize:cs.prototype.totalSize});
function es(a){if(null==a.fa||null==a.fa.data)a.data instanceof Array||"function"!=typeof a.data||"function"!=typeof a.data.subscribe||(a.b=a.data()),a.fa=a.YA(a.b),a.sd=a.b.length}g=cs.prototype;
g.we=function(a){a=a||{};this.px(a);es(this);var b;try{b=0<a.pageSize?a.pageSize:-1;this.W||(this.W=0);this.W=null==a.startIndex?this.W:a.startIndex;var c,d=this.fa,e=d.data.length-1;0<b&&(e=this.W+b-1,e=e>d.data.length-1?d.data.length-1:e);c=e;var d=[],e=[],f,h,k;for(f=this.W;f<=c;f++)h=fs(this,this.fa.data[f]),k=this.ni(this.fa.data[f]),d[f-this.W]=k,e[f-this.W]=h}catch(l){return this.cj(a,null,l),Promise.reject(l)}c<this.W&&(this.W=c+1);a.pageSize=b;a.startIndex=this.W;a.refresh=!0;b={data:d,keys:e,
startIndex:this.W};this.cj(a,b,null);return Promise.resolve(b)};g.uh=function(a){var b,c,d,e,f=null;for(b=0;b<this.fa.data.length;b++)if(d=this.fa.data[b],void 0!==d)if(e=fs(this,d),$.isArray(e)&&$.isArray(a)){if(e.length==a.length){var h=!0;for(c=0;c<a.length;c++)if(e[c]!=a[c]){h=!1;break}h&&(c=this.ni(d),f={data:c,key:e,index:this.fa.indexes[b]})}}else e==a&&(c=this.ni(d),f={data:c,key:e,index:this.fa.indexes[b]});return f};
g.ew=function(){var a=this.comparator;if(null==a){var b=this.sortCriteria.key,c=this.sortCriteria.direction;"ascending"==c?a=function(a){return $.isFunction(a[b])?a[b]():a[b]}:"descending"==c&&(a=function(a,c){var f,h;$.isFunction(a[b])?(f=a[b](),h=c[b]()):(f=a[b],h=c[b]);return f===h?0:f>h?-1:1})}return a};g.Yw=function(){for(var a=0;a<this.fa.data.length;a++)this.fa.indexes[a]=a};
g.yq=function(a,b){var c,d;b=b||{};var e=b.silent,f={data:[],keys:[],indexes:[]};a instanceof Array||(a=[a]);var h=[];for(c=0;c<a.length;c++)d=a[c],null!=d&&(d=fs(this,d),d=this.uh(d,null),null!=d&&h.push({data:d.data,key:d.key,index:d.index}));h.sort(function(a,b){return a.index-b.index});for(c=0;c<h.length;c++)f.data.push(h[c].data),f.keys.push(h[c].key),f.indexes.push(h[c].index);for(c=f.indexes.length-1;0<=c;c--)this.fa.data.splice(f.indexes[c],1),this.fa.indexes.splice(f.indexes[c],1),this.sd--,
this.Yw();!e&&0<f.data.length&&Sf.o.handleEvent.call(this,R.REMOVE,f);return Promise.resolve(f)};g.px=function(a){a.silent||Sf.o.handleEvent.call(this,R.REQUEST,{startIndex:a.startIndex})};g.cj=function(a,b,c){null!=c?Sf.o.handleEvent.call(this,R.ERROR,c):a.silent||Sf.o.handleEvent.call(this,R.SYNC,b)};function hs(a,b,c){if("descending"==c){if(a<b)return 1;if(b<a)return-1}else{if(a>b)return 1;if(b>a)return-1}return 0}function is(a,b){return $.isFunction(a[b])?a[b]():a[b]}
g.YA=function(a){var b=a.length-1,c={},d,e;c.data=[];c.indexes=[];this.rn=null;for(d=0;d<=b;d++){var f={},h=a[d];for(e in h)h.hasOwnProperty(e)&&(f[e]=h[e],0==d&&(null==this.rn&&(this.rn=[]),this.rn.push(e)));c.data[d]=f;c.indexes[d]=d}return c};
function fs(a,b){var c,d=a.cI(b);if($.isArray(d)){var e;c=[];for(e=0;e<d.length;e++)if(d[e]in b)c[e]=is(b,d[e]);else throw c=w.ba.Db(ds._ERR_ARRAY_TABLE_DATASOURCE_IDATTR_NOT_IN_ROW,[d[e]]),Error(c);}else if(d in b)c=is(b,d);else throw c=w.ba.Db(ds._ERR_ARRAY_TABLE_DATASOURCE_IDATTR_NOT_IN_ROW,[d]),Error(c);return c}g.cI=function(a){if(null!=this.iJ)return this.iJ;if(null==this.rn){this.rn=[];for(var b in a)a.hasOwnProperty(b)&&this.rn.push(b)}return this.rn.hasOwnProperty("id")?"id":this.rn};
function gs(a,b,c,d){var e,f=d.sortCriteria.direction;if($.isFunction(c)){if(1===c.length){e=c.call(d,a);d=c.call(d,b);a=w.Ca.ed(e)?e.split(","):[e];b=w.Ca.ed(d)?d.split(","):[d];for(c=0;c<a.length;c++)if(e=hs(a[c],b[c],f),0!==e)return e;return 0}return c.call(d,a,b)}if(w.Ca.ed(c)){var h=c.split(",");for(c=0;c<h.length;c++)if(e=is(a,h[c]),d=is(b,h[c]),e=hs(e,d,f),0!==e)return e}return 0}g.ni=function(a){var b={},c,d=Object.keys(a);for(c=0;c<d.length;c++)js(b,a,d[c]);return b};
function js(a,b,c){Object.defineProperty(a,c,{get:function(){return b[c]},set:function(a){b[c]=a},enumerable:!0})}var ds={_INFO_ARRAY_TABLE_DATASOURCE_IDATTR:"idAttribute option has not been specified. Will default to using 'id' if the field exists. If not, will use all the fields.",_ERR_ARRAY_TABLE_DATASOURCE_IDATTR_NOT_IN_ROW:"Specified idAttribute {0} not in row data. Please ensure all specified idAttribute fields are in the row data or do not specify idAttribute and all fields will be used as id."};
w.D={};t("AnimationUtils",w.D,w);
w.D.as=function(a,b,c,d,e,f){var h=$(a),k=[].concat(e);return(new Promise(function(a){function m(){p||(h.off("transitionend webkitTransitionEnd",n),a(!0),p=!0)}function n(a){a=k.indexOf(a.originalEvent.propertyName);-1<a&&(1<k.length?k.splice(a,1):m())}var p=!1;null==c.css&&(c.css={});c.css.transition=w.D.Q7(e,d);var q=w.D.Aea(h,b,c,d,f||e);w.D.JQ(h,b,1<q);h.on("transitionend webkitTransitionEnd",n);window.setTimeout(function(){w.D.JQ(h,c,1<q);setTimeout(m,w.D.aR(h)+100)},20)})).then(function(){b&&
b.addClass&&h.removeClass(b.addClass);c&&c.addClass&&h.removeClass(c.addClass);w.D.vea(h)})};w.D.AX=function(a,b,c,d){for(var e in b)if(b=w.D.bT(e),!(c.hasOwnProperty(b)||d&&-1!=d.indexOf(b))){var f=a[0].style;c[b]=void 0===f[b]?f[w.D.gU(b)]:f[b]}};w.D.Aea=function(a,b,c,d,e){var f=a.data("_ojSavedStyle")||{};b=b&&b.css?b.css:{};c=c&&c.css?c.css:{};d&&"all"===d.persist||(e=null);w.D.AX(a,b,f,e);w.D.AX(a,c,f,e);a.data("_ojSavedStyle",f);d=a.data("_ojEffectCount")||0;a.data("_ojEffectCount",++d);return d};
w.D.vea=function(a){var b=a.data("_ojEffectCount");if(1<b)a.data("_ojEffectCount",b-1);else if(b=a.data("_ojSavedStyle"))a.css(b),a.removeData("_ojSavedStyle"),a.removeData("_ojEffectCount")};w.D.bT=function(a){if(0<=a.indexOf("-")){var b="";a=a.split("-");for(var c=0;c<a.length;c++){var d=a[c];d&&(b=b?b+(d.charAt(0).toUpperCase()+d.slice(1)):d)}return b}return a};w.D.t9=function(a){return a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};
w.D.gU=function(a){return"webkit"+a.charAt(0).toUpperCase()+a.slice(1)};w.D.zR=function(a,b,c,d,e){b.css[c]&&(c=w.D.bT(c),(a=a[0].style[c]||a[0].style[w.D.gU(c)])&&0!=a.indexOf(d)&&(b.css[c]=a+e+b.css[c]))};w.D.JQ=function(a,b,c){b&&(b.css&&(c&&(w.D.zR(a,b,"transform","none"," "),w.D.zR(a,b,"transition","all",", ")),a.css(b.css)),b.addClass&&a.addClass(b.addClass),b.removeClass&&a.removeClass(b.removeClass))};
w.D.$Q=function(a,b,c){b=a.css(b);var d=a.css(c+"Delay");c=a.css(c+"Duration");a=d.split(",");c=c.split(",");b=b.split(",").length;for(var d=a.length,e=c.length,f=0,h=0;h<b;h++){var k=c[h%e],k=-1<k.indexOf("ms")?parseFloat(k):1E3*parseFloat(k);if(0<k)var l=a[h%d],l=-1<l.indexOf("ms")?parseFloat(l):1E3*parseFloat(l),f=Math.max(f,l+k)}return f};w.D.aR=function(a){var b=w.D.$Q(a,"animationName","animation");a=w.D.$Q(a,"transitionProperty","transition");return Math.max(b,a)};
w.D.Q8=function(a,b){a.delay=a.delay||b.delay;a.duration=a.duration||b.duration;a.timingFunction=a.timingFunction||b.timingFunction;a.persist=a.persist||b.persist};
w.D.Ii=function(a,b,c){return new Promise(function(d){function e(){p=!0;h()}function f(){n=!0;h()}function h(){n&&p&&(k.removeClass(l),k.removeClass(m),d(!0),k.trigger("ojanimateend",{action:b}))}var k=$(a),l="oj-animate-"+b,m=l+"-active",n=!1,p=!1,q=$.Event("ojanimatestart");k.trigger(q,{action:b,endCallback:f});if(!q.isDefaultPrevented()){for(var q=[].concat(c),r=[],s={},u=0;u<q.length;u++){var v=q[u],y="",z;null!=v&&"none"!=v&&("string"==typeof v?(y=v,z={}):"object"==typeof v&&(y=v.effect,z=$.extend({},
v)),w.D.Q8(z,s),s=$.extend({},z));y&&w.D[y]&&r.push(w.D[y](a,z))}r.length?Promise.all(r).then(f):f()}k.addClass(l);window.setTimeout(function(){k.addClass(m);setTimeout(e,w.D.aR(k)+100)},20)})};t("AnimationUtils.startAnimation",w.D.Ii,w);w.D.Ys=function(a,b){null==w.D.qs&&(w.D.qs=w.Ob.Tc("oj-animation-effect-default-options"));return $.extend({duration:"400ms"},w.D.qs?w.D.qs[a]:null,b)};
w.D.Q7=function(a,b){var c="";if(a)for(var d=0;d<a.length;d++){var e=w.D.t9(a[d]),c=c+((0<d?", ":"")+e+" "+b.duration);b.timingFunction&&(c+=" "+b.timingFunction);b.delay&&(c+=" "+b.delay)}return c};w.D.JS=function(a,b,c,d,e){b=w.D.Ys(c,b);c={css:{opacity:d}};e={css:{opacity:e}};b&&(b.startOpacity&&(c.css.opacity=b.startOpacity),b.endOpacity&&(e.css.opacity=b.endOpacity));return w.D.as(a,c,e,b,["opacity"])};w.D.fadeIn=function(a,b){return w.D.JS(a,b,"fadeIn",0,1)};
t("AnimationUtils.fadeIn",w.D.fadeIn,w);w.D.fadeOut=function(a,b){return w.D.JS(a,b,"fadeOut",1,0)};t("AnimationUtils.fadeOut",w.D.fadeOut,w);w.D.expand=function(a,b){return w.D.GS(a,b,!0)};t("AnimationUtils.expand",w.D.expand,w);w.D.collapse=function(a,b){return w.D.GS(a,b,!1)};t("AnimationUtils.collapse",w.D.collapse,w);
w.D.GS=function(a,b,c){b=w.D.Ys(c?"expand":"collapse",b);var d={},e={},f=b.direction||"height";a=$(a);var h=a.width(),k=a.height(),l=a.css("maxWidth"),m=a.css("maxHeight"),n=d.css={},p=e.css={};"none"!==l&&(h=l);"none"!==m&&(k=m);l=[];if("both"===f||"height"===f)n.maxHeight=c?0:k,p.maxHeight=c?k:0,l.push("maxHeight");if("both"===f||"width"===f)n.maxWidth=c?0:h,p.maxWidth=c?h:0,l.push("maxWidth");return w.D.as(a[0],d,e,b,l)};w.D.UN=function(a,b){return w.D.dZ(a,b,!0)};
t("AnimationUtils.zoomIn",w.D.UN,w);w.D.VN=function(a,b){return w.D.dZ(a,b,!1)};t("AnimationUtils.zoomOut",w.D.VN,w);w.D.dZ=function(a,b,c){b=w.D.Ys(c?"zoomIn":"zoomOut",b);var d={},e={},f=b.axis||"both";a=$(a);var f="both"===f?"scale":"x"===f?"scaleX":"scaleY",h=d.css={},k=e.css={};h.transform=f+"("+(c?0:1)+") translateZ(0)";k.transform=f+"("+(c?1:0)+") translateZ(0)";h.transformOrigin=b.transformOrigin||"center";return w.D.as(a[0],d,e,b,["transform"])};w.D.Hja=function(a,b){return w.D.Nk(a,b,!0)};
t("AnimationUtils.slideIn",w.D.Hja,w);w.D.Ija=function(a,b){return w.D.Nk(a,b,!1)};t("AnimationUtils.slideOut",w.D.Ija,w);
w.D.Nk=function(a,b,c){b=w.D.Ys(c?"slideIn":"slideOut",b);var d={},e={},f=b.direction||"start";a=$(a);var h="0",k="0",l=d.css={},m=e.css={};if(b.offsetX||b.offsetY)b.offsetX&&(h=b.offsetX),b.offsetY&&(k=b.offsetY);else{var n=a.outerWidth(),p=a.outerHeight(),q="rtl"===w.q.Gj();switch(f){case "left":h=(c?n:-n)+"px";break;case "right":h=(c?-n:n)+"px";break;case "top":k=(c?p:-p)+"px";break;case "bottom":k=(c?-p:p)+"px";break;case "end":h=(c?-n:n)*(q?-1:1)+"px";break;default:h=(c?n:-n)*(q?-1:1)+"px"}}c?
(l.transform="translate("+h+","+k+") translateZ(0)",m.transform="translate(0,0) translateZ(0)"):(l.transform="translate(0,0) translateZ(0)",m.transform="translate("+h+","+k+") translateZ(0)");return w.D.as(a[0],d,e,b,["transform"])};
w.D.uja=function(a,b){b=w.D.Ys("ripple",b);var c={},d={},e=$(a),f=e.outerWidth(),h=e.outerHeight(),k=$("\x3cdiv style\x3d'position:absolute; overflow:hidden'\x3e"),l=$("\x3cdiv class\x3d'oj-animation-effect-ripple oj-animation-rippler'\x3e"),m="static"==e.css("position")?e.position():{left:0,top:0};e.prepend(k);k.css({left:m.left+"px",top:m.top+"px",width:f+"px",height:h+"px"});k.prepend(l);e=c.css={};f=d.css={};w.D.dfa(e,l,k,b);e.transform="scale(0) translateZ(0)";e.opacity=b.startOpacity||l.css("opacity");
f.transform="scale(1) translateZ(0)";f.opacity=b.endOpacity||0;b.persist="all";return w.D.as(l[0],c,d,b,["transform","opacity"]).then(function(){k.remove()})};t("AnimationUtils.ripple",w.D.uja,w);
w.D.dfa=function(a,b,c,d){b=b.width();var e=c.width(),f=c.height();if(d.diameter){var h=d.diameter,k=parseInt(h,10);isNaN(k)||(b="%"==h.charAt(h.length-1)?Math.floor(Math.min(e,f)*(k/100)):k,a.width=b+"px",a.height=b+"px")}c="static"==c.css("position")?c.position():{left:0,top:0};e=w.D.bR(d.offsetX,b,e,c.left);null!=e&&(a.left=e+"px");e=w.D.bR(d.offsetY,b,f,c.top);null!=e&&(a.top=e+"px");d.color&&(a.backgroundColor=d.color)};
w.D.bR=function(a,b,c,d){var e;a=a||"50%";var f=parseInt(a,10);isNaN(f)||(e="%"==a.charAt(a.length-1)?f/100*c-b/2:f-b/2,e=Math.floor(e+d));return e};w.D.lla=function(a,b){b=b||{};var c={fadeOut:1,collapse:1,zoomOut:1,slideOut:1},d=b.removeEffect||"fadeOut",e=$(".oj-animation-rippler",a);if(0===e.length)console.warn("No rippler so returning");else return d in c?w.D[d](e,b).then(function(){e.remove()}):e.remove()};
w.D.RS=function(a,b,c,d,e){b=w.D.Ys(c,b);c={};var f={},h={css:c},k={css:f},l="rotateY(",m="2000px",n="hidden",p="center";b&&("x"===b.axis&&(l="rotateX("),b.startAngle&&(d=b.startAngle),b.endAngle&&(e=b.endAngle),b.perspective&&(m=b.perspective),b.backfaceVisibility&&(n=b.backfaceVisibility),b.transformOrigin&&(p=b.transformOrigin));l="perspective("+m+") "+l;c.transform=l+d+")";c.backfaceVisibility=n;c.transformOrigin=p;f.transform=l+e+")";return w.D.as(a,h,k,b,["transform"],["transform","backfaceVisibility",
"transformOrigin"])};w.D.vha=function(a,b){return w.D.RS(a,b,"flipIn","-180deg","0deg")};t("AnimationUtils.flipIn",w.D.vha,w);w.D.wha=function(a,b){return w.D.RS(a,b,"flipOut","0deg","180deg")};t("AnimationUtils.flipOut",w.D.wha,w);w.lc={};w.lc.Nh=function(a,b){for(var c=$.extend({},a),d=0;d<w.lc.NO.length;d++){var e=w.lc.NO[d],f=c[e];f&&(c[e]=f.replace("start",b?"right":"left").replace("end",b?"left":"right").replace("\x3c",b?"+":"-").replace("\x3e",b?"-":"+"))}return c};
w.lc.Tia=function(a,b,c){return"event"===a?c:null==a||"launcher"===a?b:a};w.lc.Pca=function(a){$.each(["pageX","pageY"],function(b,c){if(a&&void 0===a[c]&&a.originalEvent){var d=a.originalEvent,e=d.type;(e="touchstart"===e||"touchmove"===e?"touches":"touchend"===e?"changedTouches":null)&&(d=d[e][0])&&(a[c]=d[c])}})};w.lc.NO=["my","at"];w.lc.AM=function(a){return a.target&&0<a.target.height&&0<a.target.width?!w.lc.Cia(a.target.element):!1};
w.lc.Cia=function(a){function b(a,b){if(-1<["hidden","scroll","auto"].indexOf(b.overflowY)){if(-1>a.bottom-b.top)return!1;var c="auto"===b.overflowX||"scroll"===b.overflowX?w.q.pD():0;if(1>b.bottom-c-a.top)return!1}if(-1<["hidden","scroll","auto"].indexOf(b.overflowX)){c="auto"!==b.overflowY&&"scroll"!==b.overflowY||"rtl"!==w.q.Gj()?0:w.q.pD();if(-1>a.right-(b.left+c))return!1;c="auto"!==b.overflowX&&"scroll"!==b.overflowX||"ltr"!==w.q.Gj()?0:w.q.pD();if(-1<a.left-(b.right-c))return!1}return!0}function c(a){return"visible"!==
a.css("overflow-x")||"visible"!==a.css("overflow-y")}function d(a){var b=a[0];return 1===b.nodeType?(b=$.extend({},b.getBoundingClientRect()),b.overflowX=a.css("overflow-x"),b.overflowY=a.css("overflow-y"),b):{height:0,width:0}}function e(a){return-1<["fixed","absolute","relative"].indexOf(a.css("position"))&&(0<Math.abs(w.q.Bm(a.css("top")))||0<Math.abs(w.q.Bm(a.css("bottom")))||0<Math.abs(w.q.Bm(a.css("left")))||0<Math.abs(w.q.Bm(a.css("right"))))}if(!a)return!1;if($.isWindow(a[0])||e(a))return!0;
var f=d(a),h=!0;for(a=a.parent();h&&a&&0<a.length&&"BODY"!==a[0].nodeName&&1===a[0].nodeType&&!e(a);){if(c(a)){var k=d(a);0<k.height&&0<k.width&&(h=b(f,k))}a=a.parent()}return h};
$.ui.position.flipcenter={left:function(a,b){var c=a.left;$.ui.position.flip.left.call(this,a,b);var d=b.within,e=d.isWindow?d.scrollLeft:d.offset.left,f=a.left-b.collisionPosition.marginLeft,d=f+b.collisionWidth-d.width-e;if(0<e-f||0<d)"right"===b.at[0]?c-=b.targetWidth/2:"left"===b.at[0]&&(c+=b.targetWidth/2),e="rtl"===w.q.Gj()?-1:1,c-=b.elemWidth/2*e,a.left=Math.max(0,c)},top:function(a,b){var c=a.top;$.ui.position.flip.top.call(this,a,b);var d=b.within,d=d.isWindow?d.scrollTop:d.offset.top,e=
a.top-b.collisionPosition.marginTop,f=e+b.collisionHeight-b.within.height-d;if(0<d-e||0<f)"top"===b.at[1]?c+=b.targetHeight/2:"bottom"===b.at[1]&&(c-=b.targetHeight/2),c+=b.elemHeight/2,a.top=Math.max(0,c)}};
$.ui.position.flip={left:$.ui.position.flip.left.bind(this),top:function(a,b){var c=b.within,d=c.offset.top+c.scrollTop,e=c.height,f=c.isWindow?c.scrollTop:c.offset.top,h=a.top-b.collisionPosition.marginTop,c=h-f,h=h+b.collisionHeight-e-f,k="top"===b.my[1]?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,l="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,m=-2*b.offset[1];0>c?(d=a.top+k+l+m+b.collisionHeight-e-d,(0>d||d<Math.abs(c))&&0>h&&c>h&&(a.top+=k+l+m)):0<h&&(d=a.top-b.collisionPosition.marginTop+
k+l+m-f,0<d||Math.abs(d)<h)&&(a.top+=k+l+m)}};function ks(){this.Init()}H(ks,x,"oj.PopupService");ks.prototype.Init=function(){ks.o.Init.call(this)};function sl(){ks.VJ||(ks.VJ=new ls);return ks.VJ}ks.prototype.open=function(){w.i.Yb()};ks.prototype.close=function(){w.i.Yb()};ks.prototype.It=function(){w.i.Yb()};ks.prototype.IE=function(){w.i.Yb()};ks.prototype.destroy=function(){delete ks.VJ};
var vl="ojPopupRemove",ul="ojPopupClose",tl="ojPopupRefresh",wl="ojPopupAutoDismiss",xl="popup",zl="events",yl="launcher",Al="position",Bl="layerSelectors";function ls(){this.Init()}H(ls,ks,"oj.PopupServiceImpl");
ls.prototype.open=function(a){w.i.xf(a);var b=a[xl];w.i.Pc(b,$);var c=a[yl];w.i.Pc(c,$);var d=a[Al];w.i.lZ(d);var e=a[zl];w.i.xf(e);var f=a.modality;if(!f||"modeless"!==f&&"modal"!==f)f="none";var h=a[Bl];w.i.sm(h);a=a.layerLevel;if(!a||"topLevel"!==a&&"nearestAncestor"!==a)a="nearestAncestor";w.q.W1(b,c);w.Q.Cga(b,c,e,f,h,a);b.show();b.removeAttr("aria-hidden");d&&b.position(d);ms(this);w.Components.Zm(b[0])};
ls.prototype.close=function(a){w.i.xf(a);a=a[xl];w.i.Pc(a,$);w.Q.oja(a);a.hide();a.attr("aria-hidden","true");a.css({top:"auto",bottom:"auto",left:"auto",right:"auto"});w.q.W1(a,null);ms(this);w.Components.Wo(a[0])};ls.prototype.It=function(a){w.i.xf(a);var b=a[xl];w.i.Pc(b,$);b=w.Q.Qx(b);w.i.Pc(b,$);var c=a[zl];c&&w.Q.iZ(b,c);(c=a.modality)&&w.Q.jZ(b,c);a=a[Bl];w.Ca.ti(a)||b.attr("class",a)};ls.prototype.IE=function(a,b,c){var d={};d.event=b;d.argsArray=c;a=w.Q.Qx(a);w.Q.tE(a,this.fga,d)};
ls.prototype.fga=function(a,b){var c=b.event,d=b.argsArray,e=w.Q.jM(a);e&&$.isFunction(e[c])&&e[c].apply(this,d);return ns};
function ms(a){var b=w.Q.a0(),c=a.fR;if(!b&&c){window.removeEventListener("resize",os,!0);window.removeEventListener("scroll",os,!0);b=document.documentElement;b.removeEventListener("mousewheel",os,!0);b.removeEventListener("DOMMouseScroll",os,!0);delete a.fR;for(var d=0;d<ps.length;d++){var e=ps[d];b.removeEventListener(e,c,!0)}if(c=a.mY)c.destroy(),delete a.mY}else if(b&&!c){window.addEventListener("resize",os,!0);window.addEventListener("scroll",os,!0);b=document.documentElement;b.addEventListener("mousewheel",
os,!0);b.addEventListener("DOMMouseScroll",os,!0);c=a.fR=$.proxy(a.H8,a);for(d=0;d<ps.length;d++)e=ps[d],b.addEventListener(e,c,!0);w.q.ud()&&(a.mY=new qs(c))}}
ls.prototype.H8=function(a){var b=$(a.target);if(!w.Q.a0())ms(this);else if(!w.q.l0(a)&&("focus"!==a.type||b.is(":focusable"))){var c=w.Q.to();if("keydown"===a.type&&w.Q.sia()&&!w.q.gl(c[0],b[0]))w.Q.pha($.Event(a));else{var d=w.Q.Qx(b);if(c[0]!==d[0]){if(!d.hasClass("oj-focus-within")){var e=this.zJ;e&&e.removeClass("oj-focus-within");d.addClass("oj-focus-within");this.zJ=d}}else if(e=this.zJ)e.removeClass("oj-focus-within"),delete this.zJ;if("focus"!==a.type||"-1"!==b.attr("tabindex")){var b={},
d={},f;for(f in a)rs[f]&&!$.isFunction(a[f])&&(d[f]=a[f]);b.event=$.Event(a,d);w.Q.tE(c,ss,b)}}}};function ss(a,b){var c=w.Q.jM(a),d=b.event;if(c&&$.isFunction(c[wl]))c[wl](d);return ns}function os(){isNaN(ls.bX)&&(ls.bX=window.setTimeout(function(){delete ls.bX;var a=w.Q.to();$.isFunction(window.requestAnimationFrame)?ls.X5=window.requestAnimationFrame(function(){delete ls.X5;w.Q.tE(a,ts)}):w.Q.tE(a,ts)},10))}
function ts(a,b){if(0<b.level)return us;var c=w.Q.jM(a);if(c&&$.isFunction(c[tl]))c[tl]();return ns}ls.prototype.destroy=function(){ls.o.destroy.call(this)};
var ps=["focus","mousedown","keydown"],rs={altKey:!0,bubbles:!0,cancelable:!0,ctrlKey:!0,currentTarget:!0,eventPhase:!0,metaKey:!0,relatedTarget:!0,shiftKey:!0,target:!0,timeStamp:!0,view:!0,which:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pageX:!0,pageY:!0,screenX:!0,screenY:!0,toElement:!0,"char":!0,charCode:!0,key:!0,keyCode:!0};w.Q={};
w.Q.Qx=function(a){if(!a)return w.Q.to();for(;a&&0<a.length&&a.attr("oj.ZOrderUtils._SURROGATE_ATTR")!==w.Q.zF;){if(w.Q.fJ(a[0]))return a;a=a.parent()}return w.Q.to()};w.Q.to=function(){var a=$(document.getElementById(w.Q.zF));if(0<a.length)return a;a=$("\x3cdiv\x3e");a.attr("role","presentation");a.attr("id",w.Q.zF);a.prependTo($(document.body));return a};
w.Q.Cga=function(a,b,c,d,e,f){var h=a[0];if(w.Q.fJ(h.parentNode))throw Error("JET Popup is already open - id: "+h.getAttribute("id"));b=w.Q.Qx("topLevel"===f?null:b);f=$("\x3cdiv\x3e");var k=a.attr("id");w.Ca.ti(k)?f.uniqueId():f.attr("id",[k,"layer"].join("_"));f.attr("role","presentation");f.addClass(e);a.after(f);e=w.Q.oH(f);w.Components.af(h);a.appendTo(f);f.appendTo(b);w.Components.me(h);w.Q.jZ(f,d);w.Q.iZ(f,c,e)};
w.Q.iZ=function(a,b,c){if(!c){var d=a.attr(w.Q.lv);d&&(c=$(document.getElementById(d)))}a.data(w.Q.pz,b);c&&b&&$.isFunction(b[vl])&&(c.surrogate(),c.surrogate("option","beforeDestroy",b[vl]))};w.Q.jM=function(a){return a.data(w.Q.pz)};w.Q.oH=function(a){var b=$("\x3cscript\x3e"),c=a.attr("id");w.Ca.ti(c)?b.uniqueId():b.attr("id",[c,"surrogate"].join("_"));b.insertBefore(a);c=b.attr("id");a.attr(w.Q.lv,c);return b};
w.Q.dea=function(a){var b=a.attr(w.Q.lv);a.removeAttr(w.Q.lv);b=$(document.getElementById(b));a.insertAfter(b);b.surrogate("option","beforeDestroy",null);b.remove()};w.Q.oja=function(a){var b=w.Q.Qx(a);w.Q.sN(b,w.Q.R6);w.Q.iK(b);b.removeData(w.Q.pz);b.removeData(w.Q.JF);var c=a[0];w.Components.af(c);w.Q.dea(b);w.q.unwrap(a,b);w.Components.me(c)};w.Q.R6=function(a,b){if(0<b.level)return us;var c=a.data(w.Q.pz);if(c&&$.isFunction(c[ul]))c[ul]();return ns};
w.Q.jZ=function(a,b){var c=a.data(w.Q.JF);a.data(w.Q.JF,b);w.Ca.ti(c)?"modal"===b?w.Q.xQ(a):w.Q.iK(a):c!==b&&(b!==c&&"modal"===b?w.Q.xQ(a):w.Q.iK(a))};w.Q.sia=function(){for(var a=w.Q.to().children(),b=a.length-1;-1<b;b--)if($(a[b]).hasClass(w.Q.PP))return!0;return!1};
w.Q.xQ=function(a){var b=$("\x3cdiv\x3e");b.addClass(w.Q.PP);b.addClass(a[0].className);b.attr("role","presentation");var c=a.attr("id");w.Ca.ti(c)?b.uniqueId():b.attr("id",[c,"overlay"].join("_"));a.before(b);b=b.attr("id");a.attr(w.Q.NF,b)};w.Q.iK=function(a){var b=a.attr(w.Q.NF);w.Ca.ti(b)||(a.removeAttr(w.Q.NF),$(document.getElementById(b)).remove())};var ns=0,us=1;w.Q.tE=function(a,b,c){c||(c={});c.level=0;c.type=1;w.Q.pL(a,b,c)};
w.Q.sN=function(a,b,c){c||(c={});c.level=0;c.type=0;w.Q.pL(a,b,c)};w.Q.pL=function(a,b,c){var d=c.level;a=a.children();for(var e=a.length-1;-1<e;e--){var f=$(a[e]);if(w.Q.fJ(f[0])){var h;if(0===c.type){h=b(f,c);if(2===h)return h;if(h===us)break}c.level=d+1;h=w.Q.pL(f,b,c);c.level=d;if(2===h)return h;if(1===c.type){h=b(f,c);if(2===h)return h;if(h===us)break}}}return ns};w.Q.fJ=function(a){return 1===a.nodeType&&a.hasAttribute(w.Q.lv)?!0:!1};w.Q.a0=function(){return 0<w.Q.to().children().length};
w.Q.nM=function(){var a={popupCount:0},b=w.Q.to();w.Q.sN(b,w.Q.Wca,a);return a.popupCount};w.Q.Wca=function(a,b){b.popupCount+=1;return ns};w.Q.QL=function(){var a={},b=[];a.popups=b;b=w.Q.to();w.Q.sN(b,w.Q.Xca,a);b=a.popups;return $(b)};w.Q.Xca=function(a,b){b.popups.push(a[0]);return ns};
w.Q.IL=function(a,b){function c(a,b){for(var c=["absolute","relative","fixed"],d=a.parents(),e=[],f=d.length-1;-1<f;f--)e.push($(d[f]));d=e;d.push(a);for(var e=[],h=0,f=0;f<d.length;f++){var k=d[f],l=k.css("position"),m=w.q.Cha(k.css("opacity")),C=w.q.Bm(k.css("z-index")),k=$.inArray(k[0],k.parent().children());-1<$.inArray(l,c)?e.push({weight:[h++,C,k],order:[k]}):1>m?e.push({weight:[h++,1,k],order:[k]}):b&&e.push({weight:[0,0,k],order:[k]})}return e}function d(a,b){for(var c=Math.max(a.length,b.length),
d=0;d<c;d++){var e=d<a.length?a[d]:-1,f=d<b.length?b[d]:-1;if(e!==f)return e<f?-1:1}return 0}w.i.Pc(a,$);w.i.Pc(b,$);for(var e=c(a,!1),f=c(b,!1),h=Math.max(e.length,f.length),k=0;k<h;k++){var l=k<e.length?e[k].weight:[-1],m=k<f.length?f[k].weight:[-1],l=d(l,m);if(0!==l)return l}e=c(a,!0);f=c(b,!0);h=Math.max(e.length,f.length);for(k=0;k<h;k++)if(l=k<e.length?e[k].order:[-1],m=k<f.length?f[k].order:[-1],l=d(l,m),0!==l)return l;return 0};w.Q.pha=function(a){a.stopPropagation();a.preventDefault()};
w.Q.pz="oj-popup-events";w.Q.JF="oj-popup-modality";w.Q.zF="__oj_zorder_container";w.Q.lv="data-oj-surrogate-id";w.Q.NF="data-oj-overlayid";w.Q.PP="oj-component-overlay";$.widget("oj.surrogate",{options:{create:null,beforeDestroy:null},_create:function(){this._super();this.element.uniqueId()},_destroy:function(){this._trigger("beforeDestroy");this.element.removeUniqueId();this._super()}});function qs(a){this.CY=a;this.Init()}H(qs,x,"oj.SimpleTapRecognizer");
qs.prototype.Init=function(){qs.o.Init.call(this);for(var a=this.FS=$.proxy(this.DA,this),b=document.documentElement,c=0;c<vs.length;c++)b.addEventListener(vs[c],a,!0)};qs.prototype.DA=function(a){var b=this.CY,c=a.type;"touchstart"===c?(this.Iq=a,this.Iq.Ofa=(new Date).getTime()):"touchmove"===c||"touchcancel"===c?delete this.Iq:"touchend"===c&&(this.Iq&&(a=this.Iq.Ofa,isNaN(a)?b(this.Iq):700>(new Date).getTime()-a&&b(this.Iq)),delete this.Iq)};
qs.prototype.destroy=function(){delete this.CY;var a=this.FS;delete this.FS;for(var b=document.documentElement,c=0;c<vs.length;c++)b.removeEventListener(vs[c],a,!0)};var vs=["touchstart","touchmove","touchcancel","touchend"];function ws(){this.Init()}var xs;H(ws,x,"oj.PopupLiveRegion");ws.prototype.Init=function(){ws.o.Init.call(this);isNaN(xs)?xs=1:++xs};ws.prototype.destroy=function(){if(!isNaN(xs)&&(--xs,1>xs)){var a=$(document.getElementById("__oj_popup_arialiveregion"));0<a.length&&a.remove()}};
function ys(a,b,c,d){w.i.Pc(a,$);w.i.sm(b);w.i.mo(c);w.i.xL(d);this.qC=a;this.Zs=b;this.OG=c;this.di=d?d:"";this.Init()}H(ys,x,"oj.PopupSkipLink");ys.prototype.Init=function(){ys.o.Init.call(this);var a=this.qC,b=this.OG,c=this.Zs;delete this.Zs;var d=this.di;delete this.di;var e=$("\x3ca\x3e").attr({tabindex:"-1",href:"#"});w.Ca.hl(d)||e.attr("id",d);e.addClass("oj-helper-hidden-accessible");e.text(c);e.insertAfter(a);e.on("click",b);a.data("oj-skiplink",e)};
ys.prototype.destroy=function(){var a=this.qC;delete this.qC;var b=this.OG;delete this.OG;if(a){var c=a.data("oj-skiplink");a.removeData("oj-skiplink");c&&(c.off("click",b),c.remove())}};ys.prototype.getLink=function(){var a=this.qC,b;a&&(b=a.data("oj-skiplink"));return b};
w.sa("oj.ojTimeline",$.oj.dvtTimeComponent,{widgetEventPrefix:"oj",options:{viewportChange:null},ue:function(a,b,c){return dvt.Timeline.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-timeline-item"==b&&(b="timelineItem["+a.seriesIndex+"]["+a.itemIndex+"]");return b},df:function(a){var b={};0==a.indexOf("timelineItem")&&(a=this.Si(a),b.subId="oj-timeline-item",b.seriesIndex=a[0],b.itemIndex=a[1]);return b},Hz:function(){this._super();this.options.styleDefaults||(this.options.styleDefaults={});
this.options.styleDefaults.series||(this.options.styleDefaults.series={});if(!this.options.styleDefaults.series.colors){var a=new qq;this.options.styleDefaults.series.colors=a.Hj()}},Md:function(){var a=this._super();a.push("oj-timeline");return a},ug:function(){var a=this._super();a["oj-timeline"]={path:"styleDefaults/borderColor",property:"border-color"};a["oj-timeline-item"]=[{path:"styleDefaults/item/borderColor",property:"border-color"},{path:"styleDefaults/item/backgroundColor",property:"background-color"}];
a["oj-timeline-item oj-hover"]=[{path:"styleDefaults/item/hoverBorderColor",property:"border-color"},{path:"styleDefaults/item/hoverBackgroundColor",property:"background-color"}];a["oj-timeline-item oj-selected"]=[{path:"styleDefaults/item/selectedBorderColor",property:"border-color"},{path:"styleDefaults/item/selectedBackgroundColor",property:"background-color"}];a["oj-timeline-item-description"]={path:"styleDefaults/item/descriptionStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-item-title"]=
{path:"styleDefaults/item/titleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-major-axis-label"]={path:"styleDefaults/majorAxis/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-major-axis-separator"]={path:"styleDefaults/majorAxis/separatorColor",property:"color"};a["oj-timeline-minor-axis"]=[{path:"styleDefaults/minorAxis/backgroundColor",property:"background-color"},{path:"styleDefaults/minorAxis/borderColor",property:"border-color"}];a["oj-timeline-minor-axis-label"]={path:"styleDefaults/minorAxis/labelStyle",
property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-minor-axis-separator"]={path:"styleDefaults/minorAxis/separatorColor",property:"color"};a["oj-timeline-overview"]={path:"styleDefaults/overview/backgroundColor",property:"background-color"};a["oj-timeline-overview-label"]={path:"styleDefaults/overview/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-overview-window"]=[{path:"styleDefaults/overview/window/backgroundColor",property:"background-color"},{path:"styleDefaults/overview/window/borderColor",
property:"border-color"}];a["oj-timeline-reference-object"]={path:"styleDefaults/referenceObject/color",property:"color"};a["oj-timeline-series"]={path:"styleDefaults/series/backgroundColor",property:"background-color"};a["oj-timeline-series-empty-text"]={path:"styleDefaults/series/emptyTextStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-series-label"]={path:"styleDefaults/series/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-zoomin-icon"]=[{path:"_resources/zoomIn",property:"CSS_URL"},
{path:"_resources/zoomIn_bgc",property:"background-color"},{path:"_resources/zoomIn_bc",property:"border-color"}];a["oj-timeline-zoomin-icon oj-hover"]=[{path:"_resources/zoomIn_h",property:"CSS_URL"},{path:"_resources/zoomIn_h_bgc",property:"background-color"},{path:"_resources/zoomIn_h_bc",property:"border-color"}];a["oj-timeline-zoomin-icon oj-active"]=[{path:"_resources/zoomIn_a",property:"CSS_URL"},{path:"_resources/zoomIn_a_bgc",property:"background-color"},{path:"_resources/zoomIn_a_bc",property:"border-color"}];
a["oj-timeline-zoomin-icon oj-disabled"]=[{path:"_resources/zoomIn_d",property:"CSS_URL"},{path:"_resources/zoomIn_d_bgc",property:"background-color"},{path:"_resources/zoomIn_d_bc",property:"border-color"}];a["oj-timeline-zoomout-icon"]=[{path:"_resources/zoomOut",property:"CSS_URL"},{path:"_resources/zoomOut_bgc",property:"background-color"},{path:"_resources/zoomOut_bc",property:"border-color"}];a["oj-timeline-zoomout-icon oj-hover"]=[{path:"_resources/zoomOut_h",property:"CSS_URL"},{path:"_resources/zoomOut_h_bgc",
property:"background-color"},{path:"_resources/zoomOut_h_bc",property:"border-color"}];a["oj-timeline-zoomout-icon oj-active"]=[{path:"_resources/zoomOut_a",property:"CSS_URL"},{path:"_resources/zoomOut_a_bgc",property:"background-color"},{path:"_resources/zoomOut_a_bc",property:"border-color"}];a["oj-timeline-zoomout-icon oj-disabled"]=[{path:"_resources/zoomOut_d",property:"CSS_URL"},{path:"_resources/zoomOut_d_bgc",property:"background-color"},{path:"_resources/zoomOut_d_bc",property:"border-color"}];
a["oj-timeline-overview-window-handle-horizontal"]={path:"_resources/overviewHandleHor",property:"CSS_URL"};a["oj-timeline-overview-window-handle-vertical"]={path:"_resources/overviewHandleVert",property:"CSS_URL"};return a},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.TIMELINE"]=a.componentName;b["DvtUtilBundle.TIMELINE_SERIES"]=a.labelSeries;b["DvtUtilBundle.ZOOM_IN"]=a.tooltipZoomIn;b["DvtUtilBundle.ZOOM_OUT"]=a.tooltipZoomOut;return b},Vi:function(){this._super();
var a=this.options._resources,b=a.converter,c=w.ea.cg("datetime"),d=c.createConverter({month:"short"}),c=c.createConverter({year:"2-digit"});a.converterVert={seconds:b.seconds,minutes:b.minutes,hours:b.hours,days:b.days,weeks:b.weeks,months:d,quarters:d,years:c};a.firstDayOfWeek=w.za.Rx()},lh:function(){return{root:["series"]}}});
w.Components.xa("ojTimeline","dvtBaseComponent",{properties:{animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},end:{type:"string|number"},majorAxis:{type:"object"},minorAxis:{type:"object"},orientation:{type:"string"},overview:{type:"object"},referenceObjects:{type:"Array\x3cobject\x3e"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},series:{type:"Array\x3cobject\x3e"},start:{type:"string|number"},styleDefaults:{type:"object"},viewportEnd:{type:"string|number"},
viewportStart:{type:"string|number"}},methods:{getContextByNode:{}},extension:{_widgetName:"ojTimeline"}});w.Components.register("oj-timeline",w.Components.getMetadata("ojTimeline"));w.Mu={};t("DataCollectionEditUtils",w.Mu,w);w.Mu.Qga=function(a,b){var c;c=$(b.cellContext.parentElement).find(".oj-component-initnode")[0];c=w.Components.Pb(c);if(b.cancelEdit)c("reset");else if(c("validate"),!c("isValid"))return!1;return!0};t("DataCollectionEditUtils.basicHandleEditEnd",w.Mu.Qga,w);
w.Mu.basicHandleRowEditEnd=function(a,b){var c,d,e,f=$(b.rowContext.parentElement).find(".oj-component-initnode");for(c=0;c<f.length;c++){e=w.Components.Pb(f[c]);d=b.cancelEdit;try{if(d)e("reset");else if(e("validate"),!e("isValid"))return!1}catch(h){}}return!0};t("DataCollectionEditUtils.basicHandleRowEditEnd",w.Mu.basicHandleRowEditEnd,w);w.mc={};t("PullToRefreshUtils",w.mc,w);
w.mc.Eja=function(a,b,c){var d,e,f,h,k,l,m,n,p,q,r,s,u,v;w.mc.k2(a);d=$(document.createElement("div")).addClass("oj-pulltorefresh-outer");w.mc.iea(d,b,c);e=$(document.createElement("div")).addClass("oj-pulltorefresh-panel");d.append(e);f=$(a);f.prepend(d);f.on("touchstart.pulltorefresh",function(a){null==$.data(e[0],"data-pullstart")&&0===f[0].scrollTop&&(w.mc.CU(a,e,c),p=e.find(".oj-pulltorefresh-icon"),0<p.length&&(q=p.parent().outerHeight(!0)),c&&!isNaN(c.threshold)&&(k=parseInt(c.threshold,10)),
k=isNaN(k)?e.outerHeight(!0):Math.max(0,Math.min(k,e.outerHeight(!0))),e.css("height",0),e.removeClass("oj-pulltorefresh-transition"),$.data(e[0],"data-pullstart",a.originalEvent.touches[0].clientY),$.data(e[0],"data-pullstart-horiz",a.originalEvent.touches[0].clientX),h=!0)}).on("touchmove.pulltorefresh",function(a){l=$.data(e[0],"data-pullstart");if(null!=l&&(m=a.originalEvent.touches[0].clientY-parseInt(l,10),!(0>m)))if(a.preventDefault(),null!=$.data(e[0],"data-loading"))e.css("height",Math.max(m,
k));else{if(h&&(h=!1,n=a.originalEvent.touches[0].clientX-parseInt($.data(e[0],"data-pullstart-horiz"),10),Math.abs(n)>m))return;e.css("height",m);w.mc.EA(a,"pull",e,m);null!=p&&0<p.length&&(r=$.data(e[0],"data-lasticonclass"),null!=r&&p.removeClass(r),u=10*Math.round(m/k*10),100<=u?(v="oj-pulltorefresh-icon-full",s=w.ba.r("oj-pullToRefresh.titleIconFull")):(v="oj-pulltorefresh-icon-"+u+"-percent",s=w.ba.r("oj-pullToRefresh.titleIcon"+u+"percent")),p.addClass(v),p.attr("title",s),$.data(e[0],"data-lasticonclass",
v),w.mc.xfa(e,m>q))}}).on("touchcancel.pulltorefresh",function(){w.mc.fk(e)}).on("touchend.pulltorefresh",function(a){l=$.data(e[0],"data-pullstart");null!=l&&null==$.data(e[0],"data-loading")&&(e.outerHeight()<k?(e.addClass("oj-pulltorefresh-transition").css("height",0),w.mc.fk(e)):w.mc.DU(a,e,b))})};t("PullToRefreshUtils.setupPullToRefresh",w.mc.Eja,w);
w.mc.CU=function(a,b,c){var d,e;w.mc.EA(a,"pull",b,0);0==b.children().length&&(c&&(d=c.primaryText,e=c.secondaryText),w.mc.m7(b,d,e));b.prev().text(w.ba.r("oj-pullToRefresh.ariaRefreshingLink"));b.css("height","auto");$.data(b[0],"data-panelheight",b.outerHeight())};
w.mc.DU=function(a,b,c){var d,e,f,h;d=$.data(b[0],"data-panelheight");b.addClass("oj-pulltorefresh-transition").css("height",d);w.mc.EA(a,"release",b,d);$.data(b[0],"data-loading",!0);e=b.find(".oj-pulltorefresh-icon");0<e.length&&(f=$.data(b[0],"data-lasticonclass"),null!=f&&e.removeClass(f),e.addClass("oj-pulltorefresh-icon-full"));c().then(function(){h=function(){w.mc.EA(a,"complete",b,d);w.mc.fk(b);b.off("transitionend",h);b.prev().text("")};b.prev().text(w.ba.r("oj-pullToRefresh.ariaRefreshCompleteLink"));
b.prev().prev().css("position","");b.on("transitionend",h);b.css("height",0)})};w.mc.k2=function(a){$(a).children(".oj-pulltorefresh-outer").remove();$(a).off(".pulltorefresh")};t("PullToRefreshUtils.tearDownPullToRefresh",w.mc.k2,w);w.mc.EA=function(a,b,c,d){b=$.Event("oj"+b);b.originalEvent=a;c.trigger(b,{content:c,distance:d})};
w.mc.m7=function(a,b,c){var d,e;a.addClass("oj-pulltorefresh-content").attr("aria-hidden","true");d=$(document.createElement("div"));d.addClass("oj-pulltorefresh-icon oj-pulltorefresh-icon-initial");e=$(document.createElement("div"));e.addClass("oj-pulltorefresh-icon-container");e.append(d);$.data(a[0],"data-lasticonclass","oj-pulltorefresh-icon-initial");a.append(e);null!=b&&(b=$(document.createElement("div")).addClass("oj-pulltorefresh-primary-text").text(b),a.append(b),null!=c&&(c=$(document.createElement("div")).addClass("oj-pulltorefresh-secondary-text").text(c),
a.append(c)))};w.mc.xfa=function(a,b){var c,d;c=a.find(".oj-pulltorefresh-primary-text");d=a.find(".oj-pulltorefresh-secondary-text");b?(c&&c.show(),d&&d.show()):(c&&c.hide(),d&&d.hide())};
w.mc.iea=function(a,b,c){var d,e,f;d=$(document.createElement("a"));d.text(w.ba.r("oj-pullToRefresh.ariaRefreshLink"));d.addClass("oj-helper-hidden-accessible").attr("href","#").focus(function(){d.css("position","static")}).blur(function(a){null!=a.relatedTarget&&d.css("position","")}).click(function(d){e=a.children().last();w.mc.CU(d,e,c);w.mc.DU(d,e,b);b()});f=$(document.createElement("div"));f.addClass("oj-helper-hidden-accessible").attr("aria-live","polite");a.append(d);a.append(f)};
w.mc.fk=function(a){$.removeData(a[0],"data-pullstart");$.removeData(a[0],"data-pullstart-horiz");$.removeData(a[0],"data-loading");0<a.find(".oj-pulltorefresh-icon").length&&a.empty()};
(function(){var a=0;w.sa("oj.ojCollapsible",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{expanded:!1,disabled:null,expandOn:"click",expandArea:"header",beforeExpand:null,expand:null,beforeCollapse:null,collapse:null,optionChange:null},_ComponentCreate:function(){this._super();this.element.addClass("oj-collapsible oj-component");this.LW();this.Pd();this.Hg=!0;var a=this.element[0];this.JH({type:this.options.expanded?"ojexpand":"ojcollapse",target:a,currentTarget:a,preventDefault:$.noop});this.Hg=
void 0},Se:function(a,c,d){this.Te(c,d,{launcher:this.dw().first()})},p7:function(){var a=this.options.expanded?"oj-collapsible-open-icon":"oj-collapsible-close-icon";(this.hi()?$("\x3cspan\x3e"):$("\x3ca href\x3d'#'\x3e")).addClass("oj-component-icon oj-clickable-icon-nocontext oj-collapsible-header-icon "+a).attr("aria-labelledby",this.header.attr("id")).prependTo(this.header)},lS:function(){this.header.children(".oj-collapsible-header-icon").remove()},_destroy:function(){this.fk();this.element.removeClass("oj-collapsible oj-component oj-expanded oj-collapsed oj-disabled");
this.hi()&&this.OH(this.header).removeAttr("tabIndex");this.header.removeClass("oj-collapsible-header").each(function(){/^oj-collapsible/.test(this.id)&&this.removeAttribute("id")});this.Xv().removeAttr("role").removeAttr("aria-controls").removeAttr("aria-expanded").removeAttr("aria-disabled");this.lS();this.content.css("display","").removeAttr("aria-hidden").removeAttr("tabIndex").removeClass("oj-component-content oj-collapsible-content").each(function(){/^oj-collapsible/.test(this.id)&&this.removeAttribute("id")})},
fk:function(){this.tt();this.content&&(w.q.unwrap(this.content),this.Cl=null)},hi:function(){return this.element.hasClass("oj-disabled")},pT:function(){return"header"==this.options.expandArea?"\x3e .oj-collapsible-header":"\x3e .oj-collapsible-header \x3e .oj-collapsible-header-icon"},dw:function(){return this.header.find(".oj-collapsible-header-icon")},_setOption:function(a,c,d){"expanded"===a?c!==this.options.expanded&&this.Nea(c):"disabled"===a?(this.header.add(this.header.next()),this.element.toggleClass("oj-disabled",
!!c)):"expandOn"===a||"expandArea"===a?(this.tt(),this._super(a,c,d),this.Aj()):this._super(a,c,d)},kq:function(a){if(!a.altKey&&!a.ctrlKey){var c=$.ui.keyCode;switch(a.keyCode){case c.SPACE:case c.ENTER:this.LY(a)}}},refresh:function(){this._super();this.fk();this.LW();this.lS();this.Pd()},LW:function(){this.header=this.element.children(":first-child").addClass("oj-collapsible-header");this.content=this.header.next().addClass("oj-collapsible-content oj-component-content");this.content.wrap("\x3cdiv\x3e\x3c/div\x3e");
this.Cl=this.content.parent().addClass("oj-collapsible-wrapper");this.options.disabled&&this.element.addClass("oj-disabled");this.hi()&&this.OH(this.header).attr("tabIndex",-1)},Pd:function(){var b=this.header,c=this.content,d=this.options,e="oj-collapsible-"+(this.element.attr("id")||++a),f=b.attr("id"),h=c.attr("id");f||b.attr("id",e+"-header");h||(h=e+"-content",c.attr("id",h));this.p7();b=this.Xv();b.attr("role","button").attr("aria-controls",h).attr("aria-expanded",d.expanded);this.hi()&&b.attr("aria-disabled",
"true");d.expanded?c.removeAttr("aria-hidden"):(this.Cl.css({"max-height":0,"overflow-y":"hidden",display:"none"}),this.Cl.css("max-height",0),c.attr("aria-hidden","true"));this.Aj()},Nea:function(a){a?this.expand(!0):this.collapse(!0)},Aj:function(){var a={keydown:this.kq},c=this.options.expandOn;if(c){var d=this;$.each(c.split(" "),function(c,f){w.q.ID(f)&&(a[f]=d.LY)})}c=this.element.find(this.pT());this._on(c,a);this._on(this.Cl,{transitionend:this.yt,webkitTransitionEnd:this.yt,otransitionend:this.yt,
oTransitionEnd:this.yt});this.hi()||(this._on(this.element,{ojexpand:this.JH,ojcollapse:this.JH,ojfocus:this.TS,ojfocusout:this.TS}),this._focusable({element:this.dw(),applyHighlight:!0}),this.ld(c),this.jh(c))},tt:function(){this._off(this.element.find(this.pT()));this.Cl&&this._off(this.Cl);this._off(this.element.add(this.content))},LY:function(a){this.hi()||a.isDefaultPrevented()||(this.options.expanded?this.collapse(!0,a):this.expand(!0,a),a.preventDefault(),a.stopPropagation(),this.dw().focus())},
JH:function(a){if(!this.hi()&&a.target===this.element[0]&&(this.Hg||!a.isDefaultPrevented())){var c=this.element,d=this.options,e=this.content,f=this.Cl,h="ojexpand"===a.type;a.preventDefault();this.Hg?(d.expanded=h)?(c.removeClass("oj-collapsed"),c.addClass("oj-expanded"),w.Components.Zm(f[0])):(c.removeClass("oj-expanded"),c.addClass("oj-collapsed"),f.css("max-height",0),f.hide(),w.Components.Wo(f[0])):(this.E6(h,a),f.XC=f.outerHeight(),h?(f.show(),setTimeout(function(){f.XC+=e.outerHeight();f.addClass("oj-collapsible-transition").css({"max-height":f.XC});
c.removeClass("oj-collapsed");c.addClass("oj-expanded");w.Components.Zm(f[0])},1)):(f.removeClass("oj-collapsible-transition"),f.css({"max-height":f.XC,"overflow-y":"hidden"}),setTimeout(function(){f.addClass("oj-collapsible-transition").css({"max-height":0});c.removeClass("oj-expanded");c.addClass("oj-collapsed");w.Components.Wo(f[0])},10)));this.dw().toggleClass("oj-collapsible-open-icon",h).toggleClass("oj-collapsible-close-icon",!h||!1).end();h?this.content.removeAttr("aria-hidden"):this.content.attr("aria-hidden",
"true");this.Xv().attr("aria-expanded",h)}},TS:function(a){if(this.hi())return null;"ojfocusout"==a.type?(this.Xv().attr("tabIndex",-1),a.preventDefault(),a.stopPropagation()):"ojfocus"==a.type&&(this.Xv().attr("tabIndex",0).focus(),a.preventDefault(),a.stopPropagation())},Xv:function(){return this.OH(this.header).first()},OH:function(a){return this.hi()?a.find("span"):a.find("a,:input")},expand:function(a,c){if(!this.hi()){var d={header:this.header,content:this.content};a&&!1===this._trigger("beforeExpand",
c,d)||this._trigger("expand",c,d)}},collapse:function(a,c){if(!this.hi()){var d={header:this.header,content:this.content};a&&!1===this._trigger("beforeCollapse",c,d)||this._trigger("collapse",c,d)}},yt:function(a){this.hi()||("max-height"==(a.originalEvent?a.originalEvent.propertyName:null)&&(a.preventDefault(),a.stopPropagation()),this.options.expanded?this.Cl.css({"max-height":9999,"overflow-y":""}):this.Cl.hide(),this.Cl.removeClass("oj-collapsible-transition"))},E6:function(a,c){this.option("expanded",
a,{_context:{originalEvent:c,kc:!0,Ia:!0}})},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;switch(a.subId){case "oj-collapsible-content":return this.content[0];case "oj-collapsible-header":return this.header[0];case "oj-collapsible-disclosure":case "oj-collapsible-header-icon":return this.dw()[0]}return null},getSubIdByNode:function(a){for(var c=this.getNodeBySubId({subId:"oj-collapsible-disclosure"});a;){if(a===this.content[0])return{subId:"oj-collapsible-content"};
if(a===this.header[0])return{subId:"oj-collapsible-header"};if(a===c)return{subId:"oj-collapsible-disclosure"};a=a.parentElement}return null}})})();w.Components.xa("ojCollapsible","baseComponent",{properties:{disabled:{type:"boolean"},expandArea:{type:"string"},expanded:{type:"boolean"},expandOn:{type:"string"}},methods:{collapse:{},expand:{},refresh:{}},extension:{_widgetName:"ojCollapsible"}});w.Components.register("oj-collapsible",w.Components.getMetadata("ojCollapsible"));
w.sa("oj.ojSunburst",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{optionChange:null,rotateInput:null},ue:function(a,b,c){return dvt.Sunburst.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-sunburst-node"==b?b="node"+this.pp(a.indexPath):"oj-sunburst-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};0==a.indexOf("node")?(b.subId="oj-sunburst-node",b.indexPath=this.Si(a)):"tooltip"==a&&(b.subId="oj-sunburst-tooltip");return b},Md:function(){var a=this._super();a.push("oj-sunburst");
return a},ug:function(){var a=this._super();a["oj-sunburst-attribute-type-text"]={path:"styleDefaults/_attributeTypeTextStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-sunburst-attribute-value-text"]={path:"styleDefaults/_attributeValueTextStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-sunburst-node"]={path:"nodeDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-sunburst-node oj-hover"]={path:"nodeDefaults/hoverColor",property:"border-top-color"};a["oj-sunburst-node oj-selected"]=[{path:"nodeDefaults/selectedOuterColor",
property:"border-top-color"},{path:"nodeDefaults/selectedInnerColor",property:"border-bottom-color"}];return a},vg:function(){return["optionChange","rotateInput"]},Uf:function(){var a=this.options.translations,b=this._super();b["DvtSunburstBundle.COLOR"]=a.labelColor;b["DvtSunburstBundle.SIZE"]=a.labelSize;b["DvtUtilBundle.SUNBURST"]=a.componentName;return b},Th:function(a){"rotation"===a.type?a.complete?this.Ec("startAngle",a.startAngle):this._trigger("rotateInput",null,{value:a.startAngle}):this._super(a)},
Vi:function(){null==this.options._resources&&(this.options._resources={});this.options._resources.rotateCursor=w.T.Fa("resources/internal-deps/dvt/sunburst/rotate.cur")},getNode:function(a){a=this.ca.getAutomation().getNode(a);this.Sf(a);return a},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-sunburst-tooltip"!==a.subId?a:null},lh:function(){return{root:["nodes"]}}});
w.Components.xa("ojSunburst","dvtBaseComponent",{properties:{animationDuration:{type:"number"},animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},animationUpdateColor:{type:"string"},colorLabel:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},hoverBehavior:{type:"string"},hoverBehaviorDelay:{type:"number|string"},nodeDefaults:{type:"object"},nodes:{type:"Array\x3cobject\x3e"},rotation:{type:"string"},
selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},sizeLabel:{type:"string"},sorting:{type:"string"},startAngle:{type:"number"},tooltip:{type:"object"},touchResponse:{type:"string"}},methods:{getContextByNode:{},getNode:{}},extension:{_widgetName:"ojSunburst"}});w.Components.register("oj-sunburst",w.Components.getMetadata("ojSunburst"));
w.sa("oj.dvtTimeComponent",$.oj.dvtBaseComponent,{vg:function(){return["optionChange","viewportChange"]},Uf:function(){var a=this._super(),b=w.za.Sx("wide");a["DvtUtilBundle.MONTH_JANUARY"]=b[0];a["DvtUtilBundle.MONTH_FEBRUARY"]=b[1];a["DvtUtilBundle.MONTH_MARCH"]=b[2];a["DvtUtilBundle.MONTH_APRIL"]=b[3];a["DvtUtilBundle.MONTH_MAY"]=b[4];a["DvtUtilBundle.MONTH_JUNE"]=b[5];a["DvtUtilBundle.MONTH_JULY"]=b[6];a["DvtUtilBundle.MONTH_AUGUST"]=b[7];a["DvtUtilBundle.MONTH_SEPTEMBER"]=b[8];a["DvtUtilBundle.MONTH_OCTOBER"]=
b[9];a["DvtUtilBundle.MONTH_NOVEMBER"]=b[10];a["DvtUtilBundle.MONTH_DECEMBER"]=b[11];b=w.za.Ox("wide");a["DvtUtilBundle.DAY_SUNDAY"]=b[0];a["DvtUtilBundle.DAY_MONDAY"]=b[1];a["DvtUtilBundle.DAY_TUESDAY"]=b[2];a["DvtUtilBundle.DAY_WEDNESDAY"]=b[3];a["DvtUtilBundle.DAY_THURSDAY"]=b[4];a["DvtUtilBundle.DAY_FRIDAY"]=b[5];a["DvtUtilBundle.DAY_SATURDAY"]=b[6];b=w.za.Ox("abbreviated");a["DvtUtilBundle.DAY_SHORT_SUNDAY"]=b[0];a["DvtUtilBundle.DAY_SHORT_MONDAY"]=b[1];a["DvtUtilBundle.DAY_SHORT_TUESDAY"]=b[2];
a["DvtUtilBundle.DAY_SHORT_WEDNESDAY"]=b[3];a["DvtUtilBundle.DAY_SHORT_THURSDAY"]=b[4];a["DvtUtilBundle.DAY_SHORT_FRIDAY"]=b[5];a["DvtUtilBundle.DAY_SHORT_SATURDAY"]=b[6];return a},Th:function(a){if("viewportChange"===a.type){var b=(new Date(a.viewportStart)).toISOString(),c=(new Date(a.viewportEnd)).toISOString();a=a.minorAxisScale;var d={viewportStart:b,viewportEnd:c,minorAxisScale:a};this.Ec("viewportStart",b);this.Ec("viewportEnd",c);this.Ec("minorAxis.scale",a);this._trigger("viewportChange",
null,d)}else this._super(a)},Vi:function(){null==this.options._resources&&(this.options._resources={});var a=this.options._resources,b=w.ea.cg("datetime"),c=b.createConverter({hour:"numeric",minute:"2-digit",second:"2-digit"}),d=b.createConverter({hour:"numeric",minute:"2-digit"}),e=b.createConverter({hour:"numeric"}),f=b.createConverter({month:"numeric",day:"2-digit"}),h=b.createConverter({month:"long"}),b=b.createConverter({year:"numeric"});a.converter={seconds:c,minutes:d,hours:e,days:f,weeks:f,
months:h,quarters:h,years:b}},getContextByNode:function(a){return this.getSubIdByNode(a)}});w.Components.xa("dvtTimeComponent","dvtBaseComponent",{properties:{},methods:{getContextByNode:{}},extension:{_widgetName:"dvtTimeComponent"}});
w.sa("oj.ojIndexer",$.oj.baseComponent,{defaultElement:"\x3cul\x3e",version:"1.2",widgetEventPrefix:"oj",options:{data:null},_ComponentCreate:function(){this._super();this.Aa()},cf:function(){var a;this._super();this.LR();this.lt();this.s7();a=this.Gn()[0];this.wj(a);this.Rda(a)},_destroy:function(){var a,b;this._super();this.At();this.element.removeClass("oj-component-initnode");a=this.Gn()[0];this.Qk(a);this.iga(a);b=this.SA();null!=b&&this.bN&&b.off(zs.CHANGE,this.bN);w.q.unwrap(this.element,$(a))},
_setOption:function(a,b){this._superApply(arguments);"data"==a&&this.refresh()},widget:function(){return this.Gn()},refresh:function(){this._super();this.element.empty();this.LR();this.lt();this.Ao=null},getNodeBySubId:function(a){var b,c,d,e,f;if(null==a)return this.element?this.element[0]:null;if("oj-indexer-prefix"===a.subId)for(a=a.prefix,b=this.element.children("li"),c=0;c<b.length;c++){e=b.get(c);if($(e).attr("data-range")==a)return e;f=$(e).attr("data-includes");if(null!=f)for(f=f.split("|"),
d=0;d<f.length;d++)if(f[d]==a)return e}return null},getSubIdByNode:function(a){return null!=a&&(a=$(a).attr("data-range"),null!=a)?{subId:"oj-indexer-prefix",prefix:a}:null},lt:function(){this.element.attr("role","slider").attr("aria-orientation","vertical").attr("aria-describedby",this.element.prop("id")+":desc").attr("aria-valuemin",0).attr("aria-valuemax",Math.max(0,this.element.children().length-1))},At:function(){this.element.removeAttr("role").removeAttr("aria-orientation").removeAttr("aria-describedby").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuetext")},
s7:function(){var a,b;a=w.q.ud()?"ariaTouchInstructionText":"ariaKeyboardInstructionText";b=$(document.createElement("div"));b.prop("id",this.element.prop("id")+":desc");b.addClass("oj-helper-hidden-accessible").text(this.r(a));this.Gn().append(b)},Gn:function(){null==this.jy&&(this.jy=this.q7());return this.jy},q7:function(){var a;this.Kc?a=$(this.Kc):(a=$(document.createElement("div")),this.element.parent()[0].replaceChild(a[0],this.element[0]));a.addClass("oj-indexer oj-component");a.prepend(this.element);
return a},LR:function(){var a,b,c,d,e,f,h;a=this.SA();if(null!=a){b=this.element;c=a.getIndexablePrefixes();d=a.getPrefixes();a=this.r("indexerOthers");e=this.widget().outerHeight();f=this.nA(c[0],d);b.append(f);f=f.outerHeight();e=Math.floor(e/f);this.Gn().removeClass("oj-indexer-abbr");e=Math.floor((c.length+1)/e)+1;1<e&&this.Gn().addClass("oj-indexer-abbr");for(f=1+e;f<c.length;f=f+e+1)1<e?(h=this.K7(c,f-e,f-1),b.append(h)):f--,h=c[f],h=this.nA(h,d),b.append(h);c=this.nA(c[c.length-1],d);b.append(c);
c=this.nA(a);c.attr("data-others","true");b.append(c)}},nA:function(a,b){var c=$(document.createElement("li"));c.attr("data-range",a).text(a);null!=b&&-1==b.indexOf(a)&&c.addClass("oj-disabled");return c},K7:function(a,b,c){var d,e="";d=$(document.createElement("li"));for(d.addClass("oj-indexer-ellipsis").attr("data-range",a[b+Math.round((c-b)/2)]);b<c;b++)e=e+a[b]+"|";e+=a[c];d.attr("data-includes",e);return d},Aa:function(){var a=this,b;this.element.uniqueId().addClass("oj-component-initnode").attr("tabIndex",
0);this._on(this.element,{click:function(b){a.u$(b)},keydown:function(b){a.Xp(b)},focus:function(b){a.T$(b)},blur:function(b){a.n$(b)}});b=this.SA();null!=b&&(this.bN=function(){a.refresh()},b.on(zs.CHANGE,this.bN));this._focusable({applyHighlight:!0,setupHandlers:function(b,d){a.ys=b;a.Np=d}})},u$:function(a){0===a.button&&(a=$(a.target),this.vK(a))},T$:function(){this.Gn().addClass("oj-focus-ancestor");null==this.Ao?this.Mg(this.element.children("li").first()):this.Mg(this.Ao)},n$:function(){this.Gn().removeClass("oj-focus-ancestor")},
Xp:function(a){var b,c=!1;switch(a.keyCode){case 38:b=this.Ao.prev();break;case 40:b=this.Ao.next();break;case 13:this.vK(this.Ao),c=!0}null!=b&&0<b.length&&(c=!0,this.Mg(b));c&&a.preventDefault()},Mg:function(a){null!=this.Ao&&this.Np(this.Ao);this.ys(a);this.lga(a);this.Ao=a},SA:function(){var a=this.option("data");if(null!=a&&(void 0==a.setPrefix||void 0==a.getIndexablePrefixes||void 0==a.getPrefixes))throw"Invalid IndexerModel";return a},vK:function(a){var b=a.attr("data-range");a.attr("data-others")&&
(b=As.PREFIX_OTHERS);this.wK(b)},wK:function(a){var b=this,c;this.SA().setPrefix(a).then(function(a){null!=a&&(c=b.xe(a),null!=c&&b.Mg(c))})},lga:function(a){var b,c="";b=a.attr("data-includes");null!=b?(b=b.split("|"),0<b.length&&(c=this.r("ariaInBetweenText",{first:b[0],second:b[b.length-1]}))):(b=a.attr("data-range"),c=b===As.PREFIX_OTHERS?this.r("ariaOthersLabel"):b);a.hasClass("oj-disabled")&&(c=c+". "+this.r("ariaDisabledLabel"));this.element.attr("aria-valuetext",c);this.element.attr("aria-valuenow",
a.index())},xe:function(a){var b,c,d,e,f;b=this.element.children();for(c=0;c<b.length;c++)if(d=b.get(c),e=$(d).attr("data-range"),f=$(d).attr("data-includes"),null!=e&&e==a||null!=f&&-1<f.indexOf(a))return $(d);return null},Qk:function(a){a&&this.Ce&&w.q.Hi(a,this.Ce)},wj:function(a){a&&(null==this.Ce&&(this.Ce=this.Ae.bind(this)),w.q.Ch(a,this.Ce))},iga:function(a){$(a).off("panstart panmove panend")},Rda:function(a){var b=this,c,d,e,f,h,k,l,m,n,p,q,r;c={recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_VERTICAL}]]};
$(a).ng(c).on("panstart",function(a){d=a.gesture.target;e=b.element[0].getBoundingClientRect().left+5;f=d.getBoundingClientRect().top;b.vK($(d));h=d;k=d.getAttribute("data-range");l=f}).on("panmove",function(a){m=l;l=f+a.gesture.deltaY;d=document.elementFromPoint(e,l);null!=d&&(n=l-m,h==d?(p=d.getAttribute("data-includes"),null!=p&&(p=p.split("|"),q=p.indexOf(k),r=null,0<n&&q<p.length-1?r=p[q+1]:0>n&&0<q&&(r=p[q-1]),null!=r&&(k=r,b.wK(r)))):d.hasAttribute("data-range")&&(p=d.getAttribute("data-includes"),
r=null,null!=p&&(0<n&&d==h.nextElementSibling?r=p[0]:0>n&&d==h.previousElementSibling&&(r=p[p.length-1])),null==r&&(r=d.getAttribute("data-range")),h=d,k=r,b.wK(k)))}).on("panend",function(){r=l=k=h=null})},Ae:function(a,b){0<a&&0<b&&this.refresh()}});function sr(a){this.ga=a;this.Init()}t("ListViewIndexerModel",sr,w);H(sr,ua,"oj.ListViewIndexerModel");sr.prototype.getIndexablePrefixes=function(){return this.ga.A.r("indexerCharacters").split("|")};
A("ListViewIndexerModel.prototype.getIndexablePrefixes",{getIndexablePrefixes:sr.prototype.getIndexablePrefixes});sr.prototype.getPrefixes=function(){null==this.zL&&(this.zL=Bs(this));return this.zL};A("ListViewIndexerModel.prototype.getPrefixes",{getPrefixes:sr.prototype.getPrefixes});function Bs(a){var b=[],c=a.ga.jw();if(null!=c){a=a.getIndexablePrefixes();for(var d=0;d<a.length;d++){var e=a[d];c.each(function(){if(0==$(this).text().indexOf(e))return b.push(e),!1})}}return b}
sr.prototype.setPrefix=function(a){return a==As.PREFIX_OTHERS?Cs(this):Ds(this,a)};A("ListViewIndexerModel.prototype.setPrefix",{setPrefix:sr.prototype.setPrefix});function Cs(a){var b,c,d,e,f,h;b=a.getIndexablePrefixes();return new Promise(function(k){c=null;d=a.ga.jw();null!=d&&d.each(function(){e=$(this).text();for(f=0;f<b.length;f++)if(h=b[f],0==e.indexOf(h))return!0;c=this;return!1});c?(a.ga.EX(c),k(As.PREFIX_OTHERS)):k(null)})}
function Ds(a,b){var c,d,e=null,f;c=a.getIndexablePrefixes();d=c.indexOf(b);return new Promise(function(h){if(-1==d)h(null);else{for(;d<c.length;){b=c[d];f=Es(a,b);if(null!=f){a.ga.EX(f);e=b;break}d++}h(e)}})}function Es(a,b){var c,d,e;d=a.ga.jw();null!=d&&d.each(function(){e=$(this).text();if(0==e.indexOf(b))return c=this,!1});return c}sr.prototype.TZ=function(){this.zL=null;this.handleEvent(zs.CHANGE,{})};function As(){}t("IndexerModel",As,w);As.PREFIX_OTHERS="__others__";
t("IndexerModel.PREFIX_OTHERS",As.PREFIX_OTHERS,w);var zs={CHANGE:"change"};t("IndexerModel.EventType",zs,w);As.prototype.setPrefix=function(){};A("IndexerModel.prototype.setPrefix",{setPrefix:As.prototype.setPrefix});As.prototype.getIndexablePrefixes=function(){};A("IndexerModel.prototype.getIndexablePrefixes",{getIndexablePrefixes:As.prototype.getIndexablePrefixes});As.prototype.getPrefixes=function(){};A("IndexerModel.prototype.getPrefixes",{getPrefixes:As.prototype.getPrefixes});
w.Components.xa("ojIndexer","baseComponent",{properties:{data:{}},methods:{getNodeBySubId:{},getSubIdByNode:{},refresh:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"ul",_widgetName:"ojIndexer"}});w.Components.register("oj-indexer",w.Components.getMetadata("ojIndexer"));w.f={};t("OffcanvasUtils",w.f,w);w.f.xF="oj-offcanvasEdge";w.f.Ll="oj-offcanvas";w.f.yF="oj-mediaQueryListener";w.f.WO="oj-offcanvasHammer";w.f.XO="oj-offcanvasStyle";w.f.Xu="selector";w.f.Ar="content";w.f.cp="start";
w.f.bp="end";w.f.Nu="top";w.f.$y="bottom";w.f.$o="displayMode";w.f.ap="push";w.f.UE="overlay";w.f.dO="pin";w.f.W2="modality";w.f.dka="none";w.f.X2="modal";w.f.Zy="_dismissHandler";w.f.hF="_openPromise";w.f.Lu="_closePromise";w.f.fp="_glassPane";w.f.xO="_surrogate";w.f.lF="data-oj-offcanvas-surrogate-id";w.f.d3="oj-offcanvas-outer-wrapper";w.f.Uu="oj-offcanvas-open";w.f.Pe="oj-offcanvas-transition";w.f.pO="oj-offcanvas-pin";w.f.oO="oj-offcanvas-pin-transition";w.f.R2="oj-offcanvas-glasspane";
w.f.Ou="oj-offcanvas-glasspane-dim";w.f.o3="ojbeforeopen veto";w.f.n3="ojbeforeclose veto";w.f.tfa={start:"oj-offcanvas-shift-start",end:"oj-offcanvas-shift-end",top:"oj-offcanvas-shift-down",bottom:"oj-offcanvas-shift-up"};w.f.A8={start:"oj-offcanvas-start",end:"oj-offcanvas-end",top:"oj-offcanvas-top",bottom:"oj-offcanvas-bottom"};w.f.k9=function(a){a=a[w.f.$o];a!==w.f.UE&&a!==w.f.ap&&a!==w.f.dO&&(a=(w.Ob.Tc("oj-offcanvas-option-defaults")||{}).displayMode);return a};w.f.ze=function(a){return $(a[w.f.Xu])};
w.f.Qs=function(a){return a[w.f.W2]===w.f.X2};w.f.Rn=function(a){return a.hasClass(w.f.Uu)};w.f.Hn=function(a){return a.closest("."+w.f.d3)};w.f.JA=function(a){var b=w.f.ze(a);return w.f.lW(a)||a[w.f.$o]===w.f.UE?b:b.parent()};w.f.U9=function(a){var b=w.f.tfa[a];if(!b)throw"Invalid edge: "+a;return b};w.f.be=function(){return"rtl"===w.q.Gj()};w.f.zh=function(a,b){a.css({"-webkit-transform":b,transform:b})};w.f.eB=function(a,b,c){a=a===w.f.bp;if(w.f.be()||c)a=!a;return"translate3d("+(a?"-":"")+b+", 0, 0)"};
w.f.mx=function(a,b,c){w.f.zh(a,w.f.eB(b,c,!1))};w.f.cU=function(a,b){return"translate3d(0, "+(a===w.f.$y?"-":"")+b+", 0)"};w.f.ifa=function(a,b,c){w.f.zh(a,w.f.cU(b,c))};w.f.dU=function(a,b){return"translate3d(0, "+(b?"-":"")+a+", 0)"};w.f.Jea=function(a,b,c){a.addClass(w.f.Pe);w.f.zh(a,"translate3d(0, 0, 0)");b.addClass(w.f.Pe);w.f.zh(b,c)};
w.f.BX=function(a){var b=a.edge;a=w.f.ze(a);b&&b.length||(b=a.hasClass("oj-offcanvas-start")?w.f.cp:a.hasClass("oj-offcanvas-end")?w.f.bp:a.hasClass("oj-offcanvas-top")?w.f.Nu:a.hasClass("oj-offcanvas-bottom")?w.f.$y:w.f.cp);$.data(a[0],w.f.xF,b);return b};w.f.$H=function(a){return $.data(a[0],w.f.xF)};
w.f.ux=function(a,b,c){var d=a[w.f.$o],e=w.f.ze(a),f=w.f.Uu,d=d===w.f.UE?w.f.Pe+" oj-offcanvas-overlay":w.f.Pe;c?(e.addClass(f),b.addClass(d)):(a.makeFocusable&&w.q.lE({element:e,remove:!0}),a=a.tabindex,void 0===a?e.removeAttr("tabindex"):e.attr("tabindex",a),e.removeClass(f),b.removeClass(d))};
w.f.Mg=function(a){var b=w.f.ze(a),c=b.find("[autofocus]");0==c.length&&(c=b.find(":tabbable"));0==c.length?(c=b.attr("tabindex"),void 0!==c&&(a.tabindex=c),b.attr("tabindex","-1"),c=b,w.q.lE({element:b,applyHighlight:!0}),a.makeFocusable=!0):c=c[0];w.Jc.Nx(c)};w.f.Cba=function(a){return"none"!=a.autoDismiss};
w.f.Gk=function(a,b){function c(){b(a);a.off("transitionend.oc webkitTransitionEnd.oc otransitionend.oc oTransitionEnd.oc",c)}a.on("transitionend.oc webkitTransitionEnd.oc otransitionend.oc oTransitionEnd.oc",c)};w.f.vR=function(a){w.f.close(a)["catch"](function(a){w.l.warn("Offcancas close failed: "+a)})};
w.f.cx=function(a){w.f.iL(a);if(w.f.Cba(a)){var b=w.f.ze(a),c=a[w.f.Zy]=function(c){var d=c.target;w.q.l0(c)||"focus"===c.type&&!$(d).is(":focusable")||(null==$.data(b[0],w.f.Ll)?w.f.iL(a):w.q.Aia(b[0],d)||w.f.vR(a))},d=document.documentElement;w.q.ud()&&d.addEventListener("touchstart",c,!0);d.addEventListener("mousedown",c,!0);d.addEventListener("focus",c,!0)}w.f.ht(a)};
w.f.iL=function(a){var b=a[w.f.Zy];if(b){var c=document.documentElement;w.q.ud()&&c.removeEventListener("touchstart",b,!0);c.removeEventListener("mousedown",b,!0);c.removeEventListener("focus",b,!0);delete a[w.f.Zy];a[w.f.Zy]=null}w.f.CC(a)};
w.f.ht=function(a){if(w.q.ud()){var b=a[w.f.Xu],c=$(b),d=w.f.$H(c),e,f;d===w.f.cp&&!w.f.be()||d===w.f.bp&&w.f.be()?(f={recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_LEFT}]]},e="swipeleft"):d===w.f.cp&&w.f.be()||d===w.f.bp&&!w.f.be()?(f={recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_RIGHT}]]},e="swiperight"):d===w.f.Nu?(f={recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_UP}]]},e="swipeup"):d===w.f.$y&&(f={recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_DOWN}]]},e="swipedown");
d=c.ng(f).on(e,function(b){b.target===c[0]&&(b.preventDefault(),w.f.vR(a))});$.data($(b)[0],w.f.WO,{event:e,hammer:d})}};w.f.CC=function(a){a=w.f.ze(a);0<a.length&&(a=$.data(a[0],w.f.WO))&&a.hammer.off(a.event)};w.f.Hba=function(a){return w.f.Hn(a).hasClass("oj-offcanvas-page")};w.f.wB=function(a){return a[w.f.$o]===w.f.dO};w.f.lW=function(a){return a[w.f.Ar]||w.f.Hba(w.f.ze(a))||w.f.wB(a)};w.f.Bea=function(a){var b=a.attr("style");void 0!==b&&$.data(a[0],w.f.XO,b)};
w.f.wea=function(a){var b=$.data(a[0],w.f.XO);b?a.attr("style",b):a.removeAttr("style")};w.f.nm=function(a,b){var c=w.f.$H(a),c=w.f.U9(c),d=w.f.Hn(a);w.i.Pc(d,$);var e=d.hasClass(c);b||d.toggleClass(c,!e);return e};w.f.wA=function(a,b){function c(){null==("fixed"===$(a).css("position")?a.parentNode.offsetParent:a.offsetParent)?b():d=window.requestAnimationFrame(c)}var d=0,d=window.requestAnimationFrame(c);return function(){0!==d&&window.cancelAnimationFrame(d)}};
w.f.qn=function(a){var b=w.f.ze(a),c=w.f.wB(a);if($.data(b[0],w.f.Ll)===a){w.f.$H(b);var d=w.f.JA(a);c?b.removeClass(w.f.Uu+" "+w.f.oO):w.f.ux(a,d,!1);w.f.$da(a);w.f.iL(a);c&&(w.f.Hn(b).removeClass(w.f.pO),w.f.wea(b));b.trigger("ojclose",a);$.removeData(b[0],w.f.Ll)}};w.f.$X=function(a,b,c){var d=$(a);(b=!!b)&&w.f.Rn(d)&&w.f.Ql(a,!1);d.toggleClass(w.f.A8[c],!b)};
w.f.Fja=function(a){var b=a.query;if(null!==b){var c=a[w.f.Xu],b=window.matchMedia(b),d=w.f.BX(a);a=function(a){w.f.$X(c,a.matches,d)};b.addListener(a);w.f.$X(c,b.matches,d);$.data($(c)[0],w.f.yF,{mqList:b,mqListener:a})}};t("OffcanvasUtils.setupResponsive",w.f.Fja,w);w.f.Oja=function(a){a=w.f.ze(a);var b=$.data(a[0],w.f.yF);b&&(b.mqList.removeListener(b.mqListener),$.removeData(a[0],w.f.yF))};t("OffcanvasUtils.tearDownResponsive",w.f.Oja,w);
w.f.Yca=function(a,b,c){function d(c){c.removeClass(w.f.Pe);h?h=!1:(w.f.Mg(a),e.trigger("ojopen",a),w.f.cx(a),b(!0))}var e=w.f.ze(a),f=$(a[w.f.Ar]);w.i.Pc(f,$);var h=!0,k=a.size,l;e.addClass(w.f.Uu);window.setTimeout(function(){c===w.f.cp||c===w.f.bp?(void 0===k&&(k=e.outerWidth(!0)+"px"),w.f.zh(e,w.f.eB(c,k,!0)),l=w.f.eB(c,k,!1)):(void 0===k&&(k=e.outerHeight(!0)+"px"),w.f.zh(e,w.f.dU(k,c===w.f.Nu)),l=w.f.dU(k,c!==w.f.Nu));window.setTimeout(function(){w.f.Jea(e,f,l);w.f.nm(e,!1)},0)},0);w.f.Vz(a,
e);w.f.Gk(f,d);w.f.Gk(e,d)};w.f.Uca=function(a,b,c){var d=w.f.ze(a);w.f.ux(a,d,!0);var e=a.size;e&&(c===w.f.cp||c===w.f.bp?w.f.zh(d,w.f.eB(c,e,!0)):w.f.zh(d,w.f.cU(c,e)));window.setTimeout(function(){w.f.nm(d,!1)},20);w.f.Vz(a,d);w.f.Gk(d,function(){d.removeClass(w.f.Pe);w.f.Mg(a);d.trigger("ojopen",a);w.f.cx(a);b(!0)})};
w.f.Vca=function(a,b){var c=w.f.ze(a),d=$(a[w.f.Ar]);w.i.Pc(d,$);var e=a.size;c.addClass(w.f.Uu);window.setTimeout(function(){void 0===e&&(e=c.outerWidth(!0)+"px");c.addClass(w.f.oO);w.f.Hn(c).addClass(w.f.pO);w.f.Bea(c);w.f.zh(c,"none");window.setTimeout(function(){c.css("min-width",e);w.f.nm(c,!1)},10)},0);w.f.Vz(a,c);w.f.Gk(c,function(){w.f.Mg(a);c.trigger("ojopen",a);w.f.cx(a);b(!0)})};
w.f.V6=function(a,b,c,d){function e(c){h&&c?h=!1:(f.removeClass(w.f.Pe),w.f.zh(f,""),w.f.qn(a),k&&k(),b(!0))}var f=$(a[w.f.Ar]),h=!0,k;d&&(w.f.Gk(c,e),w.f.Gk(f,e),k=w.f.wA(c[0],e));w.f.zh(c,"");w.f.zh(f,"");w.f.nm(c,!1);w.f.Qs(a)&&a[w.f.fp].removeClass(w.f.Ou);d?(f.addClass(w.f.Pe),c.addClass(w.f.Pe)):(w.f.qn(a),b(!0))};
w.f.T6=function(a,b,c,d){function e(){w.f.qn(a);f&&f();b(!0)}var f;d&&(w.f.Gk(c,e),f=w.f.wA(c[0],e));w.f.nm(c,!1);w.f.Qs(a)&&a[w.f.fp].removeClass(w.f.Ou);d?c.addClass(w.f.Pe):(w.f.qn(a),b(!0))};
w.f.Tca=function(a,b,c,d){var e=w.f.ze(a),f=w.f.JA(a);w.i.Pc(f,$);w.f.ux(a,f,!0);var h;c===w.f.cp||c===w.f.bp?(h=void 0===h?e.outerWidth(!0)+"px":h,d===w.f.ap&&w.f.mx(f,c,h)):(h=void 0===h?e.outerHeight(!0)+"px":h,d===w.f.ap&&w.f.ifa(f,c,h));window.setTimeout(function(){w.f.nm(e,!1)},10);w.f.Vz(a,e);w.f.Gk(f,function(){f.removeClass(w.f.Pe);w.f.Mg(a);e.trigger("ojopen",a);w.f.cx(a);b(!0)})};
w.f.U6=function(a,b,c,d){function e(){w.f.qn(a);f&&f();b(!0)}var f;d&&(w.f.Gk(c,e),f=w.f.wA(c[0],e));w.f.nm(c,!1);w.f.Qs(a)&&a[w.f.fp].removeClass(w.f.Ou);d?c.css("min-width","0"):(w.f.qn(a),b(!0))};w.f.S6=function(a,b,c,d){function e(){w.f.qn(a);k&&k();b(!0)}var f=a[w.f.$o],h=w.f.JA(a),k;d&&(w.f.Gk(h,e),k=w.f.wA(c[0],e));f===w.f.ap&&w.f.zh(h,"");w.f.nm(c,!1);w.f.Qs(a)&&a[w.f.fp].removeClass(w.f.Ou);d?h.addClass(w.f.Pe):(w.f.qn(a),b(!0))};
w.f.open=function(a){var b=w.f.ze(a),c=$.data(b[0],w.f.Ll);if(c){if(c[w.f.Lu])return c[w.f.Lu];if(c[w.f.hF])return c[w.f.hF]}var d=!1,e=new Promise(function(c,h){w.i.Pc(b,$);var k=w.f.BX(a),l=$.Event("ojbeforeopen");b.trigger(l,a);if(!1===l.result)return h(w.f.o3),d=!0,e;var l=w.f.k9(a),m=w.f.wB(a);!m||k!==w.f.Nu&&k!==w.f.$y||(l=w.f.ap);var n=$.extend({},a);n[w.f.$o]=l;$.data(b[0],w.f.Ll,n);if(a[w.f.Ar]){if(!w.f.lW(a))throw"Error: Both main content selector and the inner wrapper \x3cdiv class\x3d'oj-offcanvas-inner-wrapper'\x3e are provided. Please remove the inner wrapper.";
m?w.f.Vca(n,c):l===w.f.ap?w.f.Yca(n,c,k):w.f.Uca(n,c,k)}else w.f.Tca(n,c,k,l)});d||(c=$.data(b[0],w.f.Ll))&&(c[w.f.hF]=e);return e};t("OffcanvasUtils.open",w.f.open,w);w.f.close=function(a){return w.f.Ql(a[w.f.Xu],!0)};t("OffcanvasUtils.close",w.f.close,w);
w.f.Ql=function(a,b){var c=$(a);w.i.Pc(c,$);var d=$.data(c[0],w.f.Ll);if(d&&d[w.f.Lu])return d[w.f.Lu];var e=!1,f=new Promise(function(h,k){if(w.f.Rn(c)){a!=d[w.f.Xu]&&h(!0);w.f.nm(c,!0)||h(!0);var l=$.Event("ojbeforeclose");c.trigger(l,d);if(!1===l.result)return k(w.f.n3),e=!0,f;var l=w.f.wB(d),m=d[w.f.$o];d[w.f.Ar]?m===w.f.ap?w.f.V6(d,h,c,b):l?w.f.U6(d,h,c,b):w.f.T6(d,h,c,b):w.f.S6(d,h,c,b)}else h(!0)});e||(d=$.data(c[0],w.f.Ll))&&(d[w.f.Lu]=f);return f};
w.f.toggle=function(a){var b=w.f.ze(a);w.i.Pc(b,$);return w.f.Rn(b)?w.f.close(a):w.f.open(a)};t("OffcanvasUtils.toggle",w.f.toggle,w);w.f.N5=function(a){var b=$("\x3cdiv\x3e");b.addClass(w.f.R2);b.attr("role","presentation");b.attr("aria-hidden","true");b.appendTo(a.parent());b.on("keydown keyup keypress mousedown mouseup mouseover mouseout click focusin focus",function(a){a.stopPropagation();a.preventDefault()});return b};
w.f.oH=function(a){var b=$("\x3cscript\x3e"),c=a.attr("id");c?(c=[c,"surrogate"].join("_"),b.attr("id",c)):c=b.uniqueId();b.insertBefore(a);a.attr(w.f.lF,c);return b};w.f.Lfa=function(a,b){a[w.f.xO]=w.f.oH(b);b.appendTo(b.parent())};w.f.uea=function(a){var b=w.f.ze(a);a=a[w.f.xO];b&&a&&b.attr(w.f.lF)===a.attr("id")&&(b.insertAfter(a),b.removeAttr(w.f.lF),a.remove())};w.f.Vz=function(a,b){w.f.Qs(a)&&(a[w.f.fp]=w.f.N5(b),w.f.Lfa(a,b),window.setTimeout(function(){a[w.f.fp].addClass(w.f.Ou)},0))};
w.f.$da=function(a){w.f.Qs(a)&&(a[w.f.fp].remove(),w.f.uea(a))};
w.f.Y1=function(a){var b,c,d,e,f,h,k,l,m,n,p,q;null==$(a).attr("oj-data-pansetup")&&($(a).attr("oj-data-pansetup","true"),a.displayMode="push",b=w.f.ze(a),c=a.size,null==c&&(c=b.outerWidth()),d=w.f.Hn(b),e=w.f.JA(a),f={recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_HORIZONTAL}]]},h=!1,$(d).ng(f).on("panstart",function(c){k=null;switch(c.gesture.direction){case Hammer.DIRECTION_LEFT:Math.abs(c.gesture.deltaY)<Math.abs(c.gesture.deltaX)&&(k=w.f.be()?"end":"start");break;case Hammer.DIRECTION_RIGHT:Math.abs(c.gesture.deltaY)<
Math.abs(c.gesture.deltaX)&&(k=w.f.be()?"start":"end")}null!=k&&(l={direction:k,distance:Math.abs(c.gesture.deltaX)},m=$.Event("ojpanstart"),b.trigger(m,l),m.isDefaultPrevented()||(a._closePromise=null,e.off(".oc"),w.f.ux(a,e,!0),h=!0,c.gesture.srcEvent.stopPropagation(),c.stopPropagation()))}).on("panmove",function(a){h&&(n=a.gesture.deltaX,"start"==k&&0<n||"end"==k&&0>n?w.f.mx(e,"start","0px"):(b.css("width",Math.abs(n)),e.removeClass(w.f.Pe),w.f.mx(e,"start",n+"px"),l={direction:k,distance:Math.abs(n)},
m=$.Event("ojpanmove"),b.trigger(m,l),a.gesture.srcEvent.stopPropagation(),a.stopPropagation()))}).on("panend",function(d){h&&(h=!1,n=Math.abs(d.gesture.deltaX),l={distance:n},m=$.Event("ojpanend"),b.trigger(m,l),d.stopPropagation(),m.isDefaultPrevented()?(q=function(){w.f.ux(a,e,!1);e.removeClass(w.f.Pe);e.off("transitionend webkitTransitionEnd otransitionend oTransitionEnd",q)},e.on("transitionend webkitTransitionEnd otransitionend oTransitionEnd",q),e.addClass(w.f.Pe),w.f.mx(e,"start","0px")):
(p=a.edge,null==p&&(p=b.hasClass("oj-offcanvas-start")?"start":"end"),w.f.e6(e,b,p,c),$.data(b[0],w.f.Ll,a),$.data(b[0],w.f.xF,p),w.f.cx(a)))}))};t("OffcanvasUtils.setupPanToReveal",w.f.Y1,w);
w.f.e6=function(a,b,c,d){var e,f,h,k,l,m,n,p,q,r;a.removeClass(w.f.Pe);e=Math.round(1E3/60);f=a.css("transform").split("(")[1].split(")")[0].split(",");h=parseInt(f[4],10);k="end"==c?0-d:d;m=Math.max(1,Math.abs(k-h)/(400/e));n=(new Date).getTime();p=function(){q=(new Date).getTime();r=Math.max(m,m*Math.max((q-n)/e));n=q;h<k?h=Math.min(k,h+r):h>k&&(h=Math.max(k,h-r));w.f.mx(a,c,Math.abs(h)+"px");b.css("width",Math.abs(h)+"px");h==k?(window.cancelAnimationFrame(l),a.addClass(w.f.Pe)):l=window.requestAnimationFrame(p)};
l=window.requestAnimationFrame(p)};w.f.j2=function(a){a=w.f.ze(a);$(w.f.Hn(a)).off("panstart panmove panend")};t("OffcanvasUtils.tearDownPanToReveal",w.f.j2,w);
w.sa("oj.ojNBox",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{optionChange:null},ue:function(a,b,c){return dvt.NBox.newInstance(a,b,c)},kh:function(a){var b=a.subId;if("oj-nbox-cell"==b)b="cell["+a.row+","+a.column+"]";else if("oj-nbox-dialog"==b)b="dialog";else if("oj-nbox-dialog-close-button"==b)b="dialog#closeButton";else if("oj-nbox-dialog-node"==b)b="dialog#node["+a.index+"]";else if("oj-nbox-group-node"==b)b=a.row&&a.column?"cell["+a.row+","+a.column+"]#groupNode[":"groupNode[",b+=
a.groupCategory+"]";else if("oj-nbox-node"==b){var c,b="";c=a.id;var d=this.ca.getAutomation();c&&d?c=d.getNodeIndexFromId(c):(c=a.index,a.row&&a.column&&(b="cell["+a.row+","+a.column+"]#"));b+="node["+c+"]"}else"oj-nbox-overflow"==b?b="cell["+a.row+","+a.column+"]#overflow":"oj-nbox-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};if(0==a.indexOf("node")){b.subId="oj-nbox-node";a=this.mh(a);var c=this.ca.getAutomation();c&&(b.id=c.getNodeIdFromIndex(a))}else if(0==a.indexOf("cell")){var c=
this.qz(a),d=c.indexOf(",");b.row=c.substring(0,d);b.column=c.substring(d+1);c=a.indexOf("#");0<a.indexOf("#groupNode")?(b.subId="oj-nbox-group-node",b.groupCategory=this.qz(a.substring(c))):0<a.indexOf("#overflow")?b.subId="oj-nbox-overflow":b.subId="oj-nbox-cell"}else 0==a.indexOf("dialog")?0<a.indexOf("#closeButton")?b.subId="oj-nbox-dialog-close-button":b.subId="oj-nbox-dialog":0==a.indexOf("groupNode")?(b.subId="oj-nbox-group-node",b.groupCategory=this.qz(a)):"tooltip"==a&&(b.subId="oj-nbox-tooltip");
return b},Md:function(){var a=this._super();a.push("oj-nbox");return a},ug:function(){var a=this._super();a["oj-nbox-columns-title"]={path:"styleDefaults/columnsTitleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-rows-title"]={path:"styleDefaults/rowsTitleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-column-label"]={path:"styleDefaults/columnLabelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-row-label"]={path:"styleDefaults/rowLabelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-cell"]=
{path:"styleDefaults/cellDefaults/style",property:"CSS_BACKGROUND_PROPERTIES"};a["oj-nbox-cell oj-minimized"]={path:"styleDefaults/cellDefaults/minimizedStyle",property:"CSS_BACKGROUND_PROPERTIES"};a["oj-nbox-cell oj-maximized"]={path:"styleDefaults/cellDefaults/maximizedStyle",property:"CSS_BACKGROUND_PROPERTIES"};a["oj-nbox-cell-label"]={path:"styleDefaults/cellDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-cell-countlabel"]={path:"styleDefaults/cellDefaults/bodyCountLabelStyle",
property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-cell-countlabel oj-nbox-cell-header"]={path:"styleDefaults/cellDefaults/countLabelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-node"]={path:"styleDefaults/nodeDefaults/color",property:"background-color"};a["oj-nbox-node oj-hover"]={path:"styleDefaults/nodeDefaults/hoverColor",property:"border-color"};a["oj-nbox-node oj-selected"]={path:"styleDefaults/nodeDefaults/selectionColor",property:"border-color"};a["oj-nbox-node-label"]={path:"styleDefaults/nodeDefaults/labelStyle",
property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-node-secondarylabel"]={path:"styleDefaults/nodeDefaults/secondaryLabelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-node-categorylabel"]={path:"styleDefaults/__categoryNodeDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-dialog"]=[{path:"styleDefaults/__drawerDefaults/background",property:"background-color"},{path:"styleDefaults/__drawerDefaults/borderColor",property:"border-color"}];a["oj-nbox-dialog-label"]={path:"styleDefaults/__drawerDefaults/labelStyle",
property:"CSS_TEXT_PROPERTIES"};a["oj-nbox-dialog-countlabel"]={path:"styleDefaults/__drawerDefaults/countLabelStyle",property:"CSS_TEXT_PROPERTIES"};return a},vg:function(){return["optionChange"]},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.NBOX"]=a.componentName;b["DvtNBoxBundle.HIGHLIGHTED_COUNT"]=a.highlightedCount;b["DvtNBoxBundle.OTHER"]=a.labelOther;b["DvtNBoxBundle.GROUP_NODE"]=a.labelGroup;b["DvtNBoxBundle.SIZE"]=a.labelSize;b["DvtNBoxBundle.ADDITIONAL_DATA"]=
a.labelAdditionalData;return b},Th:function(a){if("adfPropertyChange"===a.type){a=a.properties;for(var b in a){var c=a[b];"_drawer"==b?this.options[b]=c?{id:c}:null:"maximizedRow"!=b&&"maximizedColumn"!=b||this.Ec(b,c)}}else this._super(a)},Vi:function(){null==this.options._resources&&(this.options._resources={});var a=this.options._resources;a.overflow_dwn={src:w.T.Fa("resources/internal-deps/dvt/nbox/overflow_dwn.png"),width:34,height:9};a.overflow_ovr={src:w.T.Fa("resources/internal-deps/dvt/nbox/overflow_ovr.png"),
width:34,height:9};a.overflow_ena={src:w.T.Fa("resources/internal-deps/dvt/nbox/overflow_ena.png"),width:34,height:9};a.overflow_dis={src:w.T.Fa("resources/internal-deps/dvt/nbox/overflow_dis.png"),width:34,height:9};a.close_dwn={src:w.T.Fa("resources/internal-deps/dvt/nbox/close_dwn.png"),width:16,height:16};a.close_ovr={src:w.T.Fa("resources/internal-deps/dvt/nbox/close_ovr.png"),width:16,height:16};a.close_ena={src:w.T.Fa("resources/internal-deps/dvt/nbox/close_ena.png"),width:16,height:16}},getNodeBySubId:function(a){return this._super(a)},
getSubIdByNode:function(a){return this._super(a)},getRowsTitle:function(){var a=this.ca.getAutomation();return a?a.getData("rowsTitle"):null},getRowCount:function(){var a=this.ca.getAutomation();return a?a.getData("rowCount"):null},getRow:function(a){var b=this.ca.getAutomation();return b?b.getData("row",a):null},getColumnsTitle:function(){var a=this.ca.getAutomation();return a?a.getData("columnsTitle"):null},getColumnCount:function(){var a=this.ca.getAutomation();return a?a.getData("columnCount"):
-1},getColumn:function(a){var b=this.ca.getAutomation();return b?b.getData("column",a):null},getCell:function(a,b){var c=this.ca.getAutomation(),d=c?c.getCell(a,b):null;d&&(d.getGroupNode=function(a){return c.getCellGroupNode(d,a)},d.getNode=function(a){return c.getCellNode(d,a)});return d},getGroupBehavior:function(){var a=this.ca.getAutomation();return a?a.getData("groupBehavior"):null},getGroupNode:function(a){return this.ca.getAutomation().getGroupNode(a)},getDialog:function(){var a=this.ca.getAutomation(),
b=a?a.getDialog():null;b&&(b.getNode=function(b){return a.getDialogNode(b)});return b},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-nbox-tooltip"!==a.subId&&"oj-nbox-dialog-close-button"!==a.subId&&"oj-nbox-overflow"!==a.subId?a:null},lh:function(){return{root:["cells","rows","columns","nodes"]}}});
w.Components.xa("ojNBox","dvtBaseComponent",{properties:{animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},cellContent:{type:"string"},cellMaximize:{type:"string"},cells:{type:"Array\x3cobject\x3e"},columns:{type:"Array\x3cobject\x3e"},columnsTitle:{type:"string"},countLabel:{},groupAttributes:{type:"Array\x3cstring\x3e"},groupBehavior:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},
hoverBehavior:{type:"string"},labelTruncation:{type:"string"},maximizedColumn:{type:"string"},maximizedRow:{type:"string"},nodes:{type:"Array\x3cobject\x3e"},otherColor:{type:"string"},otherThreshold:{type:"number"},rows:{type:"Array\x3cobject\x3e"},rowsTitle:{type:"object"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},styleDefaults:{type:"object"},tooltip:{type:"object"},touchResponse:{type:"string"}},methods:{getCell:{},getColumn:{},getColumnCount:{},getColumnsTitle:{},getContextByNode:{},
getDialog:{},getGroupBehavior:{},getGroupNode:{},getRow:{},getRowCount:{},getRowsTitle:{}},extension:{_widgetName:"ojNBox"}});w.Components.register("oj-n-box",w.Components.getMetadata("ojNBox"));
w.sa("oj.ojTagCloud",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{optionChange:null},ue:function(a,b,c){return dvt.TagCloud.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-tagcloud-item"==b?b="item["+a.index+"]":"oj-tagcloud-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};0==a.indexOf("item")?(b.subId="oj-tagcloud-item",b.index=this.mh(a)):"tooltip"==a&&(b.subId="oj-tagcloud-tooltip");return b},Md:function(){var a=this._super();a.push("oj-tagcloud");return a},ug:function(){var a=
this._super();a["oj-tagcloud"]={path:"styleDefaults/style",property:"CSS_TEXT_PROPERTIES"};return a},vg:function(){return["optionChange"]},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.TAG_CLOUD"]=a.componentName;return b},getItem:function(a){return this.ca.getAutomation().getItem(a)},getItemCount:function(){return this.ca.getAutomation().getItemCount()},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-tagcloud-tooltip"!==a.subId?a:null},lh:function(){return{root:["items"]}}});
w.Components.xa("ojTagCloud","dvtBaseComponent",{properties:{animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},hoverBehavior:{type:"string"},items:{type:"Array\x3cobject\x3e"},layout:{type:"string"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},styleDefaults:{type:"object"},tooltip:{type:"object"},touchResponse:{type:"string"}},
methods:{getContextByNode:{},getItem:{},getItemCount:{}},extension:{_widgetName:"ojTagCloud"}});w.Components.register("oj-tag-cloud",w.Components.getMetadata("ojTagCloud"));
w.sa("oj.ojResizable",$.oj.baseComponent,{version:"1.0.0",widgetEventPrefix:"oj",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,resize:null,start:null,stop:null},NJ:function(a){return parseInt(a,10)||0},Yf:function(a){return!isNaN(parseInt(a,10))},JU:function(a,b){if("hidden"===$(a).css("overflow"))return!1;
var c=b&&"left"===b?"scrollLeft":"scrollTop",d=!1;if(0<a[c])return!0;a[c]=1;d=0<a[c];a[c]=0;return d},_ComponentCreate:function(){this._super();var a,b,c,d,e,f=this;a=this.options;b=this.element.mouse.bind(this.element);b();this.Om=b("instance");this.Om._mouseCapture=function(a){this.element&&this.element.focus();return f.zca(a)};this.Om._mouseStart=function(a){return f.Cca(a)};this.Om._mouseDrag=function(a){return f.Aca(a)};this.Om._mouseStop=function(a){return f.Hw(a)};this.element.addClass("oj-resizable");
$.extend(this,{rE:this.element,UB:[],Ak:null});this.handles=a.handles||($(".oj-resizable-handle",this.element).length?{Rla:".oj-resizable-n",Ala:".oj-resizable-e",Xla:".oj-resizable-s",dh:".oj-resizable-w",Yla:".oj-resizable-se",$la:".oj-resizable-sw",Sla:".oj-resizable-ne",Tla:".oj-resizable-nw"}:"e,s,se");if(this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),a=this.handles.split(","),this.handles={},b=0;b<a.length;b++)c=$.trim(a[b]),e="oj-resizable-"+
c,d=$("\x3cdiv class\x3d'oj-resizable-handle "+e+"'\x3e\x3c/div\x3e"),this.handles[c]=".oj-resizable-"+c,this.element.append(d);this.jea=function(){for(var a in this.handles)this.handles[a].constructor===String&&(this.handles[a]=this.element.children(this.handles[a]).first().show())};this.jea();this.Qaa=$(".oj-resizable-handle",this.element);this.Qaa.mouseover(function(){f.N1||(this.className&&(d=this.className.match(/oj-resizable-(se|sw|ne|nw|n|e|s|w)/i)),f.axis=d&&d[1]?d[1]:"se")});this.Om._mouseInit()},
_destroy:function(){this.Om&&this.Om._mouseDestroy();try{this.Om.destroy(),this.Om=null}catch(a){}$(this.rE).removeClass("oj-resizable oj-resizable-disabled oj-resizable-resizing").removeData("resizable").removeData("oj-resizable").unbind(".resizable").find(".oj-resizable-handle").remove();return this},zca:function(a){var b,c,d=!1;for(b in this.handles)if(c=$(this.handles[b])[0],c===a.target||$.contains(c,a.target))d=!0;return!this.options.disabled&&d},Cca:function(a){var b,c,d;d=this.options;b=this.element.position();
var e=this.element;this.N1=!0;/absolute/.test(e.css("position"))?e.css({position:"absolute",top:e.css("top"),left:e.css("left")}):e.is(".oj-draggable")&&e.css({position:"absolute",top:b.top,left:b.left});this.kea();b=this.NJ(this.helper.css("left"));c=this.NJ(this.helper.css("top"));d.containment&&(b+=$(d.containment).scrollLeft()||0,c+=$(d.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:b,top:c};this.size={width:e.width(),height:e.height()};this.Pj={width:e.width(),
height:e.height()};this.Oo={left:b,top:c};this.BE={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.$ia={left:a.pageX,top:a.pageY};this.Tk=this.Pj.width/this.Pj.height||1;d=$(".oj-resizable-"+this.axis).css("cursor");$("body").css("cursor","auto"===d?this.axis+"-resize":d);e.addClass("oj-resizable-resizing");this.bK("start",a);this.Z5(a);this.d7(a);return!0},Aca:function(a){var b,c=this.helper,d={},e=this.$ia;b=a.pageX-e.left||0;var e=a.pageY-e.top||0,f=this.oh[this.axis];this.zu=
{top:this.position.top,left:this.position.left};this.Au={width:this.size.width,height:this.size.height};if(!f)return!1;b=f.apply(this,[a,b,e]);this.tga(a.shiftKey);a.shiftKey&&(b=this.sga(b,a));b=this.sea(b,a);this.mga(b);this.bK("resize",a);this.Y5(a,this.ui());this.c7(a,this.ui());this.position.top!==this.zu.top&&(d.top=this.position.top+"px");this.position.left!==this.zu.left&&(d.left=this.position.left+"px");this.size.width!==this.Au.width&&(d.width=this.size.width+"px");this.size.height!==this.Au.height&&
(d.height=this.size.height+"px");c.css(d);!this.Ak&&this.UB.length&&this.zda();$.isEmptyObject(d)||this._trigger("resize",a,this.ui());return!1},Hw:function(a){this.N1=!1;$("body").css("cursor","auto");this.element.removeClass("oj-resizable-resizing");this.bK("stop",a);this.a6(a);this.e7(a);return!1},tga:function(a){var b,c,d,e;e=this.options;e={minWidth:this.Yf(e.minWidth)?e.minWidth:0,maxWidth:this.Yf(e.maxWidth)?e.maxWidth:Infinity,minHeight:this.Yf(e.minHeight)?e.minHeight:0,maxHeight:this.Yf(e.maxHeight)?
e.maxHeight:Infinity};a&&(a=e.minHeight*this.Tk,c=e.minWidth/this.Tk,b=e.maxHeight*this.Tk,d=e.maxWidth/this.Tk,a>e.minWidth&&(e.minWidth=a),c>e.minHeight&&(e.minHeight=c),b<e.maxWidth&&(e.maxWidth=b),d<e.maxHeight&&(e.maxHeight=d));this.vga=e},mga:function(a){this.offset=this.helper.offset();this.Yf(a.left)&&(this.position.left=a.left);this.Yf(a.top)&&(this.position.top=a.top);this.Yf(a.height)&&(this.size.height=a.height);this.Yf(a.width)&&(this.size.width=a.width)},sga:function(a){var b=this.position,
c=this.size,d=this.axis;this.Yf(a.height)?a.width=a.height*this.Tk:this.Yf(a.width)&&(a.height=a.width/this.Tk);"sw"===d&&(a.left=b.left+(c.width-a.width),a.top=null);"nw"===d&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width));return a},sea:function(a){var b=this.vga,c=this.axis,d=this.Yf(a.width)&&b.maxWidth&&b.maxWidth<a.width,e=this.Yf(a.height)&&b.maxHeight&&b.maxHeight<a.height,f=this.Yf(a.width)&&b.minWidth&&b.minWidth>a.width,h=this.Yf(a.height)&&b.minHeight&&b.minHeight>a.height,
k=this.Oo.left+this.Pj.width,l=this.position.top+this.size.height,m=/sw|nw|w/.test(c),c=/nw|ne|n/.test(c);f&&(a.width=b.minWidth);h&&(a.height=b.minHeight);d&&(a.width=b.maxWidth);e&&(a.height=b.maxHeight);f&&m&&(a.left=k-b.minWidth);d&&m&&(a.left=k-b.maxWidth);h&&c&&(a.top=l-b.minHeight);e&&c&&(a.top=l-b.maxHeight);a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null;return a},zda:function(){if(this.UB.length){var a,b,c,d,e,f=this.helper||this.element;for(a=
0;a<this.UB.length;a++){e=this.UB[a];if(!this.Ht)for(this.Ht=[],c=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],d=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")],b=0;b<c.length;b++)this.Ht[b]=(parseInt(c[b],10)||0)+(parseInt(d[b],10)||0);e.css({height:f.height()-this.Ht[0]-this.Ht[2]||0,width:f.width()-this.Ht[1]-this.Ht[3]||0})}}},kea:function(){this.element.offset();this.helper=this.element},oh:{e:function(a,
b){return{width:this.Pj.width+b}},w:function(a,b){return{left:this.Oo.left+b,width:this.Pj.width-b}},n:function(a,b,c){return{top:this.Oo.top+c,height:this.Pj.height-c}},s:function(a,b,c){return{height:this.Pj.height+c}},se:function(a,b,c){return $.extend(this.oh.s.apply(this,arguments),this.oh.e.apply(this,[a,b,c]))},sw:function(a,b,c){return $.extend(this.oh.s.apply(this,arguments),this.oh.w.apply(this,[a,b,c]))},ne:function(a,b,c){return $.extend(this.oh.n.apply(this,arguments),this.oh.e.apply(this,
[a,b,c]))},nw:function(a,b,c){return $.extend(this.oh.n.apply(this,arguments),this.oh.w.apply(this,[a,b,c]))}},bK:function(a,b){"resize"!==a&&this._trigger(a,b,this.ui())},Z5:function(){function a(a){$(a).each(function(){var a=$(this);a.data("oj-resizable-alsoresize",{width:parseInt(a.width(),10),height:parseInt(a.height(),10),left:parseInt(a.css("left"),10),top:parseInt(a.css("top"),10)})})}var b=this.options;"object"!==typeof b.alsoResize||b.alsoResize.parentNode?a(b.alsoResize):b.alsoResize.length?
(b.alsoResize=b.alsoResize[0],a(b.alsoResize)):$.each(b.alsoResize,function(b){a(b)})},Y5:function(a,b){function c(a,c){$(a).each(function(){var a=$(this),d=$(this).data("oj-resizable-alsoresize"),e={};$.each(c&&c.length?c:a.parents(b.rE[0]).length?["width","height"]:["width","height","top","left"],function(a,b){var c=(d[b]||0)+(h[b]||0);c&&0<=c&&(e[b]=c||null)});a.css(e)})}var d=this.options,e=this.Pj,f=this.Oo,h={height:this.size.height-e.height||0,width:this.size.width-e.width||0,top:this.position.top-
f.top||0,left:this.position.left-f.left||0};"object"!==typeof d.alsoResize||d.alsoResize.nodeType?c(d.alsoResize,null):$.each(d.alsoResize,function(a,b){c(a,b)})},a6:function(){$(this).removeData("oj-resizable-alsoresize")},d7:function(){var a,b,c,d,e,f=this,h=f.element;c=f.options.containment;if(h=c instanceof $?c.get(0):/parent/.test(c)?h.parent().get(0):c)f.UC=$(h),/document/.test(c)||c===document?(f.VC={left:0,top:0},f.CZ={left:0,top:0},f.Qo={element:$(document),left:0,top:0,width:$(document).width(),
height:$(document).height()||document.body.parentNode.scrollHeight}):(a=$(h),b=[],$(["Top","Right","Left","Bottom"]).each(function(c,d){b[c]=f.NJ(a.css("padding"+d))}),f.VC=a.offset(),f.CZ=a.position(),f.DZ={height:a.innerHeight()-b[3],width:a.innerWidth()-b[1]},c=f.VC,d=f.DZ.height,e=f.DZ.width,e=f.JU(h,"left")?h.scrollWidth:e,d=f.JU(h)?h.scrollHeight:d,f.Qo={element:h,left:c.left,top:c.top,width:e,height:d})},c7:function(a,b){var c,d,e,f;c=this.options;d=this.VC;f=this.position;var h=a.shiftKey;
e={top:0,left:0};var k=this.UC,l=!0;k[0]!==document&&/static/.test(k.css("position"))&&(e=d);f.left<(this.Ak?d.left:0)&&(this.size.width+=this.Ak?this.position.left-d.left:this.position.left-e.left,h&&(this.size.height=this.size.width/this.Tk,l=!1),this.position.left=c.helper?d.left:0);f.top<(this.Ak?d.top:0)&&(this.size.height+=this.Ak?this.position.top-d.top:this.position.top,h&&(this.size.width=this.size.height*this.Tk,l=!1),this.position.top=this.Ak?d.top:0);this.offset.left=this.Qo.left+this.position.left;
this.offset.top=this.Qo.top+this.position.top;c=Math.abs((this.Ak?this.offset.left-e.left:this.offset.left-d.left)+this.BE.width);d=Math.abs((this.Ak?this.offset.top-e.top:this.offset.top-d.top)+this.BE.height);e=this.UC.get(0)===this.element.parent().get(0);f=/relative|absolute/.test(this.UC.css("position"));e&&f&&(c-=Math.abs(this.Qo.left));c+this.size.width>=this.Qo.width&&(this.size.width=this.Qo.width-c,h&&(this.size.height=this.size.width/this.Tk,l=!1));d+this.size.height>=this.Qo.height&&(this.size.height=
this.Qo.height-d,h&&(this.size.width=this.size.height*this.Tk,l=!1));l||(this.position.left=b.zu.left,this.position.top=b.zu.top,this.size.width=b.Au.width,this.size.height=b.Au.height)},e7:function(){var a=this.options,b=this.VC,c=this.CZ,d=this.UC,e=$(this.helper),f=e.offset(),h=e.outerWidth()-this.BE.width,e=e.outerHeight()-this.BE.height;this.Ak&&!a.animate&&/relative/.test(d.css("position"))&&$(this).css({left:f.left-c.left-b.left,width:h,height:e});this.Ak&&!a.animate&&/static/.test(d.css("position"))&&
$(this).css({left:f.left-c.left-b.left,width:h,height:e})},ui:function(){return{rE:this.rE,element:this.element,helper:this.helper,position:this.position,size:this.size,Pj:this.Pj,Oo:this.Oo,Au:this.Au,zu:this.zu}}});
w.sa("oj.ojDialog",$.oj.baseComponent,{version:"1.0.0",widgetEventPrefix:"oj",options:{cancelBehavior:"icon",dragAffordance:"title-bar",initialVisibility:"hide",modality:"modal",position:{my:"center",at:"center",of:window,collision:"fit",dma:function(a){var b=$(this).css(a).offset().top;0>b&&$(this).css("top",a.top-b)}},resizeBehavior:"resizable",role:"dialog",title:null,beforeClose:null,beforeOpen:null,close:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_ComponentCreate:function(){this._super();
this.Zia={display:this.element[0].style.display,width:this.element[0].style.width,height:this.element[0].style.height};this.Oo={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.pN=this.element.attr("title");this.options.title=this.options.title||this.pN;this.R7();this.element.show().removeAttr("title").addClass("oj-dialog-content oj-dialog-default-content").appendTo(this.kb);this.Wy=!1;if(this.element.find(".oj-dialog").length){var a=this;this.element.find(".oj-dialog-header").each(function(b,
c){var d=$(c);if(!d.closest(".oj-dialog-body").length)return a.ho=d,a.Wy=!0,!1})}else this.ho=this.element.find(".oj-dialog-header"),this.ho.length&&(this.Wy=!0);this.Wy?(this.G7(this.ho),this.ho.prependTo(this.kb),this.io=this.ho.find(".oj-dialog-title"),"icon"===this.options.cancelBehavior&&(this.lA(this.ho),this.io.length&&this.io.insertAfter(this.Wk)),this.io.length&&(this.io.uniqueId(),this.kb.attr({"aria-labelledby":this.io.attr("id")}))):this.P7();this.an=this.element.children(".oj-dialog-footer");
this.F7(this.an);this.an.length&&(this.an.addClass("oj-helper-clearfix"),this.an.appendTo(this.kb));"title-bar"===this.options.dragAffordance&&$.fn.draggable&&this.Ws();this.nfa(this.kb);this.Rn=!1},OO:function(){"show"===this.options.initialVisibility&&this.open()},_destroy:function(){this.a8&&window.clearTimeout(this.a8);this.isOpen()&&this.Ep();this.km&&(this.km("instance")&&this.km("destroy"),this.km=null);this.an.length&&(this.an.removeClass("oj-helper-clearfix"),$("#"+this.zW).replaceWith(this.an));
this.uA();if(this.Wy){var a=this.kb.find(".oj-dialog-header");a&&$("#"+this.AW).replaceWith(a)}this.x2&&(this.x2.remove(),this.x2=null);this.element.removeUniqueId().removeClass("oj-dialog-content oj-dialog-default-content").css(this.Zia);this.kb&&this.kb.stop(!0,!0);this.element.unwrap();this.pN&&this.element.attr("title",this.pN);this.bn&&(this.bn.remove(),this.bn=null);delete this.vj;delete this.Rn;this._super()},widget:function(){return this.kb},disable:$.noop,enable:$.noop,close:function(a){if(this.isOpen()&&
(!1!==this._trigger("beforeClose",a)||this.uw)){this.Rn=!1;this.U8=null;this.opener.filter(":focusable").focus().length||$(this.document[0].activeElement).blur();var b={};b[xl]=this.kb;sl().close(b);this._trigger("close",a)}},isOpen:function(){return this.Rn},open:function(a){if(!1!==this._trigger("beforeOpen",a)){if(!this.isOpen()){this.Rn=!0;this.opener=$(this.document[0].activeElement);"resizable"===this.options.resizeBehavior&&this.XV();a="rtl"===this.$b();a=w.lc.Nh(this.options.position,a);var b=
{};b[xl]=this.kb;b[yl]=this.opener;b[Al]=a;b.modality=this.options.modality;b[zl]=this.Cs();b[Bl]="oj-dialog-layer";b.layerLevel="topLevel";sl().open(b);this._trigger("open")}this.YS()}},refresh:function(){this._super()},YS:function(){var a=this.U8;a&&0<a.length&&w.q.vo(this.kb[0],a[0])||(a||(a=this.element.find("[autofocus]")),a.length||(a=this.element.find(":tabbable")),a.length||this.an.length&&(a=this.an.find(":tabbable")),a.length||this.Wk&&(a=this.Wk.filter(":focusable")),a.length||(a=this.kb),
a.eq(0).focus(),this._trigger("focus"))},_keepFocus:function(a){a.preventDefault();a=this.document[0].activeElement;this.kb[0]===a||$.contains(this.kb[0],a)||this.YS()},Yf:function(a){return!isNaN(parseInt(a,10))},R7:function(){this.DV=!1;this.element.uniqueId();this.GH=this.element.attr("id");this.Kc?(this.kb=$(this.Kc),this.kb.uniqueId(),this.cZ=this.kb.attr("id")):(this.cZ="ojDialogWrapper-"+this.GH,this.kb=$("\x3cdiv\x3e"),this.kb.insertBefore(this.element));this.kb.addClass("oj-dialog oj-component").hide().attr({tabIndex:-1,
role:this.options.role,id:this.cZ});this._on(this.kb,{keyup:function(){},keydown:function(a){if("none"!=this.options.cancelBehavior&&!a.isDefaultPrevented()&&a.keyCode&&a.keyCode===$.ui.keyCode.ESCAPE)a.preventDefault(),a.stopImmediatePropagation(),this.close(a);else if(a.keyCode===$.ui.keyCode.TAB){var b=this.kb.find(":tabbable"),c=b.filter(":first"),d=b.filter(":last");a.shiftKey?a.shiftKey&&(a.target===c[0]||a.target===this.kb[0]?(d.focus(),a.preventDefault()):(c=b.index(document.activeElement),
1==c&&b[0]&&(b[0].focus(),a.preventDefault()))):a.target===d[0]||a.target===this.kb[0]?(c.focus(),a.preventDefault()):(c=b.index(document.activeElement),0==c&&b[1]&&(b[1].focus(),a.preventDefault()))}}});this.element.find("[aria-describedby]").length||this.kb.attr({"aria-describedby":this.element.uniqueId().attr("id")})},nfa:function(a){var b=this;this._focusable({applyHighlight:!0,setupHandlers:function(c,d){b._on(a,{focus:function(a){c($(a.currentTarget))},blur:function(a){d($(a.currentTarget))}})}})},
uA:function(){this.Wk&&(this.Wk.remove(),this.Wk=null)},lA:function(a){this.Wk=$("\x3cbutton id\x3d'dialogCloseButton'\x3e\x3c\button\x3e").addClass("oj-dialog-header-close-wrapper");this.Wk.ojButton({display:"icons",chroming:"half",label:"close",icons:{start:"oj-component-icon oj-fwk-icon-cross"}}).attr("tabindex","1").appendTo(a);this._on(this.Wk,{click:function(a){a.preventDefault();a.stopImmediatePropagation();this.close(a)},keydown:function(a){if(a.keyCode&&a.keyCode===$.ui.keyCode.SPACE||a.keyCode===
$.ui.keyCode.ENTER)a.preventDefault(),a.stopImmediatePropagation(),this.close(a)}})},P7:function(){var a;this.bn=$("\x3cdiv\x3e").addClass("oj-dialog-header oj-helper-clearfix").prependTo(this.kb);this._on(this.bn,{mousedown:function(a){$(a.target);a=$(a.target).parent().parent();var c=!1;a&&(c=a.hasClass("oj-dialog-header-close-wrapper"));c||this.kb.focus()}});"icon"===this.options.cancelBehavior&&this.lA(this.bn);a=$("\x3cspan\x3e").uniqueId().addClass("oj-dialog-title").appendTo(this.bn);this.wt(a);
this.kb.attr({"aria-labelledby":a.attr("id")})},wt:function(a){this.options.title||a.html("\x26#160;");a.text(this.options.title)},Ws:function(){function a(a){return{position:a.position,offset:a.offset}}var b=this,c=this.options;this.kb.draggable({sla:!1,cancel:".oj-dialog-content, .oj-dialog-header-close",handle:".oj-dialog-header",containment:"document",start:function(c,e){$(this).addClass("oj-dialog-dragging");b.Qw();b._trigger("dragStart",c,a(e))},drag:function(c,e){b.Qw();b._trigger("drag",c,
a(e))},stop:function(d,e){var f=e.offset.left-b.document.scrollLeft(),h=e.offset.top-b.document.scrollTop();c.position={my:"left top",at:"left"+(0<=f?"+":"")+f+" top"+(0<=h?"+":"")+h,of:window};$(this).removeClass("oj-dialog-dragging");b.Qw();b._trigger("dragStop",d,a(e))}});this.kb.addClass("oj-draggable")},XV:function(){function a(a){return{originalPosition:a.Oo,originalSize:a.Pj,position:a.position,size:a.size}}var b=this;this.kb.css("position");this.km=this.kb.ojResizable.bind(this.kb);this.km({cancel:".oj-dialog-content",
containment:"document",handles:"n,e,s,w,se,sw,ne,nw",start:function(c,d){b.DV=!0;$(this).addClass("oj-dialog-resizing");b._trigger("resizeStart",c,a(d))},resize:function(c,d){b._trigger("resize",c,a(d))},stop:function(c,d){b.DV=!1;$(this).removeClass("oj-dialog-resizing");b._trigger("resizeStop",c,a(d))}})},WJ:function(){var a="rtl"===this.$b(),a=w.lc.Nh(this.options.position,a);this.kb.position(a);this.Qw()},Qw:function(){sl().IE(this.kb,tl)},_setOption:function(a,b,c){var d;d=this.kb;if("disabled"!==
a)switch(this._super(a,b,c),a){case "dragAffordance":(a=d.hasClass("oj-draggable"))&&"none"===b&&(d.draggable("destroy"),this.kb.removeClass("oj-draggable"));a||"title-bar"!==b||this.Ws();break;case "position":this.WJ();break;case "resizeBehavior":d=!1;this.km&&(d=!0);d&&"resizable"!=b&&(this.km("instance")&&this.km("destroy"),this.km=null);d||"resizable"!==b||this.XV();break;case "title":this.wt(this.bn.find(".oj-dialog-title"));break;case "role":d.attr("role",b);break;case "modality":this.isOpen()&&
(d={},d[xl]=this.kb,d.modality=b,sl().It(d));break;case "cancelBehavior":"none"===b||"escape"===b?this.uA():"icon"===b&&(this.Wy?(this.uA(),this.lA(this.ho),this.io=this.ho.find(".oj-dialog-title"),this.io.length&&this.io.insertAfter(this.Wk)):(this.uA(),this.lA(this.bn),this.g2=this.bn.find(".oj-dialog-title"),this.g2.length&&this.g2.insertAfter(this.Wk)))}},F7:function(a){this.zW="ojDialogPlaceHolderFooter-"+this.GH;this.hda=$("\x3cdiv\x3e").hide().attr({id:this.zW});this.hda.insertBefore(a)},G7:function(a){this.AW=
"ojDialogPlaceHolderHeader-"+this.GH;this.ida=$("\x3cdiv\x3e").hide().attr({id:this.AW});this.ida.insertBefore(a)},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;a=a.subId;switch(a){case "oj-dialog-header":case "oj-dialog-body":case "oj-dialog-footer":case "oj-dialog-content":case "oj-dialog-header-close-wrapper":case "oj-resizable-n":case "oj-resizable-e":case "oj-resizable-s":case "oj-resizable-w":case "oj-resizable-se":case "oj-resizable-sw":case "oj-resizable-ne":case "oj-resizable-nw":a=
"."+a;if(!this.widget().find(a))break;return this.widget().find(a)[0]}return null},getSubIdByNode:function(a){if(null!=a){a=$(a);if(a.hasClass("oj-dialog-header"))return{subId:"oj-dialog-header"};if(a.hasClass("oj-dialog-footer"))return{subId:"oj-dialog-footer"};if(a.hasClass("oj-dialog-content"))return{subId:"oj-dialog-content"};if(a.hasClass("oj-dialog-header-close-wrapper"))return{subId:"oj-dialog-header-close-wrapper"};if(a.hasClass("oj-resizable-n"))return{subId:"oj-resizable-n"};if(a.hasClass("oj-resizable-e"))return{subId:"oj-resizable-e"};
if(a.hasClass("oj-resizable-s"))return{subId:"oj-resizable-s"};if(a.hasClass("oj-resizable-w"))return{subId:"oj-resizable-w"};if(a.hasClass("oj-resizable-se"))return{subId:"oj-resizable-se"};if(a.hasClass("oj-resizable-sw"))return{subId:"oj-resizable-sw"};if(a.hasClass("oj-resizable-ne"))return{subId:"oj-resizable-ne"};if(a.hasClass("oj-resizable-nw"))return{subId:"oj-resizable-nw"}}return null},Fq:function(){this.element.remove()},Cs:function(){if(!this.vj){var a=this.vj={};a[ul]=$.proxy(this.Ep,
this);a[vl]=$.proxy(this.Fq,this);a[tl]=$.proxy(this.Qw,this)}return this.vj},Ep:function(){this.uw=!0;this.close();delete this.uw}});w.Components.Rj({ojDialog:{resizeBehavior:w.Components.ad(function(){return(w.Ob.Tc("oj-dialog-option-defaults")||{}).resizeBehavior}),cancelBehavior:w.Components.ad(function(){return(w.Ob.Tc("oj-dialog-option-defaults")||{}).cancelBehavior}),dragAffordance:w.Components.ad(function(){return(w.Ob.Tc("oj-dialog-option-defaults")||{}).dragAffordance})}});
w.Components.xa("ojDialog","baseComponent",{properties:{cancelBehavior:{type:"string"},dragAffordance:{type:"string"},initialVisibility:{type:"string"},modality:{type:"string"},position:{type:"Object"},resizeBehavior:{type:"string"},role:{type:"string"},title:{type:"string"},widget:{}},methods:{close:{},destroy:{},isOpen:{},open:{},refresh:{}},extension:{_hasWrapper:!0,_innerElement:"div",_widgetName:"ojDialog"}});w.Components.register("oj-dialog",w.Components.getMetadata("ojDialog"));
function So(a,b,c){c=c||{};this.b=b;this.Lp=$(a)[0];this.vs=c.fetchSize;this.vs=0<this.vs?this.vs:25;this.Xs=c.maxCount;this.Xs=0<this.Xs?this.Xs:500;this.Jk=0;this.vY=c.success;this.G8=c.error;this.wq();this.Mp=c.fetchTrigger;if(null==this.Mp||isNaN(this.Mp))this.Mp=0;this.vba=this.Lp.scrollTop;$(this.ZA()).on("scroll.domscroller",function(){var a=this.Lp,b;a:{b=this.Mp;if(a==document.documentElement&&(void 0===this.XY&&(this.XY=this.vba==a.scrollTop?!0:!1),this.XY)){b+=document.body.scrollTop;break a}b+=
a.scrollTop}a=a.scrollHeight-a.clientHeight;0<a&&this.YI(b,a)}.bind(this))}So.prototype.ZA=function(){return this.Lp==document.body||this.Lp==document.documentElement?window:this.Lp};So.prototype.destroy=function(){this.Pk();$(this.ZA()).off("scroll.domscroller")};A("DomScroller.prototype.destroy",{destroy:So.prototype.destroy});So.prototype.checkViewport=function(){var a;if(a=0<this.Lp.clientHeight)a=this.Lp,a=!(a.scrollHeight>a.clientHeight+this.Mp);return a?Fs(this):Promise.resolve(null)};
A("DomScroller.prototype.checkViewport",{checkViewport:So.prototype.checkViewport});g=So.prototype;g.YI=function(a,b){if(1>=b-a&&!this.Vv){var c=this;Fs(this).then(function(a){null!=c.vY&&c.vY(a)},this.G8)}};
function Fs(a){if(a.Vv)return a.Vv;var b=a.Xs-a.Jk;if(0<b){var c=a.vs;b<a.vs&&(c=b);var d=Gs(a,{pageSize:c});a.Vv=new Promise(function(c){d.then(function(d){a.Vv=null;null!=d&&0<d.data.length&&(a.Jk=d.data.length+d.startIndex,b<a.vs&&(d.maxCount=a.Xs,d.maxCountLimit=!0));c(d)})});return a.Vv}return Promise.resolve({maxCount:a.Xs,maxCountLimit:!0})}
function Gs(a,b){b=b||{};var c=b.pageSize;a.Xf=a.Xf?a.Xf+c:c;return-1==a.b.totalSize()||!a.pd()||a.pd()&&a.b.totalSize()>a.Xf?new Promise(function(b,e){a.b.fetch({startIndex:a.Xf,pageSize:c}).then(function(a){b(a)},function(){e(null)})}):Promise.resolve()}g.Mn=function(){this.Xf=null;this.Jk=0};g.F$=function(a){this.Xf=a.startIndex;0<a.data.length&&(this.Jk=a.data.length+this.Xf)};
function Hs(a){return function(b){b=b||{};b=b.indexes;var c,d=b.length;for(c=0;c<d;c++){var e=b[c];void 0!==e&&0<this.Jk&&e<=this.Jk&&(a==R.ADD?this.Jk+=1:a==R.REMOVE&&(this.Jk-=1))}}}g.pd=function(){var a=this.b;return null!=a&&"actual"==a.totalSizeConfidence()?!0:!1};
g.wq=function(){var a=this.b;if(null!=a){this.Pk();this.Oa=[];this.Oa.push({eventType:R.SORT,eventHandler:this.Mn.bind(this)});this.Oa.push({eventType:R.REFRESH,eventHandler:this.Mn.bind(this)});this.Oa.push({eventType:R.RESET,eventHandler:this.Mn.bind(this)});this.Oa.push({eventType:R.SYNC,eventHandler:this.F$.bind(this)});this.Oa.push({eventType:R.ADD,eventHandler:Hs(R.ADD).bind(this)});this.Oa.push({eventType:R.REMOVE,eventHandler:Hs(R.REMOVE).bind(this)});var b,c;for(b=0;b<this.Oa.length;b++)(c=
a.on(this.Oa[b].eventType,this.Oa[b].eventHandler))&&(this.Oa[b].eventHandler=c)}};g.Pk=function(){var a=this.b;if(null!=this.Oa&&null!=a){var b;for(b=0;b<this.Oa.length;b++)a.off(this.Oa[b].eventType,this.Oa[b].eventHandler)}};
Hammer?($.fn.ng=function(a){switch(a){case "instance":return this.data("ojHammer");case "destroy":return this.each(function(){var a=$(this),c=a.data("ojHammer");c&&(c.destroy(),a.removeData("ojHammer"))});default:return this.each(function(){var b=$(this);b.data("ojHammer")||b.data("ojHammer",new Hammer.Manager(b[0],a))})}},t("$.fn.ojHammer",$.fn.ng,void 0),Hammer.Manager.prototype.emit=function(a){return function(b,c){a.call(this,b,c);$(this.element).trigger({type:b,gesture:c})}}(Hammer.Manager.prototype.emit)):
w.l.warn("Hammer jQuery extension loaded without Hammer.");
w.sa("oj.ojTreemap",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{optionChange:null},ue:function(a,b,c){return dvt.Treemap.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-treemap-node"==b?b="node"+this.pp(a.indexPath):"oj-treemap-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};0==a.indexOf("node")?(b.subId="oj-treemap-node",b.indexPath=this.Si(a)):"tooltip"==a&&(b.subId="oj-treemap-tooltip");return b},Md:function(){var a=this._super();a.push("oj-treemap");return a},ug:function(){var a=
this._super();a["oj-treemap-attribute-type-text"]={path:"styleDefaults/_attributeTypeTextStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-treemap-attribute-value-text"]={path:"styleDefaults/_attributeValueTextStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-treemap-node"]={path:"nodeDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-treemap-node oj-hover"]={path:"nodeDefaults/hoverColor",property:"border-top-color"};a["oj-treemap-node oj-selected"]=[{path:"nodeDefaults/selectedOuterColor",property:"border-top-color"},
{path:"nodeDefaults/selectedInnerColor",property:"border-bottom-color"}];a["oj-treemap-node-header"]=[{path:"nodeDefaults/header/backgroundColor",property:"background-color"},{path:"nodeDefaults/header/borderColor",property:"border-top-color"},{path:"nodeDefaults/header/labelStyle",property:"CSS_TEXT_PROPERTIES"}];a["oj-treemap-node-header oj-hover"]=[{path:"nodeDefaults/header/hoverBackgroundColor",property:"background-color"},{path:"nodeDefaults/header/hoverOuterColor",property:"border-top-color"},
{path:"nodeDefaults/header/hoverInnerColor",property:"border-bottom-color"},{path:"nodeDefaults/header/_hoverLabelStyle",property:"CSS_TEXT_PROPERTIES"}];a["oj-treemap-node-header oj-selected"]=[{path:"nodeDefaults/header/selectedBackgroundColor",property:"background-color"},{path:"nodeDefaults/header/selectedOuterColor",property:"border-top-color"},{path:"nodeDefaults/header/selectedInnerColor",property:"border-bottom-color"},{path:"nodeDefaults/header/_selectedLabelStyle",property:"CSS_TEXT_PROPERTIES"}];
return a},vg:function(){return["optionChange"]},Uf:function(){var a=this.options.translations,b=this._super();b["DvtTreemapBundle.COLOR"]=a.labelColor;b["DvtTreemapBundle.ISOLATE"]=a.tooltipIsolate;b["DvtTreemapBundle.RESTORE"]=a.tooltipRestore;b["DvtTreemapBundle.SIZE"]=a.labelSize;b["DvtUtilBundle.TREEMAP"]=a.componentName;return b},Th:function(a){if("isolate"===a.type){var b=this.options.IV;b||(this.options.IV=[],b=this.options.IV);(a=a.id)?(b.push(a),this.Ec("isolatedNode",a)):(b.pop(),this.Ec("isolatedNode",
0<b.length?b[b.length]:null))}else this._super(a)},Vi:function(){null==this.options._resources&&(this.options._resources={});var a=this.options._resources;a.isolate="oj-treemap-isolate-icon";a.isolateOver="oj-treemap-isolate-icon oj-hover";a.isolateDown="oj-treemap-isolate-icon oj-active";a.restore="oj-treemap-restore-icon";a.restoreOver="oj-treemap-restore-icon oj-hover";a.restoreDown="oj-treemap-restore-icon oj-active"},getNode:function(a){a=this.ca.getAutomation().getNode(a);this.Sf(a);return a},
getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-treemap-tooltip"!==a.subId?a:null},lh:function(){return{root:["nodes"]}}});
w.Components.xa("ojTreemap","dvtBaseComponent",{properties:{animationDuration:{type:"number"},animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},animationUpdateColor:{type:"string"},colorLabel:{type:"string"},groupGaps:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},hoverBehavior:{type:"string"},hoverBehaviorDelay:{type:"number|string"},isolatedNode:{type:"string"},layout:{type:"string"},
nodeDefaults:{type:"object"},nodes:{type:"Array\x3cobject\x3e"},nodeSeparators:{type:"string"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},sizeLabel:{type:"string"},sorting:{type:"string"},tooltip:{type:"object"},touchResponse:{type:"string"}},methods:{getContextByNode:{},getNode:{}},extension:{_widgetName:"ojTreemap"}});w.Components.register("oj-treemap",w.Components.getMetadata("ojTreemap"));
w.sa("oj.ojGantt",$.oj.dvtTimeComponent,{widgetEventPrefix:"oj",options:{viewportChange:null},ue:function(a,b,c){a.styleClasses={databody:"oj-gantt-container",dependencyLine:"oj-gantt-dependency-line",dependencyLineConnector:"oj-gantt-dependency-line-connector",nodata:"oj-gantt-no-data-message",hgridline:"oj-gantt-horizontal-gridline",vgridline:"oj-gantt-vertical-gridline",majorAxis:"oj-gantt-major-axis",majorAxisTicks:"oj-gantt-major-axis-separator",majorAxisLabels:"oj-gantt-major-axis-label",minorAxis:"oj-gantt-minor-axis",
minorAxisTicks:"oj-gantt-minor-axis-separator",minorAxisLabels:"oj-gantt-minor-axis-label",row:"oj-gantt-row",rowLabel:"oj-gantt-row-label",task:"oj-gantt-task",taskLabel:"oj-gantt-task-label",tooltipLabel:"oj-gantt-tooltip-label",tooltipValue:"oj-gantt-tooltip-value",tooltipTable:"oj-gantt-tooltip-content",referenceObject:"oj-gantt-reference-object",selected:"oj-selected",hover:"oj-hover",focus:"oj-focus"};return dvt.Gantt.newInstance(a,b,c)},Md:function(){var a=this._super();a.push("oj-gantt");
return a},Kka:function(){return{databody:"oj-gantt-container",dependencyLine:"oj-gantt-dependency-line",dependencyLineConnector:"oj-gantt-dependency-line-connector",nodata:"oj-gantt-no-data-message",hgridline:"oj-gantt-horizontal-gridline",vgridline:"oj-gantt-vertical-gridline",majorAxis:"oj-gantt-major-axis",majorAxisTicks:"oj-gantt-major-axis-separator",majorAxisLabels:"oj-gantt-major-axis-label",minorAxis:"oj-gantt-minor-axis",minorAxisTicks:"oj-gantt-minor-axis-separator",minorAxisLabels:"oj-gantt-minor-axis-label",
row:"oj-gantt-row",rowLabel:"oj-gantt-row-label",task:"oj-gantt-task",taskLabel:"oj-gantt-task-label",tooltipLabel:"oj-gantt-tooltip-label",tooltipValue:"oj-gantt-tooltip-value",tooltipTable:"oj-gantt-tooltip-content",referenceObject:"oj-gantt-reference-object",selected:"oj-selected",hover:"oj-hover",focus:"oj-focus"}},kh:function(a){var b=a.subId;"oj-gantt-taskbar"==b?b="taskbar["+a.rowIndex+"]["+a.index+"]":"oj-gantt-row-label"==b?b="rowLabel["+a.index+"]":"oj-gantt-tooltip"==b&&(b="tooltip");return b},
df:function(a){var b={};0==a.indexOf("taskbar")?(a=this.Si(a),b.subId="oj-gantt-taskbar",b.rowIndex=a[0],b.index=a[1]):0==a.indexOf("rowLabel")?(a=this.Si(a),b.subId="oj-gantt-row-label",b.index=a[0]):"tooltip"==a&&(b.subId="oj-gantt-tooltip");return b},ug:function(){var a=this._super();a["oj-gantt"]={path:"_resources/animationDuration",property:"animation-duration"};a["oj-gantt-zoomin-icon"]=[{path:"_resources/zoomIn",property:"CSS_URL"},{path:"_resources/zoomIn_bgc",property:"background-color"},
{path:"_resources/zoomIn_bc",property:"border-color"}];a["oj-gantt-zoomin-icon oj-hover"]=[{path:"_resources/zoomIn_h",property:"CSS_URL"},{path:"_resources/zoomIn_h_bgc",property:"background-color"},{path:"_resources/zoomIn_h_bc",property:"border-color"}];a["oj-gantt-zoomin-icon oj-active"]=[{path:"_resources/zoomIn_a",property:"CSS_URL"},{path:"_resources/zoomIn_a_bgc",property:"background-color"},{path:"_resources/zoomIn_a_bc",property:"border-color"}];a["oj-gantt-zoomin-icon oj-disabled"]=[{path:"_resources/zoomIn_d",
property:"CSS_URL"},{path:"_resources/zoomIn_d_bgc",property:"background-color"},{path:"_resources/zoomIn_d_bc",property:"border-color"}];a["oj-gantt-zoomout-icon"]=[{path:"_resources/zoomOut",property:"CSS_URL"},{path:"_resources/zoomOut_bgc",property:"background-color"},{path:"_resources/zoomOut_bc",property:"border-color"}];a["oj-gantt-zoomout-icon oj-hover"]=[{path:"_resources/zoomOut_h",property:"CSS_URL"},{path:"_resources/zoomOut_h_bgc",property:"background-color"},{path:"_resources/zoomOut_h_bc",
property:"border-color"}];a["oj-gantt-zoomout-icon oj-active"]=[{path:"_resources/zoomOut_a",property:"CSS_URL"},{path:"_resources/zoomOut_a_bgc",property:"background-color"},{path:"_resources/zoomOut_a_bc",property:"border-color"}];a["oj-gantt-zoomout-icon oj-disabled"]=[{path:"_resources/zoomOut_d",property:"CSS_URL"},{path:"_resources/zoomOut_d_bgc",property:"background-color"},{path:"_resources/zoomOut_d_bc",property:"border-color"}];a["oj-gantt-major-axis-label"]={path:"_resources/majorAxisLabelFontProp",
property:"CSS_TEXT_PROPERTIES"};a["oj-gantt-minor-axis-label"]={path:"_resources/minorAxisLabelFontProp",property:"CSS_TEXT_PROPERTIES"};a["oj-gantt-container"]={path:"_resources/chartArea/strokeWidth",property:"stroke-width"};a["oj-gantt-horizontal-gridline"]={path:"_resources/horizontalGridlineWidth",property:"stroke-width"};a["oj-gantt-task-label"]={path:"_resources/taskLabelFontProp",property:"CSS_TEXT_PROPERTIES"};a["oj-gantt-row-label"]={path:"_resources/rowLabelFontProp",property:"CSS_TEXT_PROPERTIES"};
return a},vg:function(){return["optionChange","viewportChange"]},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.GANTT"]=a.componentName;b["DvtUtilBundle.ZOOM_IN"]=a.tooltipZoomIn;b["DvtUtilBundle.ZOOM_OUT"]=a.tooltipZoomOut;return b},Vi:function(){this._super();var a=this.options._resources,b=w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME);a.converterFactory=b;a.firstDayOfWeek=w.za.Rx()},Th:function(a){if("viewportChange"===a.type){var b=(new Date(a.viewportStart)).toISOString(),
c=(new Date(a.viewportEnd)).toISOString(),d=a.majorAxisScale;a=a.minorAxisScale;var e={viewportStart:b,viewportEnd:c,majorAxisScale:d,minorAxisScale:a};this.Ec("viewportStart",b);this.Ec("viewportEnd",c);this.Ec("majorAxis.scale",d);this.Ec("minorAxis.scale",a);this._trigger("viewportChange",null,e)}else this._super(a)},lh:function(){return{root:["rows"]}},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-gantt-tooltip"!==a.subId?a:null}});
w.Components.xa("ojGantt","dvtTimeComponent",{properties:{animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},axisPosition:{type:"string"},dependencies:{type:"Array\x3cobject\x3e"},end:{type:"number"},gridlines:{type:"object"},majorAxis:{type:"object"},minorAxis:{type:"object"},referenceObjects:{type:"Array\x3cobject\x3e"},rowAxis:{type:"object"},rows:{type:"Array\x3cobject\x3e"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},start:{type:"number"},taskDefaults:{type:"object"},
tooltip:{type:"object"},valueFormats:{type:"Array\x3cobject\x3e"},viewportEnd:{type:"number"},viewportStart:{type:"number"}},methods:{whenReady:{}},extension:{_widgetName:"ojGantt"}});w.Components.register("oj-gantt",w.Components.getMetadata("ojGantt"));function Is(a,b,c,d,e){w.i.Gx(c);this.Tb=a;this.le=b;this.YD=c;this.$=d;this.wc=e}t("CollectionHeaderSet",Is,w);Is.prototype.X1=function(a){w.i.QC(a);null!=a&&a.length===this.getCount()&&(this.br=a)};
Is.prototype.getData=function(a,b){var c;w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");if(null!=this.$){if(null==this.br)return null;c=this.br[a-this.Tb];return c.get(this.$)}return this.YD[a]};A("CollectionHeaderSet.prototype.getData",{getData:Is.prototype.getData});
Is.prototype.getMetadata=function(a,b){var c;w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");if(null!=this.$){if(null==this.br)return null;c=this.br[a-this.Tb];return{key:Js(c)}}c=this.getData(a,b);return this.wc.key===c?{key:c,sortDirection:this.wc.direction}:{key:c}};A("CollectionHeaderSet.prototype.getMetadata",{getMetadata:Is.prototype.getMetadata});Is.prototype.getLevelCount=function(){return 0<this.getCount()?1:0};
A("CollectionHeaderSet.prototype.getLevelCount",{getLevelCount:Is.prototype.getLevelCount});Is.prototype.getExtent=function(a,b){w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return{extent:1,more:{before:!1,after:!1}}};A("CollectionHeaderSet.prototype.getExtent",{getExtent:Is.prototype.getExtent});Is.prototype.getDepth=function(a,b){w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return 1};
A("CollectionHeaderSet.prototype.getDepth",{getDepth:Is.prototype.getDepth});Is.prototype.getCount=function(){return Math.max(0,this.le-this.Tb)};A("CollectionHeaderSet.prototype.getCount",{getCount:Is.prototype.getCount});Is.prototype.getStart=function(){return this.Tb};A("CollectionHeaderSet.prototype.getStart",{getStart:Is.prototype.getStart});Is.prototype.n_=function(){return this.le};A("CollectionHeaderSet.prototype.getEnd",{n_:Is.prototype.n_});Is.prototype.t_=function(){return this.YD};
A("CollectionHeaderSet.prototype.getHeaders",{t_:Is.prototype.t_});Is.prototype.Ux=function(){return this.$};A("CollectionHeaderSet.prototype.getRowHeader",{Ux:Is.prototype.Ux});function Ks(a,b,c,d,e){w.i.Gx(e);this.ha=a;this.Ja=b;this.ul=c;this.Zq=d;this.Sd=e}t("CollectionCellSet",Ks,w);Ks.prototype.X1=function(a){w.i.QC(a);null!=a&&a.length===this.getCount("row")&&(this.br=a)};
Ks.prototype.getData=function(a){var b,c;c=this.Kb(a);if(null==c)return null;b=this.Sd[a.column];a={};Object.defineProperty(a,"data",{get:function(){return c.get(b)},set:function(a){c.set(b,a,{silent:!0})}});return a};A("CollectionCellSet.prototype.getData",{getData:Ks.prototype.getData});Ks.prototype.getMetadata=function(a){var b;b=this.Kb(a);return null==b?null:{keys:{row:Js(b),column:this.Sd[a.column]}}};A("CollectionCellSet.prototype.getMetadata",{getMetadata:Ks.prototype.getMetadata});
Ks.prototype.Kb=function(a){var b;if(null==this.br)return null;w.i.xf(a);b=a.row;a=a.column;w.i.assert(b>=this.ha&&b<=this.Ja&&a>=this.ul&&a<=this.Zq);return this.br[b-this.ha]};Ks.prototype.getCount=function(a){return"row"===a?Math.max(0,this.Ja-this.ha):"column"===a?Math.max(0,this.Zq-this.ul):0};A("CollectionCellSet.prototype.getCount",{getCount:Ks.prototype.getCount});Ks.prototype.dl=function(){return this.ha};A("CollectionCellSet.prototype.getStartRow",{dl:Ks.prototype.dl});Ks.prototype.p_=function(){return this.Ja};
A("CollectionCellSet.prototype.getEndRow",{p_:Ks.prototype.p_});Ks.prototype.cl=function(){return this.ul};A("CollectionCellSet.prototype.getStartColumn",{cl:Ks.prototype.cl});Ks.prototype.o_=function(){return this.Zq};A("CollectionCellSet.prototype.getEndColumn",{o_:Ks.prototype.o_});Ks.prototype.so=function(){return this.Sd};A("CollectionCellSet.prototype.getColumns",{so:Ks.prototype.so});function Js(a){var b;b=a.id;null==b&&(b=a.cid);return b}
function Ls(a,b){this.Ea=a;null!=b&&(this.Py=b.rowHeader,this.columns=b.columns);Ms(this);Ls.o.constructor.call(this)}t("CollectionDataGridDataSource",Ls,w);H(Ls,Uf,"oj.CollectionDataGridDataSource");Ls.prototype.Init=function(){Ls.o.Init.call(this);this.Um={};this.dx()};A("CollectionDataGridDataSource.prototype.Init",{Init:Ls.prototype.Init});
Ls.prototype.dx=function(){this.Ea.on("add",this.saa.bind(this));this.Ea.on("remove",this.uaa.bind(this));this.Ea.on("change",this.taa.bind(this));this.Ea.on("refresh",this.x$.bind(this));this.Ea.on("reset",this.y$.bind(this))};
Ls.prototype.getCount=function(a){var b;void 0==this.precision&&(this.precision={});if("row"==a){b=this.sd();if(-1===b||0===b&&(null==this.data||0<this.ao()))return this.precision[a]="estimate",-1;this.precision[a]="exact";return this.ao()}if("column"==a){if(null!=this.columns)return this.precision[a]="exact",this.columns.length;this.precision[a]="estimate";return-1}return 0};A("CollectionDataGridDataSource.prototype.getCount",{getCount:Ls.prototype.getCount});
Ls.prototype.getCountPrecision=function(a){null!=this.precision&&null!=this.precision[a]||this.getCount(a);return this.precision[a]};A("CollectionDataGridDataSource.prototype.getCountPrecision",{getCountPrecision:Ls.prototype.getCountPrecision});Ls.prototype.fetchHeaders=function(a,b,c){var d,e;null!=b&&(d=a.axis,e={},e.d0=a,e.callbacks=b,e.Hx=c,this.Um[d]=e)};A("CollectionDataGridDataSource.prototype.fetchHeaders",{fetchHeaders:Ls.prototype.fetchHeaders});
function Ns(a){var b,c,d,e,f,h;for(b=0;b<a.length;b+=1)c=a[b],"row"===c.axis?(d=c.start,e=c.count):"column"===c.axis&&(f=c.start,h=c.count);return{rowStart:d,rowCount:e,colStart:f,colCount:h}}function Os(a,b,c,d,e,f,h){var k;for(k=[];b<c;b++)k.push(a.Ea.at(b,{deferred:!0}));Promise.all(k).then(function(a){d.X1(a);f.success.call(h.success,d,e)})}Ls.prototype.fetchCells=function(a,b,c){null!=b&&(this.Lf={},this.Lf.DL=a,this.Lf.callbacks=b,this.Lf.Hx=c);Ps(this,a)};
A("CollectionDataGridDataSource.prototype.fetchCells",{fetchCells:Ls.prototype.fetchCells});
function Qs(a,b){var c,d,e,f,h;c=a.Um[b];if(null!=c){d=c.d0;e=c.callbacks;f=c.Hx;"row"===b&&(h=c.qL);a:{var k,l,m;k=d.axis;c=d.start;l=d.count;if("column"===k)null!=a.columns&&(h=Math.min(a.columns.length,c+l),m=new Is(c,h,a.columns,void 0,a.nx));else if("row"===k&&null!=a.Py){null!=h&&(l=h.count);h=Math.min(a.ao(),c+l);m=new Is(c,h,a.columns,a.Py);Os(a,c,h,m,d,e,f);break a}null!=e&&e.success&&e.success.call(f.success,m,d,null)}a.Um[b]=null}}
function Ps(a,b){var c,d;c=Ns(b);d=c.rowStart;a.Ea.Qy(d,c.rowCount).then(function(a){this.data=!0;Rs(this,a.start,a.count);void 0===this.columns?this.Ea.at(d,{deferred:!0}).then(function(a){null!=a&&Ss(this,a);Ts(this,b)}.bind(this)):Ts(this,b)}.bind(a),function(a){w.l.error(a);null!=this.Um&&(Us(this,"column",a),Us(this,"row",a));if(null!=this.Lf){var b,c,d;b=this.Lf.callbacks;c=this.Lf.Hx;d=this.Lf.DL;b.error&&b.error.call(c.error,a,d);this.Lf=null}}.bind(a))}
function Us(a,b,c){var d,e,f;d=a.Um[b];null!=d&&(e=d.callbacks,f=d.Hx,d=d.d0,e.error&&e.error.call(f.error,c,d),a.Um[b]=null)}function Ts(a,b){if(a.Lf.DL==b&&(null!=a.Um&&(Qs(a,"column"),Qs(a,"row")),null!=a.Lf)){var c=a.Lf.DL,d=a.Lf.callbacks,e=a.Lf.Hx,f=a.Lf.qL,h,k,l;h=Ns(c);k=h.rowStart;f=null!=f?Math.min(a.ao(),k+f.count):Math.min(a.ao(),k+h.rowCount);l=h.colStart;h=Math.min(null==a.columns?0:a.columns.length,l+h.colCount);h=new Ks(k,f,l,h,a.columns);Os(a,k,f,h,c,d,e)}}
function Rs(a,b,c){b={start:b,count:c};null!=a.Um.row&&(a.Um.row.qL=b);null!=a.Lf&&(a.Lf.qL=b)}function Ss(a,b){a.columns=b.keys();-1!=a.columns.indexOf(a.Py)&&a.columns.splice(a.columns.indexOf(a.Py),1)}Ls.prototype.keys=function(a){var b,c,d,e,f;b=a.row;c=a.column;f=this;return new Promise(function(a){f.Ea.at(b,{deferred:!0}).then(function(b){null==b?a({row:null,column:null}):(d=Js(b),null==f.columns&&Ss(f,b),e=f.columns[c],a({row:d,column:e}))}.bind(f))})};
A("CollectionDataGridDataSource.prototype.keys",{keys:Ls.prototype.keys});Ls.prototype.indexes=function(a){var b,c,d,e;b=a.row;c=a.column;e=this;return new Promise(function(a){e.Ea.indexOf(b,{deferred:!0}).then(function(b){-1===b?a({row:-1,column:-1}):null==e.columns?e.Ea.at(b,{deferred:!0}).then(function(k){Ss(e,k);d=e.columns.indexOf(c);-1===d&&(b=-1);a({row:b,column:d})}.bind(e)):(d=e.columns.indexOf(c),-1===d&&(b=-1),a({row:b,column:d}))}.bind(e))})};
A("CollectionDataGridDataSource.prototype.indexes",{indexes:Ls.prototype.indexes});Ls.prototype.getCapability=function(a){return"sort"===a?"column":"move"===a?"row":null};A("CollectionDataGridDataSource.prototype.getCapability",{getCapability:Ls.prototype.getCapability});
Ls.prototype.sort=function(a,b,c){var d,e,f;null==c&&(c={});null==a?this.pK(b,c):(e=a.direction,f=a.key,a=a.axis,"column"===a?(wb(this.Ea)?(this.Ea.comparator=f,this.Ea.sortDirection="ascending"===e?1:-1):("ascending"===e&&(d=function(a,b){var c,d;a=a.get(f);b=b.get(f);c=isNaN(a);d=isNaN(b);a instanceof Date&&(a=a.toISOString(),c=!0);b instanceof Date&&(b=b.toISOString(),d=!0);return c&&d?a<b?-1:a===b?0:1:c?1:d?-1:a-b}),"descending"===e&&(d=function(a,b){var c,d;a=a.get(f);b=b.get(f);c=isNaN(a);d=
isNaN(b);a instanceof Date&&(a=a.toISOString());b instanceof Date&&(b=b.toISOString());return c&&d?a>b?-1:a===b?0:1:c?-1:d?1:b-a}),this.Ea.comparator=d),this.Ea.sort(),Ms(this,f),null!=b&&null!=b.success&&b.success.call(c.success)):null!=b&&null!=b.error&&b.error.call(c.error,"Axis value not supported"))};A("CollectionDataGridDataSource.prototype.sort",{sort:Ls.prototype.sort});Ls.prototype.pK=function(a,b){this.Ea.comparator=null;this.Ea.reset();null!=a&&null!=a.success&&a.success.call(b.success)};
function Ms(a,b){var c,d;c=a.Ea.comparator;d=-1===a.Ea.sortDirection?"descending":"ascending";null==b&&"function"===typeof c?a.nx={}:(a.nx={},a.nx.axis="column",a.nx.direction=d,a.nx.key=null==b?c:null)}
Ls.prototype.move=function(a,b,c,d,e){var f;this.Ea.get(a,{deferred:!0}).then(function(c){null==b?(this.Ea.remove(c),this.Ea.add(c),null!=d&&null!=d.success&&d.success.call(e.success)):(a===b?(f=this.Ea.indexOf(b,{deferred:!0}),this.Ea.remove(c)):(this.Ea.remove(c),f=this.Ea.indexOf(b,{deferred:!0})),f.then(function(a){this.Ea.add(c,{at:a,Bla:!0});null!=d&&null!=d.success&&d.success.call(e.success)}.bind(this)))}.bind(this))};A("CollectionDataGridDataSource.prototype.move",{move:Ls.prototype.move});
Ls.prototype.moveOK=function(){return"valid"};A("CollectionDataGridDataSource.prototype.moveOK",{moveOK:Ls.prototype.moveOK});g=Ls.prototype;g.tk=function(a,b,c,d,e){var f={source:this};f.operation=a;f.keys={row:b,column:c};f.indexes={row:d,column:e};return f};g.saa=function(a){this.handleEvent("change",this.tk("insert",Js(a),null,a.index,-1))};g.uaa=function(a,b,c){this.handleEvent("change",this.tk("delete",Js(a),null,c.index,-1))};
g.taa=function(a){this.handleEvent("change",this.tk("update",Js(a),null,a.index,-1))};g.x$=function(){this.data=null;this.handleEvent("change",this.tk("refresh",null,null))};g.y$=function(){this.data=null;this.handleEvent("change",this.tk("reset",null,null))};g.ao=function(){return this.Ea.size()};g.sd=function(){return void 0===this.Ea.totalResults?-1:this.Ea.totalResults};g.i_=function(){return this.Ea};A("CollectionDataGridDataSource.prototype.getCollection",{i_:Ls.prototype.i_});
Ls.prototype.so=function(){return this.columns};A("CollectionDataGridDataSource.prototype.getColumns",{so:Ls.prototype.so});Ls.prototype.Ux=function(){return this.Py};A("CollectionDataGridDataSource.prototype.getRowHeader",{Ux:Ls.prototype.Ux});Ls.prototype.getData=function(){return this.data};A("CollectionDataGridDataSource.prototype.getData",{getData:Ls.prototype.getData});w.F={};
w.F.ZO={coverStart:{Qm:"oj-animation-coverstart",vl:"oj-animation-coverstart",wl:!0},coverUp:{vl:"oj-animation-coverup",wl:!0},fade:{Qm:"oj-animation-fade",vl:"oj-animation-fade",wl:!1},pushStart:{Qm:"oj-animation-revealstart",vl:"oj-animation-coverstart",wl:!1},pushEnd:{Qm:"oj-animation-revealend",vl:"oj-animation-coverend",wl:!1},revealDown:{Qm:"oj-animation-revealdown",wl:!1},revealEnd:{Qm:"oj-animation-revealend",vl:"oj-animation-revealend",wl:!1},zoomIn:{vl:"oj-animation-zoomin",wl:!0},zoomOut:{Qm:"oj-animation-zoomout",
wl:!1}};w.F.HQ=function(a,b,c){var d=$(a);return new Promise(function(a){function f(){a(!0)}var h="oj-"+c,k=h+"-active";d.addClass(b);d.addClass(h);window.requestAnimationFrame(function(){d.addClass(k)});if((h=d.css("animationDuration")||d.css("webkitAnimationDuration"))&&"0s"!=h)d.on("animationend webkitAnimationEnd",f);else if((h=d.css("transitionDuration")||d.css("webkitTransitionDuration"))&&"0s"!=h)d.on("transitionend webkitTransitionEnd",f);else a(!0)})};
w.F.d6=function(a,b,c){var d=[];c=w.F.ZO[c];a&&c&&c.Qm&&d.push(w.F.HQ(a,c.Qm,"leave"));b&&c&&c.vl&&d.push(w.F.HQ(b,c.vl,"enter"));return Promise.all(d)};w.F.wQ=function(a,b){for(var c=ko.virtualElements.firstChild(a);c;)1==c.nodeType?b.push(c):8==c.nodeType&&this.wQ(c,b),c=ko.virtualElements.nextSibling(c)};w.F.B6=function(a,b){a._ojOldRoot=b};w.F.f$=function(a){return a._ojOldRoot};
w.F.rH=function(a){if(a.isInitial)return!1;if(1==a.node.nodeType)return!0;if(8==a.node.nodeType){var b=[];w.F.wQ(a.node,b);if(b&&1==b.length)return w.F.B6(a,b[0]),!0}return!1};w.F.IT=function(a){var b;1==a.node.nodeType?b=a.node:8==a.node.nodeType&&(b=w.F.f$(a));return b};
w.F.ks=function(a){var b=$(document.createElement("div")),c={position:"absolute",height:a.offsetHeight+"px",width:a.offsetWidth+"px",left:a.offsetLeft+"px",top:a.offsetTop+"px"};b.appendTo(a.offsetParent);b.css(c);b.addClass("oj-animation-host-viewport");a=document.createElement("div");a.className="oj-animation-host";b.append(a);return a};
w.F.gS=function(a,b){var c={},d=w.F.ZO[b],e=w.F.IT(a);d&&(d.vl&&!d.wl&&(c.newViewParent=w.F.ks(e)),d.Qm&&(c.oldViewParent=w.F.ks(e)),d.vl&&d.wl&&(c.newViewParent=w.F.ks(e)));return c};w.F.eS=function(a,b){return w.F.d6(a.oldViewParent,a.newViewParent,b).then(function(){w.F.BW(a)})};w.F.mX=function(a,b){var c=a[b];c&&(c=c.parentNode)&&c.parentNode&&c.parentNode.removeChild(c)};w.F.BW=function(a){a.removeOldView();a.insertNewView();w.F.mX(a,"newViewParent");w.F.mX(a,"oldViewParent")};
w.F.Zl=function(a){return{canAnimate:w.F.rH,prepareAnimation:function(b){return w.F.gS(b,a)},animate:function(b){return w.F.eS(b,a)}}};w.F.iI=function(a){null==w.F.MJ&&(w.F.MJ=w.Ob.Tc("oj-animation-navigate-methods"));return w.F.MJ?w.F.MJ[a]:null};w.F.Ica=function(a,b){return w.F.iI(b)&&w.F.rH(a)};w.F.Jca=function(a,b){var c=w.F.iI(b);return w.F.gS(a,c)};w.F.Hca=function(a,b){var c=w.F.iI(b);return w.F.eS(a,c)};
w.F.VA=function(a){return{canAnimate:function(b){return w.F.Ica(b,a)},prepareAnimation:function(b){return w.F.Jca(b,a)},animate:function(b){return w.F.Hca(b,a)}}};w.F.bha=w.F.Zl("coverStart");t("ModuleAnimations.coverStart",w.F.bha,w);w.F.tja=w.F.Zl("revealEnd");t("ModuleAnimations.revealEnd",w.F.tja,w);w.F.cha=w.F.Zl("coverUp");t("ModuleAnimations.coverUp",w.F.cha,w);w.F.sja=w.F.Zl("revealDown");t("ModuleAnimations.revealDown",w.F.sja,w);w.F.UN=w.F.Zl("zoomIn");
t("ModuleAnimations.zoomIn",w.F.UN,w);w.F.VN=w.F.Zl("zoomOut");t("ModuleAnimations.zoomOut",w.F.VN,w);w.F.sha=w.F.Zl("fade");t("ModuleAnimations.fade",w.F.sha,w);w.F.gja=w.F.Zl("pushStart");t("ModuleAnimations.pushStart",w.F.gja,w);w.F.fja=w.F.Zl("pushEnd");t("ModuleAnimations.pushEnd",w.F.fja,w);w.F.l1=w.F.VA("navChild");t("ModuleAnimations.navChild",w.F.l1,w);w.F.m1=w.F.VA("navParent");t("ModuleAnimations.navParent",w.F.m1,w);w.F.mha=w.F.l1;t("ModuleAnimations.drillIn",w.F.mha,w);w.F.nha=w.F.m1;
t("ModuleAnimations.drillOut",w.F.nha,w);w.F.Oia=w.F.VA("navSiblingEarlier");t("ModuleAnimations.navSiblingEarlier",w.F.Oia,w);w.F.Pia=w.F.VA("navSiblingLater");t("ModuleAnimations.navSiblingLater",w.F.Pia,w);w.F.Lja=function(a){return new function(){function b(a){return function(b){return c[a].call(c,b)}}var c,d=this;this.canAnimate=function(e){var f=a(e);c=null==f?null:w.ModuleAnimations[f];if(!c)return!1;for(var f=["prepareAnimation","animate"],h=0;h<f.length;h++){var k=f[h];d[k]=b(k)}return b("canAnimate")(e)}}};
t("ModuleAnimations.switcher",w.F.Lja,w);w.F.dha=function(a,b,c){return{canAnimate:w.F.rH,prepareAnimation:function(d){var e={};d=w.F.IT(d);b&&!c&&(e.newViewParent=w.F.ks(d));a&&(e.oldViewParent=w.F.ks(d));b&&c&&(e.newViewParent=w.F.ks(d));return e},animate:function(c){var e=c.oldViewParent,f=c.newViewParent,h=[];e&&a&&h.push(w.D.Ii(e,"close",a));f&&b&&h.push(w.D.Ii(f,"open",b));return Promise.all(h).then(function(){w.F.BW(c)})}}};t("ModuleAnimations.createAnimation",w.F.dha,w);
(function(){w.sa("oj.ojCheckboxset",$.oj.editableValue,{version:"1.0.0",defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{disabled:!1,value:void 0},refresh:function(){this._super();this.Aa()},widget:function(){return this.Tja},Vd:function(a,c){var d=[],e;this._super(a,c);w.Uc.fl([{U:"disabled",yc:!0},{U:"title"},{U:"placeholder"},{U:"required",We:!0,yc:!0}],c,this);this.oe=this.NH();void 0===c.value&&(e=this.oe.filter(":checked"),0<e.length&&(e.each(function(){d.push($(this).val())}),this.option("value",
d,{_context:{kc:!0,Ia:!0}})),void 0===this.options.value&&(this.options.value=[]))},_ComponentCreate:function(){this._super();if(this.element.is("fieldset"))throw Error("ojCheckboxset cannot be bound to a fieldset. Use a div instead.");this.oe._ojRadioCheckbox().attr("data-oj-internal",!0);this.Tja=this.element.addClass("oj-checkboxset oj-component").attr("role","group").wrapInner("\x3cdiv class\x3d'oj-checkboxset-wrapper'\x3e\x3c/div\x3e");this._on(this.Wl);this.Aa()},$F:function(){this.oe=this.NH();
this.oe.filter(".oj-checkbox").each(function(){var a=void 0!==$(this).attr("disabled")?!!$(this).prop("disabled"):!1;$(this)._ojRadioCheckbox("option","disabled",a)});this.oe.not(".oj-checkbox")._ojRadioCheckbox()},Focus:function(){this.Ud().first().focus();return!0},cG:function(){},NH:function(){var a=this.element.find("input[type\x3dcheckbox]:first");0===a.length&&w.l.warn("Could not find any input type\x3dcheckbox within this element");a=a.attr("name");return void 0===a?(a=this.element.find("input[type\x3dcheckbox]"),
a.not("[name]")):this.element.find("input[type\x3dcheckbox][name\x3d"+a+"]")},Se:function(a,c,d){a=this.element.find("input[type\x3dcheckbox]:tabbable").first();this.Te(c,d,{launcher:a})},_GetMessagingLauncherElement:function(){return this.widget()},Aa:function(){this.Zn(this.options.disabled);null!==this.oe&&(1===this.oe.length?this.element.addClass("oj-checkboxset-single"):this.element.removeClass("oj-checkboxset-single"))},Wl:{change:function(a){this.sz(a)}},sz:function(b){var c;c=this.oe;0<c.length&&
c.each(function(){this===b.target&&$(this)._ojRadioCheckbox("setSelectedClass",b.target.checked)});c=this.Tf();this.rb(c,b,a)},Tf:function(){return this.Pr()},Uh:function(a){var c=this.oe.length,d,e,f;for(e=0;e<c;e++){f=$(this.oe[e]);d=f[0].value;d=a.indexOf(d);var h=f._ojRadioCheckbox("option","checked");-1!==d?h||f._ojRadioCheckbox("option","checked",!0):h&&f._ojRadioCheckbox("option","checked",!1)}},Pr:function(){var a=[],c=this.oe.filter(":checked");if(0===c.length)return[];c.each(function(){a.push($(this).val())});
return a},_GetDefaultStyleClass:function(){return"oj-checkboxset"},Ud:function(){if(null!=this.oe)return this.oe;this.NH()},XF:function(){},bv:function(){return!0},Zn:function(a){a=!!a;this.oe.each(function(){$(this).data("oj-_ojRadioCheckbox").rv(a)});this.oe._ojRadioCheckbox("refreshDisabled")},_setOption:function(a,c,d){this._super(a,c,d);"disabled"===a&&this.Zn(c)},getNodeBySubId:function(a){var c=this._super(a);return c||(a=a.subId,"oj-checkboxset-inputs"!==a)?c||null:this.oe.get()},_destroy:function(){var a=
this._super(),c=this.element[0].firstChild;this.oe&&this.oe._ojRadioCheckbox("destroy");$(c).contents().unwrap();return a}});var a={Pq:!1}})();w.Components.xa("ojCheckboxset","editableValue",{properties:{disabled:{type:"boolean"},value:{type:"Array"}},methods:{destroy:{},refresh:{},widget:{}},extension:{_widgetName:"ojCheckboxset"}});w.Components.register("oj-checkboxset",w.Components.getMetadata("ojCheckboxset"));
w.sa("oj.ojSlider",$.oj.editableValue,{defaultElement:"\x3cinput\x3e",version:"1.0.1",widgetEventPrefix:"oj",options:{distance:0,max:100,min:0,orientation:"horizontal",readOnly:!1,disabled:!1,step:1,type:"fromMin",value:0,rawValue:void 0},oW:5,oY:null,be:function(){return"rtl"===w.q.Gj()},_ComponentCreate:function(){this._super();this.jV=!1;this.element.is("INPUT")?(this.jV=!0,this.element[0].style&&(this.Gfa=this.element[0].style.cssText),this.hV=this.element.css("display"),this.element.css("display",
"none"),this.aj=this.Kc?$(this.Kc):$(this.element).wrap("\x3cdiv\x3e \x3c/div\x3e").parent()):this.aj=this.element;this.yR()},yR:function(){this.jW=[];this.ag=null;var a="oj-slider ",a=this.oc()?a+"oj-slider-vertical":a+"oj-slider-horizontal",a=a+" oj-component oj-form-control";this.options.xE&&(a+=" oj-read-only");this.options.disabled&&(a+=" oj-disabled");this.aj.removeClass();this.aj.addClass(a);this.rf="range"===this.options.type?!0:!1;this.cR();this.L7();this.j7();this.A6();this.I7();this.O7();
this.Ax();this.Aj()},cf:function(){this._super();this.Ws();var a,b=this.P3();if(b){a=this.aj.find(".oj-slider-thumb");var c=b.attr("id");c||(c=b.attr("for"));a.attr("aria-labelledby",c);1<b.length&&1<a.length&&a[1].attr("aria-labelledby",String(c))}else if(b=this.element.attr("aria-label"))a=this.aj.find(".oj-slider-thumb"),a.attr("aria-label",b)},P3:function(){var a=this.d9();if(null!==a&&0!==a.length)return a;a=this.c9();return null!==a&&0!==a.length?a:null},c9:function(){var a=this.element.prop("id");
if(void 0!==a){var b=$("label[for\x3d'"+a+"']");if(0<b.length)return b;a="span[for\x3d'"+a+"']";if(0!==$(a).length)return $(a)}return null},d9:function(){var a=this.element.attr("aria-labelledby");if(void 0!==a){var b=$("label[id\x3d'"+a+"']");if(0<b.length)return b;a=$("span[id\x3d'"+a+"']");if(0<a.length)return a}return null},widget:function(){return this.aj},Uh:function(a){this.oY=a},Tf:function(){return this.oY},NA:function(){return this.element[0].id},tI:function(a){return this.NA()+"-thumb"+
a},$S:function(){return this.NA()+"-barValue"},e9:function(){return this.NA()+"-barBack"},V9:function(){return this.NA()+"-sliderWrapper"},O7:function(){var a,b,c="",d="class\x3d'oj-slider-thumb ui-state-default' tabindex\x3d'0' role\x3d'slider'"+("aria-valuemin \x3d '"+this.$c()+"' ")+("aria-valuemax \x3d '"+this.Ve()+"' ")+"\x3e\x3c/span\x3e",e=[];b=this.rf?2:1;for(a=0;a<b;a++)c="\x3cspan "+("id\x3d'"+this.tI(a)+"' ")+d,e.push(c);this.bg=$(e.join("")).appendTo(this.Ok);this.eo=this.bg.eq(0);var f=
this;a=0;this.bg.each(function(){$(this).data("oj-slider-thumb-index",a++);f.oc()&&$(this).attr("aria-orientation","vertical");f.options.disabled?($(this).attr("aria-disabled","true"),$(this).removeAttr("tabindex")):$(this).removeAttr("aria-disabled");f.options.readOnly?$(this).attr("title","read only"):$(this).removeAttr("title")})},L7:function(){var a=this.V9(),b=this.aj.find("#"+a);b.length&&b.remove();this.Ok=$("\x3cdiv\x3e\x3c/div\x3e");$(this.Ok).attr("id",a);this.Ok.addClass("oj-slider-container");
this.element.after(this.Ok);this.Ok[0].style.cssText=this.Gfa},j7:function(){var a=this.e9(),b=this.aj.find("#"+a);b.length&&b.remove();this.Yc=$("\x3cdiv\x3e\x3c/div\x3e");b="oj-slider-bar";b=this.oc()?b+" oj-slider-vertical":b+" oj-slider-horizontal";$(this.Yc).attr("id",a);this.Yc.addClass(b);this.Ok.append(this.Yc);var c=this;this.Yc.on("mousedown"+c.eventNamespace,function(a){c.rX(a);c.Hw(a);c.cw().focus()})},A6:function(){this.options.type&&(this.options.value?this.rf&&2!==this.options.value.length&&
(this.options.value=[0<this.options.value.length?this.options.value[0]:this.$c(),this.Ve()],this.option("value",this.options.value,{_context:{kc:!0,Ia:!0}})):(this.options.value=this.rf?[this.$c(),this.Ve()]:this.$c(),this.option("value",this.options.value,{_context:{kc:!0,Ia:!0}})))},I7:function(){var a=this.options,b="";if(a.type){this.xb=$("\x3cdiv\x3e\x3c/div\x3e");$(this.xb).attr("id",this.$S());this.Ok.append(this.xb);var b="oj-slider-range oj-slider-bar-value",c=this;this.xb.on("mousedown"+
c.eventNamespace,function(a){c.rX(a);c.Hw(a);c.cw().focus()});this.xb=this.Ok.find("#"+this.$S());var d="";"fromMin"===a.type?d=" oj-slider-range-min":"fromMax"===a.type&&(d=" oj-slider-range-max");this.xb.addClass(b+d)}else this.xb&&this.xb.remove(),this.xb=null},rfa:function(a){this.UK=as(a)},Qfa:function(a){bs(a)},Aj:function(){this.np()&&this._hoverable(this.aj);this.bg.toArray().forEach(function(a){a=$(a);this.xp(a);this._on(a,this.Sfa);this.rfa(a);this._focusable({element:a,applyHighlight:!0})},
this)},_GetMessagingLauncherElement:function(){return this.aj},Ud:function(){return this.cw()},oS:function(){this.bg.toArray().forEach(function(a){a=$(a);this.Qfa(a)},this);this.xb&&this.xb.remove();this.Ok&&this.Ok.remove()},kga:function(){w.q.unwrap(this.element,this.aj);this.element.css("display",this.hV);this.Vr(this.element)},_destroy:function(){this.oS();this.kga();return this._super()},rX:function(a){var b,c,d=this.options,e=0,f=this;this.wR=this.eo;if(d.disabled||d.readOnly)return!1;b=this.G9({x:a.pageX,
y:a.pageY});c=this.Ve()-this.$c()+1;this.rf&&this.bg.each(function(a){var k=Math.abs(b-f.Tp(a));if(c>k||c===k&&(a===f.Yba||f.Tp(a)===d.min))c=k,this.wR=$(this),e=a});this.ag=e;if(!this.wR)return!0;this.bg.hasClass("ui-state-hover")||this.Nk(a,e,b);this.cw().addClass("oj-active").focus();this.xb.addClass("oj-active");return!0},lba:function(a,b){var c=this.options;if(c.disabled||c.readOnly)return!1;b.removeClass("oj-focus-highlight");b.addClass("oj-active").focus();this.xb.addClass("oj-active");return!0},
Bca:function(a,b){var c=this.HT(b);this.Nk(a,this.ag,c,!0);c=100*this.rT(b);this.rf?this.YX(c,this.ag):this.WX(c);return!1},Hw:function(a,b){this.bg.removeClass("oj-active");this.xb.removeClass("oj-active");var c=this.HT(b);this.Nk(a,this.ag,c);this.oh(a,this.ag,!1);this.ag=null;return!1},oc:function(){return"vertical"===this.options.orientation},JT:function(a){1<a&&(a=1);0>a&&(a=0);this.oc()&&(a=1-a);return a},G9:function(a){var b=this.q9(a);a=this.Ve()-this.$c();this.be()&&!this.oc()&&(b=1-b);return this.Ah(this.$c()+
b*a)},q9:function(a){var b;this.oc()?(b=this.Yc.height(),a=a.y-this.Yc.offset().top):(b=this.Yc.width(),a=a.x-this.Yc.offset().left);return 0===b?1:b=this.JT(a/b)},cw:function(){return this.rf?$(this.bg[this.ag]):this.eo},rT:function(a){var b;(b=a)||(b=this.cw());this.oc()?(a=b.outerHeight()/2,a=b.offset().top+a,b=this.Yc.height(),a-=this.Yc.offset().top):(a=b.outerWidth()/2,a=b.offset().left+a,b=this.Yc.width(),a-=this.Yc.offset().left);return 0===b?1:b=this.JT(a/b)},HT:function(a){var b;a=this.rT(a);
b=this.Ve()-this.$c();this.be()&&!this.oc()&&(a=1-a);return this.Ah(this.$c()+a*b)},H9:function(a){return this.Tp(a?0:1)},C9:function(a,b,c){return 2===this.options.value.length&&(0===a&&b>c||1===a&&b<c)?c:b},Nk:function(a,b,c,d){var e;this.rf?(e=this.H9(b),c=this.C9(b,c,e),c!==this.Tp(b)&&this.afa(a,b,c,d)):c!==this.ST()&&(this.ffa(a,c,d),d||this.jV&&this.element.val(c))},ffa:function(a,b,c){this.JB=this.Ah(b);c||(this.rb(this.JB,a),this.Ax());this.Ol(this.JB,a)},oh:function(a,b,c){this.rf?(this.LV=
this.D9(b,this.jW[b]),this.Ol(this.LV,a),c||this.rb(this.LV,a)):(this.Ol(this.JB,a),c||this.rb(this.JB,a));this.Yba=b},D9:function(a,b){var c,d;c=this.options.value.slice();for(d=0;d<c.length;d+=1)c[d]=this.Ah(c[d]);a===this.ag&&(c[a]=b);return c},ST:function(){return this.fU()},Tp:function(a){return this.e$(a)},afa:function(a,b,c,d){this.jW[b]=this.Ah(c);this.oh(a,b,d);d||this.Ax()},_setOption:function(a,b,c){"value"===a&&(Array.isArray(b)?isNaN(b[0])?(this.rf=!1,this.Ik(a,b[0])):this.rf=!0:(this.rf=
!1,this.Ik(a,b)));b="max"===a||"min"===a?this.Ik(a,b):"step"===a?this.Ow(b):b;"disabled"!==a&&this._super(a,b,c);"readOnly"===a&&(this.options.xE=b);"disabled"===a&&(this.options.disabled=b);switch(a){case "value":this.Ax();this.Ws();break;case "min":case "max":this.cR();this.Ax();this.Ws();break;case "orientation":case "readonly":case "step":case "type":case "disabled":this.Cda()}},Cda:function(){this.oS();this.yR();this.cf()},fU:function(){var a=this.options.value;return a=this.Ah(a)},e$:function(a){return this.Ah(this.options.value[a])},
Ah:function(a){if(a<=this.$c())return this.$c();if(a>=this.Ve())return this.Ve();var b=0<this.options.step?this.options.step:1,c=(a-this.$c())%b;a-=c;2*Math.abs(c)>=b&&(a+=0<c?b:-b);return parseFloat(a.toFixed(5))},cR:function(){var a=this.$c();this.max=0!==(this.options.max-a)/this.options.step%1?this.options.max-(this.options.max-a)%this.options.step:this.options.max},$c:function(){return this.options.min},Ve:function(){return this.max},sT:function(){var a;a=0<this.options.step?(this.Ve()-this.$c())/
this.options.step:100;a=(this.oc()?this.Yc.height():this.Yc.width())/a;1>a&&(a=1);return this.oc()?[1,a]:[a,1]},uI:function(a){return(this.Tp(a)-this.$c())/(this.Ve()-this.$c())},Ax:function(){var a,b,c,d;this.rf?this.bg.toArray().forEach(function(b,c){var d=$(b);a=100*this.uI(c);this.be()&&!this.oc()&&(a=100-a);this.oc()?$(d).css({top:100-a+"%"}):$(d).css({left:a+"%"});$(d).attr("aria-valuenow",this.Tp(c));this.YX(a,c)},this):(b=this.fU(),c=this.$c(),d=this.Ve(),a=d!==c?(b-c)/(d-c)*100:0,this.be()&&
!this.oc()&&(a=100-a),this.oc()?this.eo.css({top:100-a+"%"}):this.eo.css({left:a+"%"}),$(this.eo).attr("aria-valuenow",b),this.WX(a))},WX:function(a){var b=this.options.type;this.oc()?("fromMin"===b&&this.xb.css({height:a+"%"}),"fromMax"===b&&this.xb.css({height:100-a+"%"})):this.be()?("fromMin"===b&&this.xb.css({width:100-a+"%"}),"fromMax"===b&&this.xb.css({width:a+"%"})):("fromMin"===b&&this.xb.css({width:a+"%"}),"fromMax"===b&&this.xb.css({width:100-a+"%"}))},YX:function(a,b){var c=this.xb.attr("id");
if(0===b)switch(c=100*this.uI(1),this.options.type){case "fromMin":this.oc()?this.xb.css({height:a+"%"}):this.xb.css({width:a+"%"});break;case "range":this.oc()?(this.xb.css({top:100-c+"%"}),this.xb.css({height:c-a+"%"})):this.be()?(this.xb.css({left:100-c+"%"}),this.xb.css({width:c-(100-a)+"%"})):(this.xb.css({left:a+"%"}),this.xb.css({width:c-a+"%"}))}else{var d=100*this.uI(0);switch(this.options.type){case "fromMax":this.oc()?this.xb.css({height:100-a+"%"}):this.xb.css({width:100-a+"%"});break;
case "range":this.oc()?document.getElementById(c)&&(this.xb.css({top:100-a+"%"}),this.xb.css({height:a-d+"%"})):this.be()?document.getElementById(c)&&(this.xb.css({left:a+"%"}),this.xb.css({width:-a+100-d+"%"})):document.getElementById(c)&&this.xb.css({width:a-parseInt(document.getElementById(c).style.left,10)+"%"})}}},Sfa:{keydown:function(a){var b,c,d,e=$(a.target).data("oj-slider-thumb-index");this.ag=e;switch(a.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:a.preventDefault(),
$(a.target).addClass("oj-active")}d=this.options.step;b=this.rf?c=this.Tp(e):c=this.ST();switch(a.keyCode){case $.ui.keyCode.HOME:c=this.$c();break;case $.ui.keyCode.END:c=this.Ve();break;case $.ui.keyCode.PAGE_UP:c=this.Ah(b+(this.Ve()-this.$c())/this.oW);break;case $.ui.keyCode.PAGE_DOWN:c=this.Ah(b-(this.Ve()-this.$c())/this.oW);break;case $.ui.keyCode.UP:if(b===this.Ve())return;c=this.Ah(b+d);break;case $.ui.keyCode.RIGHT:if(!this.be()||this.oc()){if(b===this.Ve())return;b+=d}else{if(b===this.$c())return;
b-=d}c=this.Ah(b);break;case $.ui.keyCode.DOWN:if(b===this.$c())return;c=this.Ah(b-d);break;case $.ui.keyCode.LEFT:if(!this.be()||this.oc()){if(b===this.$c())return;b-=d}else{if(b===this.Ve())return;b+=d}c=this.Ah(b)}this.Nk(a,e,c)},keyup:function(a){switch(a.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:var b=$(a.target).data("oj-slider-thumb-index");
this.ag=b;this.oh(a,b,!1);$(a.target).removeClass("oj-active");this.ag=null}}},Vd:function(a,b){var c=this.options,d=this;this._superApply(arguments);w.Uc.fl([{U:"disabled",yc:!0},{U:"value"},{U:"title"},{U:"min"},{U:"max"},{U:"step"}],b,this,function(a){for(var b=["value","step","min","max"],h=0;h<b.length;h++){var k=b[h],l=k in a?a[k]:c[k];null!=l&&("step"===k?a[k]=d.Ow(l):"min"===k||"max"===k?a[k]=d.Ik(k,l):"value"===k&&(Array.isArray(l)?a[k]=l:a[k]=d.Ik(k,l)))}});if(void 0===c.value)throw Error(this.r("noValue"));
if(null!=c.min&&null!=c.max){if(c.max<c.min)throw Error(this.r("maxMin"));if(c.value<c.min||c.value>c.max)throw Error(this.r("valueRange"));}},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;a=a.subId;return"oj-slider-thumb-0"===a?this.widget().find(".oj-slider-thumb")[0]:"oj-slider-thumb-1"===a?this.widget().find(".oj-slider-thumb")[1]:"oj-slider-bar"===a||"oj-slider-bar-value"===a?this.widget().find("."+a)[0]:null},getSubIdByNode:function(a){if(null!=a){if(a.id===
this.tI(0)&&$(a).hasClass("oj-slider-thumb"))return{subId:"oj-slider-thumb-0"};if(a.id===this.tI(1)&&$(a).hasClass("oj-slider-thumb"))return{subId:"oj-slider-thumb-1"};if($(a).hasClass("oj-slider-bar"))return{subId:"oj-slider-bar"};if($(a).hasClass("oj-slider-bar-value"))return{subId:"oj-slider-bar-value"}}return null},_GetDefaultStyleClass:function(){return"oj-slider"},Ik:function(a,b){var c;c=null!==b?+b:b;if(isNaN(c))throw Error(this.r("optionNum",{option:a}));return c},Ow:function(a){if(null===
a)return 1;a=this.Ik("step",a);if(0>=a)throw Error(this.r("invalidStep"));if(null===a||0>=a)a=1;return a},Oka:function(){return this.Yc.offset().left+this.Yc.width()},Xka:function(){return this.Yc.offset().left},dR:function(a){var b=this.sT(),c=a[0].style,d=this;a.draggable({axis:this.oc()?"y":"x",grid:b,disabled:!1,start:function(b){a[0]===$(d.bg)[0]?d.ag=0:a[0]===$(d.bg)[1]&&(d.ag=1);d.lba(b,a)},drag:function(b,f){var h=f.position;d.oc()?(c.left="",h.left=""):(c.top="",h.top="");d.Bca(b,a);d.oc()?
(0>h.top&&(h.top=0),h.top>d.Yc.height()&&(h.top=d.Yc.height())):(0>h.left&&(h.left=0),h.left>d.Yc.width()&&(h.left=d.Yc.width()));if(d.rf){var k;k=0===d.ag?$(d.bg[1]):$(d.bg[0]);if(d.oc()){var l=a.outerHeight()/2,m=d.Yc.offsetParent().offset().top;k=k.offset().top+l-m}else l=a.outerWidth()/2,m=d.Yc.offsetParent().offset().left,k=k.offset().left+l-m;0===d.ag?d.oc()?h.top<k&&(h.top=k):d.be()?h.left<k&&(h.left=k):h.left>k&&(h.left=k):d.oc()?h.top>k&&(h.top=k):d.be()?h.left>k&&(h.left=k):h.left<k&&(h.left=
k)}},stop:function(b){this.style.width="";this.style.height="";d.Hw(b,a)}})},Ws:function(){this.options.disabled||(this.rf?this.bg.toArray().forEach(function(a){a=$(a);this.dR(a)},this):this.dR(this.eo))},Ika:function(){this.rf?this.bg.toArray().forEach(function(a){a=$(a);a.is(".ui-draggable")&&a.draggable("disable")},this):this.eo.is(".ui-draggable")&&this.eo.draggable("disable")}});
w.Components.xa("ojSlider","editableValue",{properties:{disabled:{type:"boolean"},max:{type:"number"},min:{type:"number"},orientation:{type:"string"},rawValue:{type:"number|Array\x3cNumber\x3e",readOnly:!0,writeback:!0},step:{type:"number"},type:{type:"string"},value:{type:"number|Array\x3cNumber\x3e",writeback:!0}},methods:{},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojSlider"}});w.Components.register("oj-slider",w.Components.getMetadata("ojSlider"));w.Qi={};
w.Qi.sQ=function(a){var b=w.za.Vh();w.Nb.Fd(b,a,void 0,!0)};w.Qi.A5=function(){return w.Qi.VQ};w.Qi.C5=function(){w.Qi.VQ.push("/timezoneData")};w.Qi.VQ=[];w.Qi.C5();w.Qi.sQ(ojtd||{});w.Zu={};t("SwipeToRevealUtils",w.Zu,w);
w.Zu.Gja=function(a,b){var c,d,e,f,h,k,l,m,n,p,q;c=$(a);c.hasClass("oj-swipetoreveal")||(c.addClass("oj-swipetoreveal"),d=c.hasClass("oj-offcanvas-start")?"end":"start",e={},e.selector=c,w.f.Y1(e),f=w.f.Hn(c),null!=b&&(h=b.threshold),null!=h?(h=parseInt(h,10),/%$/.test(b.threshold)&&(h=h/100*f.outerWidth())):h=.55*f.outerWidth(),k=Math.min(.3*f.outerWidth(),c.outerWidth()),l=!1,f.on("click.swipetoreveal",function(a){l&&(a.stopImmediatePropagation(),l=!1)}),f.on("touchstart.swipetoreveal",function(){l=
!1}),c.on("ojpanstart",function(a,b){b.direction!=d?a.preventDefault():(c.children().addClass("oj-swipetoreveal-action"),p=c.children(".oj-swipetoreveal-default").get(0),n=(new Date).getTime())}).on("ojpanmove",function(a,b){l=!0;null!=p&&(b.distance>h?c.children().each(function(){this!=p&&$(this).addClass("oj-swipetoreveal-hide-when-full")}):c.children().removeClass("oj-swipetoreveal-hide-when-full"))}).on("ojpanend",function(a,b){q=b.distance;null!=p&&q>h&&(m=$.Event("ojdefaultaction"),c.trigger(m,
e),a.preventDefault());q<k&&(200<(new Date).getTime()-n||10>q)&&a.preventDefault()}))};t("SwipeToRevealUtils.setupSwipeActions",w.Zu.Gja,w);w.Zu.Pja=function(a){var b;b=$(a);a={};a.selector=b;b=w.f.Hn(b);null!=b&&b.off(".swipetoreveal");w.f.j2(a)};t("SwipeToRevealUtils.tearDownSwipeActions",w.Zu.Pja,w);
w.sa("oj.ojSwitch",$.oj.editableValue,{version:"1.1.0",defaultElement:"\x3cinput\x3e",widgetEventPrefix:"oj",options:{disabled:!1,readOnly:!1,required:!1,title:"",value:!1},refresh:function(){this._super();this.Aa()},widget:function(){return this.nk},getNodeBySubId:function(a){var b,c=this.widget();b=null==a||null==a.subId?c:null;return b||(a=a.subId,"oj-switch-thumb"!==a&&"oj-switch-track"!==a)?b||null:c.find("."+a)[0]},getSubIdByNode:function(a){var b=$(this.element).attr("id"),c,d=null;null!=a&&
($(a).hasClass("oj-switch-track")||$(a).hasClass("oj-switch-thumb"))&&(c=$(a).parents("div.oj-switch").find("input.oj-component-initnode").attr("id"),b===c&&$(a).hasClass("oj-switch-track")?d={subId:"oj-switch-track"}:b===c&&$(a).hasClass("oj-switch-thumb")&&(d={subId:"oj-switch-thumb"}));return d},ma:{p5:"SwitchOFF",q5:"SwitchON"},Vd:function(a,b){var c;this._super(a,b);w.Uc.fl([{U:"disabled",yc:!0},{U:"readonly",option:"readOnly",yc:!0},{U:"required",yc:!1,We:function(){return!1}},{U:"checked",
option:"value",yc:!1,We:function(a){return a?!0:!1}},{U:"title"}],b,this);c=this.option("value");this.option({required:!1,value:!!c},{_context:{kc:!0,Ia:!0}})},_ComponentCreate:function(){this._super();if(!this.element.is("input"))throw Error("ojSwitch can be bound to INPUT only.");this.hV=this.element.css("display");this.element.css("display","none").attr("type","checkbox").attr("checked",this.option("value")).attr("tabindex","-1").attr("disabled",this.option("disabled")).attr("readonly",this.option("readOnly"));
this.nk=this.Kc?$(this.Kc):this.element.wrap("\x3cdiv\x3e\x3c/div\x3e").parent();this.nk.addClass("oj-switch oj-component oj-form-control");this.nk.append("\x3cdiv class\x3d'oj-switch-container'\x3e\x3cdiv class\x3d'oj-switch-track'\x3e\x3cdiv class\x3d'oj-switch-thumb' tabIndex\x3d'0'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e");this.Ji=this.nk.find(".oj-switch-thumb");this.Ji.attr("role","switch checkbox");this.Kea(this.element,this.Ji);this.Aa()},Kea:function(a,b){var c=a.prop("id"),d=a.attr("aria-labelledby"),
e=a.attr("aria-label");e?b.attr("aria-label",e):d?b.attr("aria-labelledby",d):c&&(c=$("label[for\x3d'"+c+"']"))&&(c.attr("id")?b.attr("aria-labelledby",c.attr("id")):b.attr("aria-label",$(c).text()))},Aa:function(){var a=$(this.widget()),b=this.option("title");this.Aj();if(void 0!==a){this.element.attr("checked",this.option("value"));a.removeClass("oj-disabled oj-read-only oj-selected oj-hover oj-active");$(this.Ji).attr("tabindex","0");$(this.Ji).html("");if(this.option("disabled")||this.option("readOnly"))this.option("disabled")?
a.addClass("oj-disabled"):(a.addClass("oj-read-only"),$(this.Ji).html(this.cfa())),$(this.Ji).removeAttr("tabindex");this.option("value")&&a.addClass("oj-selected");void 0!==b&&$(this.Ji).attr("title",b);$(this.Ji).attr("aria-checked",this.option("value"));$(this.Ji).removeAttr("aria-disabled");a.removeAttr("aria-disabled");this.np()||$(this.Ji).attr("aria-disabled","true")}},cfa:function(){var a=this.ma.p5;this.option("value")&&(a=this.ma.q5);return this.r(a)},Aj:function(){this._off(this.nk,"keydown keyup mousedown mouseup mouseleave mouseenter touchstart");
this.np()&&(this._on(this.nk,this.Mfa),this.ld(this.nk));this._focusable({element:this.Ji,applyHighlight:!0})},Mfa:{keydown:function(a){if(a.which===$.ui.keyCode.ENTER||a.which===$.ui.keyCode.SPACE)$(a.currentTarget).addClass("oj-active"),a.preventDefault()},keyup:function(a){a.which!==$.ui.keyCode.ENTER&&a.which!==$.ui.keyCode.SPACE||this.rb(!this.option("value"),a)},mousedown:function(a){1===a.which&&$(a.currentTarget).addClass("oj-active")},mouseup:function(a){1===a.which&&this.rb(!this.option("value"),
a)},mouseleave:function(a){1===a.which&&$(a.currentTarget).removeClass("oj-active")},mouseenter:function(a){1===a.which&&$(a.currentTarget).addClass("oj-active")},touchstart:function(a){this.rb(!this.option("value"),a);a.preventDefault()}},_GetDefaultStyleClass:function(){return"oj-switch"},mla:function(){return"switch checkbox"},_destroy:function(){this.np()&&this.ZF(this.nk);this.nk.find(".oj-switch-track").remove();w.q.unwrap(this.element);this.Vr(this.element);return this._super()},_GetMessagingLauncherElement:function(){return this.nk},
Ud:function(){return this.Ji},_setOption:function(a,b,c){switch(a){case "disabled":case "readOnly":case "value":b=!!b;break;case "required":b=!1;break}this._super(a,b,c);this.Aa()}});w.Components.xa("ojSwitch","editableValue",{properties:{disabled:{type:"boolean"},readOnly:{type:"boolean"},title:{type:"string"},value:{type:"boolean",writeback:!0}},methods:{getNodeBySubId:{},getSubIdByNode:{},refresh:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojSwitch"}});
w.Components.register("oj-switch",w.Components.getMetadata("ojSwitch"));
w.sa("oj.ojInputNumber",$.oj.editableValue,{version:"1.0.0",defaultElement:"\x3cinput\x3e",widgetEventPrefix:"oj",options:{converter:w.ea.cg(w.Pf.CONVERTER_TYPE_NUMBER).createConverter(),max:null,min:null,placeholder:void 0,rawValue:void 0,readOnly:!1,step:1,value:null},getNodeBySubId:function(a){var b=this._superApply(arguments),c;b||(c=a.subId,"oj-inputnumber-up"===c&&(b=this.widget().find(".oj-inputnumber-up")[0]),"oj-inputnumber-down"===c&&(b=this.widget().find(".oj-inputnumber-down")[0]),"oj-inputnumber-input"===
c&&(b=this.widget().find(".oj-inputnumber-input")[0]));return b||null},getSubIdByNode:function(a){var b=null;null!=a&&(a===this.widget().find(".oj-inputnumber-up")[0]?b={subId:"oj-inputnumber-up"}:a===this.widget().find(".oj-inputnumber-down")[0]?b={subId:"oj-inputnumber-down"}:a===this.widget().find(".oj-inputnumber-input")[0]&&(b={subId:"oj-inputnumber-input"}));return b||this._superApply(arguments)},refresh:function(){this._super();this.Aa()},stepDown:function(a){this.qY(a,!1)},stepUp:function(a){this.qY(a,
!0)},widget:function(){return this.Ki},Vd:function(a,b){var c=this.options,d=this;this._superApply(arguments);w.Uc.fl([{U:"disabled",yc:!0},{U:"placeholder"},{U:"value"},{U:"readonly",option:"readOnly",yc:!0},{U:"required",We:!0,yc:!0},{U:"title"},{U:"min"},{U:"max"},{U:"step"}],b,this,function(a){for(var b=["value","step","min","max"],h=0;h<b.length;h++){var k=b[h],l=k in a?a[k]:c[k];null!=l&&(a[k]="step"===k?d.Ow(l):d.Ik(k,l))}});if(void 0===c.value)throw Error("ojInputNumber has no value");if(null!=
c.min&&null!=c.max&&c.max<c.min)throw Error("ojInputNumber's max must not be less than min");},_ComponentCreate:function(){this._super();this.Rv();this.iV={};this.Aa();this._on(this.Wl);this._focusable(this.Ki)},PO:function(a,b,c){this._superApply(arguments);switch(a){case "min":case "max":this.yg(a,this.options[a])}},_setOption:function(a,b,c){var d;d="value"===a||"max"===a||"min"===a?this.Ik(a,b):"step"===a?this.Ow(b):b;this._super(a,d,c);if("max"===a||"min"===a)this.UR(),this.Kr();"disabled"===
a&&this.element.prop("disabled",!!b);"readOnly"===a&&(this.element.prop("readonly",!!b),this.ZB("readOnly",this.options.readOnly),this.YW("readOnly",this.options.readOnly))},_destroy:function(){var a=this._super();this.RC.ojButtonset("destroy");this.RC.remove();this.RC=this.cD=this.KE=null;w.q.unwrap(this.element,this.Ki);clearTimeout(this.gd);return a},yg:function(a,b,c){this._superApply(arguments);var d="value"===a||"max"===a||"min"===a,e=d||"disabled"===a,f;e&&(f=this.MA());d&&this.XB(f);"converter"===
a&&this.TW(f);e&&this.DC(f)},mb:function(){return this.options.converter?this._superApply(arguments):$.oj.ojInputNumber.prototype.options.converter},hv:function(){var a=this._superApply(arguments);null==this.options.min&&null==this.options.max||this.UR();return $.extend(this.iV,a)},_GetDefaultStyleClass:function(){return"oj-inputnumber"},Wl:{input:function(a){this.Ol(this.element.val(),a)},keydown:function(a){a.keyCode===$.ui.keyCode.ENTER?(this.SQ(a),a.preventDefault()):this.Og()&&this.kq(a)&&a.preventDefault()},
keyup:function(a){this.Eq(a)},blur:function(a){this.SQ(a)},"touchstart .oj-inputnumber-button":function(a){this.Og();this.jt(null,$(a.currentTarget).hasClass("oj-inputnumber-up")?1:-1,a)},"touchend .oj-inputnumber-button":function(a){this.Eq(a)},"touchcancel .oj-inputnumber-button":function(a){this.Eq(a)},"mousedown .oj-inputnumber-button":function(a){this.hq(a)&&(this.Og(),this.jt(null,$(a.currentTarget).hasClass("oj-inputnumber-up")?1:-1,a))},"mouseup .oj-inputnumber-button":function(a){this.hq(a)&&
this.Eq(a)},"mouseenter .oj-inputnumber-button":function(a){$(a.currentTarget).hasClass("oj-active")&&this.hq(a)&&(this.Og(),this.jt(null,$(a.currentTarget).hasClass("oj-inputnumber-up")?1:-1,a))},"mouseleave .oj-inputnumber-button":function(a){this.hq(a)&&this.Eq(a)}},ma:{t5:"tooltipDecrement",u5:"tooltipIncrement"},ln:{readOnly:"oj-read-only"},Aa:function(){var a=this.r(this.ma.u5),b=this.r(this.ma.t5),c=this.MA();this.KE.ojButton({label:a});this.cD.ojButton({label:b});this.XB(c);this.DC(c);"boolean"===
typeof this.options.readOnly&&this.element.prop("readonly",this.options.readOnly);this.ZB("readOnly",this.options.readOnly);this.YW("readOnly",this.options.readOnly)},mca:function(){this.KE.attr("data-oj-internal",!0);this.cD.attr("data-oj-internal",!0);this.RC.attr("data-oj-internal",!0)},v7:function(){var a=this.Ki.find(".oj-inputnumber-up"),b=this.Ki.find(".oj-inputnumber-down"),c=a[0].parentNode;this.KE=a.ojButton({display:"icons",icons:{start:"oj-component-icon oj-inputnumber-up-icon"}});this.cD=
b.ojButton({display:"icons",icons:{start:"oj-component-icon oj-inputnumber-down-icon"}});this.RC=$(c).ojButtonset({focusManagement:"none"});this.mca()},Rv:function(){var a=this.element;this.Ki=a.addClass("oj-inputnumber-input").wrap("\x3cspan class\x3d'oj-inputnumber-wrapper'\x3e\x3c/span\x3e").parent().append("\x3cdiv class\x3d'oj-buttonset-width-auto'\x3e\x3cbutton type\x3d'button' class\x3d'oj-inputnumber-button oj-inputnumber-down'\x3e\x3c/button\x3e\x3cbutton type\x3d'button' class\x3d'oj-inputnumber-button oj-inputnumber-up'\x3e\x3c/button\x3e\x3c/div\x3e");
this.Kc?(this.Ki=$(this.Kc).append(this.Ki),this.Ki.addClass("oj-inputnumber oj-component")):this.Ki=this.Ki.wrap("\x3cdiv class\x3d'oj-inputnumber oj-component'\x3e\x3c/div\x3e").parent();this.saveType=a.prop("type");a.attr("type","text");this.Ki.find(".oj-inputnumber-button").attr("tabIndex","-1");this.v7()},kq:function(a){var b=$.ui.keyCode;switch(a.keyCode){case b.UP:return this.jt(null,1,a),!0;case b.DOWN:return this.jt(null,-1,a),!0}return!1},ola:function(){return"\x3cspan class\x3d'oj-inputnumber-wrapper'\x3e\x3c/span\x3e"},
Hka:function(){return"\x3cdiv class\x3d'oj-buttonset-width-auto'\x3e\x3cbutton type\x3d'button' class\x3d'oj-inputnumber-button oj-inputnumber-down'\x3e\x3c/button\x3e\x3cbutton type\x3d'button' class\x3d'oj-inputnumber-button oj-inputnumber-up'\x3e\x3c/button\x3e\x3c/div\x3e"},Og:function(){return this.e2=!0},jt:function(a,b,c){a=a||500;clearTimeout(this.gd);this.gd=this._delay(function(){this.jt(40,b,c)},a);this.JK(b*this.options.step,c)},JK:function(a,b){var c=this.MA(),d=this.options,e=d.min,
f=d.max,d=d.step,h=this.mda(e,d),c=this.FQ(c,a,e,f,d,h);this.np()&&(this.element.val(c),this.XB(c),this.DC(c),this.Ol(c,b));this.rb(c,b,this.pv.l3)},mda:function(a,b){var c=this.DW(b);null!=a&&(c=Math.max(c,this.DW(a)));return c},DW:function(a){a=a.toString();var b=a.indexOf(".");return-1===b?0:a.length-b-1},FQ:function(a,b,c,d,e,f){var h,k;if(0<f)return this.W5(a,b,c,d,e,f);h=null!=c?c:0;try{a=parseFloat(a.toFixed(f))}catch(l){l instanceof TypeError&&(w.l.warn("inputNumber's value after conversion is not a number. \n\r\n                      The converter must convert the value to a Number. coercing using +"),
a=+a)}k=a-h;var m=Math.round(k/e)*e,m=parseFloat(m.toFixed(f));m!==k?(k=0>b?Math.ceil(k/e)*e:Math.floor(k/e)*e,a=h+k+b):a+=b;a=parseFloat(a.toFixed(f));return null!=c&&a<c?c:null!=d&&a>d?(c=Math.floor((d-h)/e)*e+h,c=parseFloat(c.toFixed(f))):a},W5:function(a,b,c,d,e,f){w.i.assert(0<f);f=Math.pow(10,f);return this.FQ(a*f,b*f,null!=c?c*f:c,null!=d?d*f:d,null!=e?e*f:e,0)/f},Eq:function(){this.e2&&(clearTimeout(this.gd),this.e2=!1)},hq:function(){return!w.q.M1()},DC:function(a){var b=this.options,c=b.max,
d=b.min,e=this.cD,f=this.KE,h,k;this.Ki&&(e||f)&&(h=e.ojButton("option","disabled"),k=f.ojButton("option","disabled"),b.disabled||void 0===a?(h||e.ojButton("disable"),k||f.ojButton("disable")):null!=c&&a>=c?(h&&e.ojButton("enable"),k||f.ojButton("disable")):(null!=d&&a<=d?h||e.ojButton("disable"):h&&e.ojButton("enable"),k&&f.ojButton("enable")))},MA:function(){var a,b;try{b=this.Tf()||0,a=this.OB(b)}catch(c){a=void 0}return a},SQ:function(a){var b=this.element.val(),c;this.Eq();c=this.MA();this.XB(c);
this.DC(c);this.rb(b,a)},UR:function(){var a=this.options,b=a.min,c=a.max,d=(a=a.translations)?a.numberRange||{}:{},e,f,h,k,l,m,n,a=d.hint||{},p=d.messageDetail||{},d=d.messageSummary||{};null!==a&&(e=a.min||null,f=a.max||null,h=a.inRange||null);null!==p&&(k=p.rangeOverflow||null,l=p.rangeUnderflow||null);null!==d&&(m=d.rangeOverflow||null,n=d.rangeUnderflow||null);b={min:null!=b?b:void 0,max:null!=c?c:void 0,hint:{min:e||null,max:f||null,inRange:h||null},messageDetail:{rangeOverflow:k||null,rangeUnderflow:l||
null},messageSummary:{rangeOverflow:m||null,rangeUnderflow:n||null},converter:this.mb()};this.iV[w.kd.VALIDATOR_TYPE_NUMBERRANGE]=w.ea.xr(w.kd.VALIDATOR_TYPE_NUMBERRANGE).createValidator(b)},Ik:function(a,b){var c;c=null!==b?+b:b;if(isNaN(c))throw Error("ojInputNumber's "+a+" option is not a number");return c},Ow:function(a){if(null===a)return 1;a=this.Ik("step",a);if(0>=a)throw Error("Invalid step for ojInputNumber; step must be \x3e 0");if(null===a||0>=a)a=1;return a},ZB:function(a,b){-1!=Object.keys(this.ln).indexOf(a)&&
this.widget().toggleClass(this.ln[a],!!b)},YW:function(a,b){b?this.element.removeAttr("role"):this.element.attr("role","spinbutton")},XB:function(a){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":a});this.TW(a)},TW:function(a){var b=this.element,c=b.val();this.ev("value",""+a,c)||b.attr({"aria-valuetext":c})},qY:function(a,b){this.Og();b?this.JK((a||1)*this.options.step):this.JK((a||1)*-this.options.step);this.Eq()}});
w.Components.xa("ojInputNumber","editableValue",{properties:{converter:{type:"Object"},max:{type:"number"},min:{type:"number"},placeholder:{type:"string"},rawValue:{type:"string",writeback:!0,readOnly:!0},readOnly:{type:"boolean"},step:{type:"number"},value:{type:"number",writeback:!0}},methods:{destroy:{},refresh:{},stepDown:{},stepUp:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"input",_widgetName:"ojInputNumber"}});w.Components.register("oj-input-number",w.Components.getMetadata("ojInputNumber"));
w.sa("oj.ojPictoChart",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{optionChange:null,drill:null},ue:function(a,b,c){return dvt.PictoChart.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-pictochart-item"==b?b="item["+a.index+"]":"oj-pictochart-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};0==a.indexOf("item")?(b.subId="oj-pictochart-item",b.index=this.mh(a)):"tooltip"==a&&(b.subId="oj-pictochart-tooltip");return b},Md:function(){var a=this._super();a.push("oj-pictochart");
return a},ug:function(){var a=this._super();a["oj-pictochart-item"]={path:"_defaultColor",property:"background-color"};return a},vg:function(){return["optionChange"]},Th:function(a){"drill"===a.type?this._trigger("drill",null,{id:a.id}):this._super(a)},getItem:function(a){return this.ca.getAutomation().getItem(a)},getItemCount:function(){return this.ca.getAutomation().getItemCount()},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-pictochart-tooltip"!==a.subId?a:null},lh:function(){return{root:["items"]}},
vz:function(){return!0}});
w.Components.xa("ojPictoChart","dvtBaseComponent",{properties:{animationDuration:{type:"number|string"},animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},columnCount:{type:"number"},columnWidth:{type:"number"},drilling:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},hoverBehavior:{type:"string"},hoverBehaviorDelay:{type:"number|string"},items:{type:"Array\x3cobject\x3e"},layout:{type:"string"},
layoutOrigin:{type:"string"},rowCount:{type:"number"},rowHeight:{type:"number"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},tooltip:{type:"object"}},methods:{getContextByNode:{},getItem:{},getItemCount:{}},extension:{_widgetName:"ojPictoChart"}});w.Components.register("oj-picto-chart",w.Components.getMetadata("ojPictoChart"));
w.sa("oj.ojSparkChart",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{},ue:function(a,b,c){this._focusable({element:this.element,applyHighlight:!0});return dvt.SparkChart.newInstance(a,b,c)},Md:function(){var a=this._super();a.push("oj-sparkchart");return a},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.CHART"]=a.componentName;return b},ff:function(){this.element.attr("title")?(this.options.shortDesc=this.element.attr("title"),this.element.data(this.element,
"title",this.element.attr("title")),this.element.removeAttr("title")):this.element.data("title")&&(this.options.shortDesc=this.element.data("title"));this._super()},getDataItem:function(a){var b=this.ca.getAutomation();return new Vs(b.getDataItem(a))},lh:function(){return{root:["items"]}}});function Vs(a){this.b=a}t("SparkChartDataItem",Vs,w);Vs.prototype.d_=function(){return this.b?this.b.borderColor:null};A("SparkChartDataItem.prototype.getBorderColor",{d_:Vs.prototype.d_});
Vs.prototype.j_=function(){return this.b?this.b.color:null};A("SparkChartDataItem.prototype.getColor",{j_:Vs.prototype.j_});Vs.prototype.getDate=function(){return this.b?this.b.date:null};A("SparkChartDataItem.prototype.getDate",{getDate:Vs.prototype.getDate});Vs.prototype.getFloatValue=function(){return this.mM()};A("SparkChartDataItem.prototype.getFloatValue",{getFloatValue:Vs.prototype.getFloatValue});Vs.prototype.mM=function(){return this.b?this.b.low:null};
A("SparkChartDataItem.prototype.getLow",{mM:Vs.prototype.mM});Vs.prototype.u_=function(){return this.b?this.b.high:null};A("SparkChartDataItem.prototype.getHigh",{u_:Vs.prototype.u_});Vs.prototype.Gc=function(){return this.b?this.b.value:null};A("SparkChartDataItem.prototype.getValue",{Gc:Vs.prototype.Gc});
w.sa("oj.ojChart",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{categoryFilter:null,categoryHighlight:null,optionChange:null,selectInput:null,viewportChange:null,viewportChangeInput:null,drill:null},ue:function(a,b,c){return dvt.Chart.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-chart-item"==b?b="dataItem["+a.seriesIndex+"]["+a.itemIndex+"]":"oj-chart-group"==b?b="group"+this.pp(a.indexPath):"oj-chart-series"==b?b="series["+a.index+"]":"oj-chart-axis-title"==b?b=a.axis+":title":"oj-chart-reference-object"==
b?b=a.axis+":referenceObject["+a.index+"]":"oj-legend-section"==b?b="legend:section"+this.pp(a.indexPath):"oj-legend-item"==b?(b="legend:section"+this.pp(a.sectionIndexPath),b+=":item["+a.itemIndex+"]"):"oj-chart-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};if(0==a.indexOf("dataItem")){var c=this.Si(a);b.subId="oj-chart-item";b.seriesIndex=c[0];b.itemIndex=c[1]}else if(0==a.indexOf("group"))b.subId="oj-chart-group",b.indexPath=this.Si(a);else if(0==a.indexOf("series"))b.subId="oj-chart-series",
b.index=this.mh(a);else if(0<a.indexOf("Axis:title"))b.subId="oj-chart-axis-title",b.axis=a.substring(0,a.indexOf(":"));else if(0<a.indexOf("Axis:referenceObject"))b.subId="oj-chart-reference-object",b.axis=a.substring(0,a.indexOf(":")),b.index=this.mh(a);else if(0==a.indexOf("legend"))if(0<a.indexOf(":item")){var d=a.indexOf(":item"),c=a.substring(0,d);a=a.substring(d);b.subId="oj-legend-item";b.sectionIndexPath=this.Si(c);b.itemIndex=this.mh(a)}else 0==a.indexOf("section")&&(b.subId="oj-legend-section",
b.indexPath=this.Si(a));else"tooltip"==a&&(b.subId="oj-chart-tooltip");return b},Hz:function(){this._super();this.options.styleDefaults||(this.options.styleDefaults={});if(!this.options.styleDefaults.colors){var a=new qq;this.options.styleDefaults.colors=a.Hj()}},Md:function(){var a=this._super();a.push("oj-chart");return a},ug:function(){var a=this._super();a["oj-chart-data-label"]={path:"styleDefaults/dataLabelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-stack-label"]={path:"styleDefaults/stackLabelStyle",
property:"CSS_TEXT_PROPERTIES"};a["oj-chart-footnote"]={path:"footnote/style",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-pie-center-label"]={path:"pieCenter/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-slice-label"]={path:"styleDefaults/sliceLabelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-subtitle"]={path:"subtitle/style",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-stock-falling"]={path:"styleDefaults/stockFallingColor",property:"background-color"};a["oj-chart-stock-range"]={path:"styleDefaults/stockRangeColor",
property:"background-color"};a["oj-chart-stock-rising"]={path:"styleDefaults/stockRisingColor",property:"background-color"};a["oj-chart-tooltip-label"]={path:"styleDefaults/tooltipLabelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-title"]={path:"title/style",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-xaxis-tick-label"]={path:"xAxis/tickLabel/style",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-xaxis-title"]={path:"xAxis/titleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-yaxis-tick-label"]=
{path:"yAxis/tickLabel/style",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-yaxis-title"]={path:"yAxis/titleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-y2axis-tick-label"]={path:"y2Axis/tickLabel/style",property:"CSS_TEXT_PROPERTIES"};a["oj-chart-y2axis-title"]={path:"y2Axis/titleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-legend"]={path:"legend/textStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-legend-title"]={path:"legend/titleStyle",property:"CSS_TEXT_PROPERTIES"};return a},vg:function(){return"categoryFilter categoryHighlight drill optionChange selectInput viewportChange viewportChangeInput".split(" ")},
Uf:function(){var a=this.options.translations,b=this._super();b["DvtChartBundle.DEFAULT_GROUP_NAME"]=a.labelDefaultGroupName;b["DvtChartBundle.LABEL_SERIES"]=a.labelSeries;b["DvtChartBundle.LABEL_GROUP"]=a.labelGroup;b["DvtChartBundle.LABEL_VALUE"]=a.labelValue;b["DvtChartBundle.LABEL_TARGET_VALUE"]=a.labelTargetValue;b["DvtChartBundle.LABEL_X"]=a.labelX;b["DvtChartBundle.LABEL_Y"]=a.labelY;b["DvtChartBundle.LABEL_Z"]=a.labelZ;b["DvtChartBundle.LABEL_PERCENTAGE"]=a.labelPercentage;b["DvtChartBundle.LABEL_LOW"]=
a.labelLow;b["DvtChartBundle.LABEL_HIGH"]=a.labelHigh;b["DvtChartBundle.LABEL_OPEN"]=a.labelOpen;b["DvtChartBundle.LABEL_CLOSE"]=a.labelClose;b["DvtChartBundle.LABEL_VOLUME"]=a.labelVolume;b["DvtChartBundle.LABEL_Q1"]=a.labelQ1;b["DvtChartBundle.LABEL_Q2"]=a.labelQ2;b["DvtChartBundle.LABEL_Q3"]=a.labelQ3;b["DvtChartBundle.LABEL_MIN"]=a.labelMin;b["DvtChartBundle.LABEL_MAX"]=a.labelMax;b["DvtChartBundle.LABEL_OTHER"]=a.labelOther;b["DvtChartBundle.PAN"]=a.tooltipPan;b["DvtChartBundle.MARQUEE_SELECT"]=
a.tooltipSelect;b["DvtChartBundle.MARQUEE_ZOOM"]=a.tooltipZoom;b["DvtUtilBundle.CHART"]=a.componentName;return b},Th:function(a){var b=a.type;if("selection"===b){var c=a.selection;if(c){for(var b=[],d=[],e=0;e<c.length;e++){var f={data:c[e].data,seriesData:c[e].seriesData,groupData:c[e].groupData};b.push({id:c[e].id,series:c[e].series,group:c[e].group});d.push(f)}c={endGroup:a.endGroup,startGroup:a.startGroup,xMax:a.xMax,xMin:a.xMin,yMax:a.yMax,yMin:a.yMin,y2Max:a.y2Max,y2Min:a.y2Min,component:a.component,
selectionData:d};a.complete?this.Ec("selection",b,c):(c.items=b,this._trigger("selectInput",null,c))}}else"categoryHide"===b||"categoryShow"===b?(this._trigger("categoryFilter",null,{category:a.category,type:"categoryHide"===b?"out":"in"}),this.Ec("hiddenCategories",a.hiddenCategories)):"categoryHighlight"===b?(this._trigger("categoryHighlight",null,{categories:a.categories,type:a.categories&&0<a.categories.length?"on":"off"}),this.Ec("highlightedCategories",a.categories)):"viewportChange"===b?(b=
{endGroup:a.endGroup,startGroup:a.startGroup,xMax:a.xMax,xMin:a.xMin,yMax:a.yMax,yMin:a.yMin},a.complete&&(this.options.xAxis||(this.options.xAxis={}),this.options.yAxis||(this.options.yAxis={}),this.options.xAxis.viewportStartGroup=null,this.options.xAxis.viewportEndGroup=null,null!=a.xMin&&null!=a.xMax&&(this.options.xAxis.viewportMin=a.xMin,this.options.xAxis.viewportMax=a.xMax),null!=a.yMin&&null!=a.yMax&&(this.options.yAxis.viewportMin=a.yMin,this.options.yAxis.viewportMax=a.yMax)),this._trigger(a.complete?
"viewportChange":"viewportChangeInput",null,b)):"drill"===b?this._trigger("drill",null,{id:a.id,series:a.series,group:a.group,data:a.data,seriesData:a.seriesData,groupData:a.groupData,component:a.component}):this._super(a)},Vi:function(){null==this.options._resources&&(this.options._resources={});var a=this.options._resources;a.overviewGrippy=w.T.Fa("resources/internal-deps/dvt/chart/drag_horizontal.png");a.panCursorDown=w.T.Fa("resources/internal-deps/dvt/chart/hand-closed.cur");a.panCursorUp=w.T.Fa("resources/internal-deps/dvt/chart/hand-open.cur");
a.panUp="oj-chart-pan-icon";a.panUpHover="oj-chart-pan-icon oj-hover";a.panDown="oj-chart-pan-icon oj-active";a.panDownHover="oj-chart-pan-icon oj-hover oj-active";a.selectUp="oj-chart-select-icon";a.selectUpHover="oj-chart-select-icon oj-hover";a.selectDown="oj-chart-select-icon oj-active";a.selectDownHover="oj-chart-select-icon oj-hover oj-active";a.zoomUp="oj-chart-zoom-icon";a.zoomUpHover="oj-chart-zoom-icon oj-hover";a.zoomDown="oj-chart-zoom-icon oj-active";a.zoomDownHover="oj-chart-zoom-icon oj-hover oj-active"},
getTitle:function(){return this.ca.getAutomation().getTitle()},getGroup:function(a){return this.ca.getAutomation().getGroup(a)},getSeries:function(a){return this.ca.getAutomation().getSeries(a)},getGroupCount:function(){return this.ca.getAutomation().getGroupCount()},getSeriesCount:function(){return this.ca.getAutomation().getSeriesCount()},getDataItem:function(a,b){var c=this.ca.getAutomation().getDataItem(a,b);this.Sf(c);return c},getLegend:function(){var a=this.ca.getAutomation().getLegend();this.Sf(a);
return a},getPlotArea:function(){var a=this.ca.getAutomation().getPlotArea();this.Sf(a);return a},getXAxis:function(){var a=this.ca.getAutomation().getXAxis();this.Sf(a);return a},getYAxis:function(){var a=this.ca.getAutomation().getYAxis();this.Sf(a);return a},getY2Axis:function(){var a=this.ca.getAutomation().getY2Axis();this.Sf(a);return a},getValuesAt:function(a,b){return this.ca.getValuesAt(a,b)},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-chart-tooltip"!==a.subId?a:null},
lh:function(){return{root:["groups","series"]}}});
w.Components.xa("ojChart","dvtBaseComponent",{properties:{animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},coordinateSystem:{type:"string"},dataCursor:{type:"string"},dataCursorBehavior:{type:"string"},dataCursorPosition:{type:"object"},dataLabel:{},dnd:{type:"object"},dragMode:{type:"string"},drilling:{type:"string"},footnote:{type:"object"},groups:{type:"Array\x3cobject\x3e|Array\x3cstring\x3e"},hiddenCategories:{type:"Array\x3cstring\x3e"},hideAndShowBehavior:{type:"string"},
highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},hoverBehavior:{type:"string"},initialZooming:{type:"string"},legend:{type:"object"},orientation:{type:"string"},otherThreshold:{type:"number"},overview:{type:"object"},pieCenter:{type:"object"},pieCenterLabel:{type:"object"},plotArea:{type:"object"},polarGridShape:{type:"string"},selection:{type:"Array\x3cstring\x3e|Array\x3cobject\x3e"},selectionMode:{type:"string"},series:{type:"Array\x3cobject\x3e"},sorting:{type:"string"},
splitDualY:{type:"string"},splitterPosition:{type:"number"},stack:{type:"string"},stackLabel:{type:"string"},styleDefaults:{type:"object"},subtitle:{type:"object"},timeAxisType:{type:"string"},title:{type:"object"},tooltip:{type:"object"},touchResponse:{type:"string"},type:{type:"string"},valueFormats:{type:"Array\x3cobject\x3e"},xAxis:{type:"object"},y2Axis:{type:"object"},yAxis:{type:"object"},zoomAndScroll:{type:"string"},zoomDirection:{type:"string"}},methods:{getContextByNode:{},getDataItem:{},
getGroup:{},getGroupCount:{},getLegend:{},getPlotArea:{},getSeries:{},getSeriesCount:{},getTitle:{},getValuesAt:{},getXAxis:{},getY2Axis:{},getYAxis:{}},extension:{_widgetName:"ojChart"}});w.Components.register("oj-chart",w.Components.getMetadata("ojChart"));
w.Components.xa("ojSparkChart","dvtBaseComponent",{properties:{animationDuration:{type:"number"},animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},areaClassName:{type:"string"},areaColor:{type:"string"},areaStyle:{type:"object"},barGapRatio:{type:"number"},baselineScaling:{type:"string"},className:{type:"string"},color:{type:"string"},firstColor:{type:"string"},highColor:{type:"string"},items:{type:"Array\x3cobject\x3e|Array\x3cnumber\x3e"},lastColor:{type:"string"},lineStyle:{type:"string"},
lineType:{type:"string"},lineWidth:{type:"number"},lowColor:{type:"string"},markerShape:{type:"string"},markerSize:{type:"number"},referenceObjects:{type:"Array\x3cobject\x3e"},style:{type:"object"},tooltip:{type:"object"},type:{type:"string"},visualEffects:{type:"string"}},methods:{getDataItem:{}},extension:{_widgetName:"ojSparkChart"}});w.Components.register("oj-spark-chart",w.Components.getMetadata("ojSparkChart"));
w.sa("oj._ojRadioCheckbox",$.oj.baseComponent,{version:"1.0.0",defaultElement:"\x3cinput\x3e",widgetEventPrefix:"oj",options:{disabled:null,checked:null,type:null},label:function(){void 0===this.lb&&(this.lb=this.gI());return this.lb},refresh:function(){this._super();this.Aa()},refreshDisabled:function(){this.nK()},setSelectedClass:function(a){this.element.toggleClass("oj-selected",a);this.lb.toggleClass("oj-selected",a);this.Nf&&this.Nf.toggleClass("oj-selected",a)},widget:function(){return this.y2},
Vd:function(a,b){var c;this._super(a,b);"checked"in b||(this.xM=!0,c=!!this.element.prop("checked"),this.option("checked",c,{_context:{Ia:!0}}));if("boolean"!==typeof this.options.checked)throw Error("checked option must be a boolean");"disabled"in b||(c=!!this.element.prop("disabled"),this.option("disabled",c,{_context:{Ia:!0}}));if("boolean"!==typeof this.options.disabled)throw Error("disabled option must be a boolean");"type"in b||this.option("type",this.element.prop("type"),{_context:{Ia:!0}})},
_ComponentCreate:function(){this._super();var a=this.options.type;"checkbox"==a?(this.y2=this.element.addClass("oj-checkbox oj-component"),this.lb=this.gI(),this.lb.addClass("oj-checkbox-label")):"radio"==a&&(this.y2=this.element.addClass("oj-radio oj-component"),this.lb=this.gI(),this.lb.addClass("oj-radio-label"));this.Nf=this.g9();this._focusable(this.element);this.Nf&&(this.ld({element:this.Nf}),this.jh({element:this.Nf}),this._focusable({element:this.Nf,applyHighlight:!0}));this.ld({element:this.lb});
this.jh({element:this.lb});$.each(this.lb,function(){$(this.childNodes).wrapAll("\x3cspan class\x3d'oj-radiocheckbox-label-text'\x3e\x3c/span\x3e");var a=document.createElement("span");a.setAttribute("class","oj-radiocheckbox-icon");this.appendChild(a)});this.Aa()},mv:function(a){this.jx=a.attr("class")},Vr:function(){this.jx?this.element.attr("class",this.jx):this.element.removeAttr("class")},Aa:function(){this.nK();this.xM||this.kx(this.options.checked);this.options.checked&&this.setSelectedClass(this.options.checked)},
kx:function(a){this.element.prop("checked",!!a)},nK:function(){this.Wd()?(this.element.prop("disabled",!0).removeAttr("aria-disabled").removeClass("oj-enabled").addClass("oj-disabled"),this.lb.removeClass("oj-enabled").addClass("oj-disabled"),this.Nf&&this.Nf.removeClass("oj-enabled").addClass("oj-disabled")):(this.element.prop("disabled",!1).removeAttr("aria-disabled").removeClass("oj-disabled").addClass("oj-enabled"),this.lb.addClass("oj-enabled").removeClass("oj-disabled"),this.Nf&&this.Nf.addClass("oj-enabled").removeClass("oj-disabled"))},
_setOption:function(a,b){this._superApply(arguments);"disabled"===a&&(b=!!b,this.nK(b));"checked"===a&&(this.kx(b),this.setSelectedClass(b))},gI:function(){var a=this.element.closest("label"),b="label[for\x3d'"+this.element.prop("id")+"']",c=$(b),a=a.add(c);0===c.length&&(b=this.element.siblings(b),a.add(b));0===a.length&&w.l.warn("Could not find a label associated to the input element.");return a},g9:function(){var a;if(this.lb&&(a=this.lb.parent())&&(a.hasClass("oj-choice-row")||a.hasClass("oj-choice-row-inline")))return a;
w.l.warn("The radioset/checkboxset's input and label dom should be wrapped in a dom node with class 'oj-choice-row' or 'oj-choice-row-inline'");return null},getNodeBySubId:function(a){var b=this._super(a);b||(a=a.subId,"oj-radiocheckbox-input"===a&&(b=this.element[0]),"oj-radiocheckbox-label"===a&&(b=this.label()[0]));return b||null},_destroy:function(){var a=this._super();this.Nf&&(this.ZF(this.Nf),this.YF(this.Nf));this.ZF(this.lb);this.YF(this.lb);var b=this.options.type;"checkbox"==b?this.lb.removeClass("oj-enabled oj-disabled oj-selected oj-checkbox-label"):
"radio"==b&&this.lb.removeClass("oj-enabled oj-disabled oj-selected oj-radio-label");this.Nf&&this.Nf.removeClass("oj-enabled oj-disabled oj-selected");$.each(this.lb,function(){this.removeChild(this.getElementsByClassName("oj-radiocheckbox-icon")[0]);var a=this.getElementsByClassName("oj-radiocheckbox-label-text");void 0!==a&&$(a[0].childNodes[0]).unwrap()});return a}});
(function(){var a={cut:"ojtabscut","paste-before":"ojtabspastebefore","paste-after":"ojtabspasteafter",remove:"ojtabsremove"},b={cut:"labelCut","paste-before":"labelPasteBefore","paste-after":"labelPasteAfter",remove:"labelRemove"};w.sa("oj.ojTabs",$.oj.baseComponent,{widgetEventPrefix:"oj",delay:300,options:{selected:0,disabledTabs:null,truncation:"auto",selectOn:"click",orientation:"horizontal",edge:"top",removable:!1,reorderable:!1,beforeSelect:null,select:null,beforeDeselect:null,deselect:null,
beforeRemove:null,remove:null,beforeReorder:null,reorder:null,optionChange:null},_ComponentCreate:function(){var a=this.options;this._super();this.yN=!1;this.Hg=!0;this.BK(a.edge);this.xV=0==this.element.children("ul").length;this.N7();this.MW();this.la={};this.la.bf=!1;this.la.Yy=[];this.la.wd=null;this.la.eh=null;this.la.Ph=null;this.On();this.Pd();a=this.xT(a.selected);void 0===a&&(a=0);this.Zv(a);this.Hg=void 0},Zv:function(a,b){this.AB(a)&&(a=this.jI(a));this.tv(void 0===a?void 0:$(this.$a[a]),
b)},Se:function(a,b,e){if(this.Jba(b.target)&&(!this.UK||!this.UK.wC)){var f="keyboard"===e;if("contextmenu"==b.type||f||"touch"==e){var h=$(b.target).closest("li");a={launcher:h};this.la.tab=f?this.Ba:a.launcher;if(this.la.tab){if(this.la.Xy){if(((f=h.hasClass("oj-disabled"))||0==this.As(h).length)&&1==this.la.wd.children().length){b.preventDefault();return}f||!this.vJ(h)?this.la.Xy.addClass("oj-disabled"):this.la.Xy.removeClass("oj-disabled")}if(this.la.eh||this.la.Ph)h=!this.la.YC,this.la.eh.hasClass("oj-disabled")!=
h&&(h?(this.la.eh.addClass("oj-disabled"),this.la.Ph.addClass("oj-disabled")):(this.la.eh.removeClass("oj-disabled"),this.la.Ph.removeClass("oj-disabled")),this.la.wd.ojMenu("refresh"));this.Te(b,e,a)}else b.preventDefault()}}},Nfa:function(a){if(!this.AU(a)){var b=$(this.document[0].activeElement).closest("li"),e=this.iw(),f=e.index(b),h=e.length;switch(a.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:f=(f+1)%h;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:f=((0==f?h:f)-1)%h;break;case $.ui.keyCode.END:f=
h-1;break;case $.ui.keyCode.HOME:f=0;break;case 46:(b=this.Ba)&&0<this.As(b).length&&(a.preventDefault(),this.eC(b,null,a));return;default:return}a.preventDefault();clearTimeout(this.Bga);var k=$(e[f]);k.focus();if(!a.ctrlKey){b.attr("aria-selected","false");k.attr("aria-selected","true");var l=this;this.Bga=this._delay(function(){l&&l.$a&&l.tv(k,a)},this.delay)}}},cda:function(a){$(a.target).closest(".oj-tabs-selected").attr("id")===this.element.children(".oj-tabs-selected").attr("id")&&!this.AU(a)&&
a.ctrlKey&&a.keyCode===$.ui.keyCode.UP&&(a.preventDefault(),this.Ba.focus())},AU:function(a){var b=this.nI();if(a.ctrlKey&&a.keyCode===$.ui.keyCode.PAGE_UP)return this.tv(this.XS(b,!1)),!0;if(a.ctrlKey&&a.keyCode===$.ui.keyCode.PAGE_DOWN)return this.tv(this.XS(b,!0)),!0},AB:function(a){return 0<=a&&a<this.$a.length?$(this.$a[a]).hasClass("oj-disabled"):!1},XS:function(a,b){var e=this.iw(),f=e.index(this.$a[a]),h=e.length,e=$(e[b?(f+1)%h:((0==f?h:f)-1)%h]);e.focus();return e},jI:function(a){for(var b=
a+1,e=this.$a.length-1;b<=e;){if(!this.AB(b))return b;b++}for(b=a-1;0<=b;){if(!this.AB(b))return b;b--}},Wb:function(){return"top"==this.options.edge||"bottom"==this.options.edge},_setOption:function(a,b,e){"selected"===a?(b=this.aB(b),void 0!==b&&this.tv(b)):"disabledTabs"===a?(null===b&&(b=[]),Array.isArray(b)&&(this.TX(b),a=this.nI(),this.AB(a)&&this.Zv(a),this.refresh())):"removable"===a||"truncation"===a?b!=this.options[a]&&(this._super(a,b,e),this.refresh()):"reorderable"===a?b!==this.options.reorderable&&
(this._super(a,b,e),this.refresh()):"orientation"===a?this.FH||(a=this.vW(b))&&this.BK(a)&&this.refresh():"edge"===a?this.BK(b)&&(this.FH=!0,this._super(a,b,e),this.refresh()):"selectOn"===a?(this.tt(!0),this._super(a,b,e),this.Aj()):("contextMenu"===a&&(this.Dp(),b&&this.On(b)),this._super(a,b,e),"translations"===a&&e&&"removeCueText"===e.subkey&&this.xc&&this.As(this.xc).attr("aria-label",b?b.removeCueText:""))},refresh:function(){this._super();this.MW();this.Pd();if(!this.element.children(".oj-tabs-selected").length){var a=
this.jI(-1);0<=a&&this.Zv(a)}},Pd:function(){var a=this.element.children(".oj-tabs-selected");this.Ba=a.length?this.xc.children(".oj-selected"):$();this.k7();this.Aj();this.$a.not(this.Ba).attr({"aria-selected":"false",tabIndex:"-1"});this.Oh.not(this.Jn(this.Ba)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});this.Ba.length?(this.Ba.addClass("oj-selected").attr({"aria-selected":"true",tabIndex:"0"}),a.show().attr("aria-expanded","true").removeAttr("aria-hidden")):$(this.$a[0]).attr("tabIndex",
"0");this.Wb()&&(0<this.$a.length?(this.gga(),this.I5()):this.sI(),this.L5());void 0===this.options.selected||0==this.nI()?this.element.addClass("oj-first-child-selected"):this.element.removeClass("oj-first-child-selected");this.pfa()},I5:function(){var a=this.xc.uniqueId().attr("id");this.um=this.sI().parent().ojConveyorBelt({orientation:"horizontal",contentParent:"#"+a});a=this.um.parent();if(a.hasClass("oj-tabs-conveyorbelt-wrapper")){var b="0 1 "+this.i9()+"px";a.css("flex",b);a.css("-webkit-flex",
b);a.css("-ms-flex",b)}},MW:function(){var a=this,b=this.options.edge;this.pS();this.M7();this.xc=this.element.children("ul").addClass("oj-tabs-nav oj-helper-clearfix").attr("role","tablist");var e=this.xc.index(),f,h;this.element.children(".oj-tabs-facet").each(function(){var a=$(this);a.index()<e?(a.addClass("oj-start"),f=a):(h||(h=a),a.removeClass("oj-start"))});this.element.children(".oj-tabs-panel");"start"==b||"top"==b?f?f.after(this.xc):this.element.prepend(this.xc):h?h.before(this.xc):this.element.append(this.xc);
this.$a=$();this.Oh=$();this.xc.children("li").each(function(){var b=$(this).addClass("oj-tabs-tab").attr({role:"tab",tabIndex:"-1"}).removeAttr("aria-hidden"),d=b.children();d.addClass("oj-tabs-tab-content");d=d.children();d.addClass("oj-tabs-anchor").attr({role:"presentation",tabIndex:"-1"});d.children().addClass("oj-tabs-title").removeAttr("aria-hidden");a.$a=a.$a.add(b);var d=d.uniqueId().attr("id"),e=b.attr("data-content"),f=a.element.find(a.zq(e));b.attr({"aria-controls":e,"aria-labelledby":d});
a.Oh=a.Oh.add(f);f.attr("aria-labelledby",d).attr("role","tabpanel")});"start"!=b&&"end"!=b||a.xc.addClass("oj-tabs-nav-root");this.Hg&&this.TX(this.options.disabledTabs)},Aj:function(){var a=this,b={keydown:this.Nfa},e=this.options.selectOn,f=!1;e&&$.each(e.split(" "),function(e,h){"click"==h&&(f=!0);w.q.ID(h)&&(b[h]=a.DA)});var h=this.iw();this._on(h,b);f||this._on(h,{click:function(a){a.preventDefault()}});this.Oh.on("keydown"+this.eventNamespace,this.cda.bind(this));if(this.options.removable){var e=
{click:this.eea},k=this.As(h);this._on(k,e);this.ld(k);this.jh(k)}this._focusable({element:h,applyHighlight:!0});this.ld(h);this.jh({element:h,afterToggle:function(a){"mousedown"===a&&h.filter(".oj-focus-highlight").blur()}})},tt:function(a){var b=this.iw();a||this.xp(this.As(b));this.xp(b);this.Oh&&this.Oh.off("keydown"+this.eventNamespace)},DA:function(a,b){var e=this.Ba,f=$(a.currentTarget).closest("li"),h=e&&f[0]===e[0],k=this.Jn(f),l=e&&e.length?this.Jn(e):$(),e={fromTab:e,fromContent:l,toTab:f,
toContent:k};a.preventDefault();var m=b?b:a;f.hasClass("oj-disabled")||this.yN||h||l&&l.length&&!1===this._trigger("beforeDeselect",m,e)||!this.Hg&&!1===this._trigger("beforeSelect",m,e)||(this.Hg?this.options.selected=this.bB(f):this.option("selected",this.bB(f),{_context:{originalEvent:m,Ia:!0}}),this.Ba=f,k.addClass("oj-tabs-selected"),l&&l.length&&l.removeClass("oj-tabs-selected"),this.Yfa(m,e))},Yfa:function(a,b){var e=b.toTab.closest("li"),f=b.toContent,h=b.fromContent;this.yN=!0;var k=b.fromTab.closest("li").removeClass("oj-selected");
h.hide();0<h.length&&w.Components.Wo(h[0]);e.addClass("oj-selected");this.Wb()&&0<this.$a.length&&(0==e.index()?this.element.addClass("oj-first-child-selected"):this.element.removeClass("oj-first-child-selected"));f.show();0<f.length&&w.Components.Zm(f[0]);this.yN=!1;this.Hg||(this._trigger("deselect",a,b),this._trigger("select",a,b));h.attr({"aria-expanded":"false","aria-hidden":"true"});k.attr("aria-selected","false");f.length&&h.length?k.attr("tabIndex","-1"):f.length&&this.$a.filter(function(){return"0"===
$(this).attr("tabIndex")}).attr("tabIndex","-1");f.attr("aria-expanded","true").removeAttr("aria-hidden");e.attr({"aria-selected":"true",tabIndex:"0"})},tv:function(a,b){if(void 0!==a){var e;this.Ba&&a[0]===this.Ba[0]||(e=a.find(".oj-tabs-anchor")[0],this.DA({target:e,currentTarget:e,preventDefault:$.noop},b))}},k7:function(){if(this.options.removable&&this.Wb()){var a=this.r("removeCueText"),b=this;this.iw().each(function(e){if(b.vJ($(this))){var f=$(this).find("\x3e :first-child");f.addClass("oj-removable");
e="ojtabs-id_rm_"+e;$(this).attr("aria-describedby",e);$("\x3ca href\x3d'#'\x3e").addClass("oj-tabs-icon oj-component-icon oj-clickable-icon-nocontext oj-tabs-close-icon").attr({id:e,tabIndex:"-1","aria-label":a,role:"presentation"}).appendTo(f)}})}},iw:function(){return $(this.$a.not(".oj-disabled"))},As:function(a){return a.find(".oj-tabs-close-icon")},pS:function(){this.$a&&this.tt();this.HU&&(w.q.Hi(this.element[0],this.Ce),this.HU=!1,this.UJ=void 0);this.IK&&(w.q.ud()&&this.FY(),this.xc.sortable("instance")&&
this.xc.sortable("destroy"),this.IK=void 0);var a=this.element.children(".oj-tabs-nav-root"),b=!a.hasClass("oj-tabs-nav");if(this.$a&&(this.As(this.$a).remove(),a.length)){var e=a,f=!0,h=this.xc;a.children().each(function(){var a=$(this);if(a.hasClass("oj-tabs-conveyorbelt-wrapper"))a=h;else if(!a.hasClass("oj-tabs-facet"))return;f=!1;e.after(a);e=a});f&&b&&a.after(h)}this.um&&(this.um.ojConveyorBelt("destroy"),this.um.remove(),this.Ba=this.um=null);b&&a.remove();this.xc=this.$a=null},_destroy:function(){this.Dp();
this.Wb()?this.element.removeClass("oj-tabs oj-component oj-tabs-horizontal oj-tabs-top oj-tabs-bottom oj-first-child-selected"):this.element.removeClass("oj-tabs oj-component oj-tabs-vertical oj-tabs-start oj-tabs-end oj-helper-clearfix");var a=this,b,e,f,h;this.$a.each(function(k){b=$(this);b.removeAttr("tabIndex").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-controls").removeAttr("aria-disabled").removeAttr("aria-describedby").removeAttr("role").removeAttr("data-content").removeClass("oj-active oj-disabled oj-selected oj-tabs-gen-id oj-tabs-tab").removeUniqueId().css("display",
"");e=b.children("div").removeClass("oj-tabs-tab-content");f=e.children("a").removeClass("oj-tabs-anchor").removeAttr("tabIndex").removeAttr("role");h=f.children();h.removeClass("oj-tabs-title").removeAttr("aria-hidden");a.xV?h.prependTo(a.Oh.get(k)):e.hasClass("oj-tabs-gen-div")&&f.hasClass("oj-tabs-gen-a")?(h.prependTo(b),e.remove()):f.hasClass("oj-tabs-gen-a")?(h.prependTo(e),f.remove()):e.hasClass("oj-tabs-gen-div")&&(f.prependTo(b),e.remove())});var k=this.xc;this.pS();k.removeAttr("tabIndex").removeAttr("role").removeClass("oj-tabs-nav oj-tabs-nav-root oj-helper-clearfix").removeUniqueId();
this.xV&&k.remove();this.Oh.each(function(){$(this).removeAttr("tabIndex").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("role").removeClass("oj-active oj-tabs-selected oj-tabs-gen-id oj-tabs-panel").removeUniqueId().css("display","")});this.element.children(".oj-tabs-facet").removeClass("oj-start")},vJ:function(a){var b=this.options.removable;return b&&(!Array.isArray(b)||-1<b.indexOf(a.attr("id")))},eC:function(a,b,e){if(this.vJ(a)){var f=
this.Jn(a),h={tab:a,content:f};e=e?e:b?b:{target:a,currentTarget:a,preventDefault:$.noop};if(a&&!1!==this._trigger("beforeRemove",e,h)){b&&b.preventDefault();var k;a.hasClass("oj-selected")&&(b=this.jI(this.$a.index(a)),void 0===b?(this.Ba=void 0,k=-1):k=$(this.$a[b]).attr("data-content"));this.tt();this.$a=this.$a.not(a);a.remove();f.remove();this.kL();this.refresh();-1===k?this.option("selected",void 0,{_context:{originalEvent:e,Ia:!0}}):k&&(a=this.aB(k))&&(this.Zv(this.$a.index(a),e),this.option("selected",
this.bB(a),{_context:{originalEvent:e,Ia:!0}}));this._trigger("remove",e,h)}}},eea:function(a,b){this.eC($(a.currentTarget).closest("li"),a,b)},removeTab:function(a){if("string"!==typeof a)throw Error("'"+a+"' is not a tab id");this.eC(this.aB(a),null,null)},NC:function(a,b){var e;if("li"==a.prop("tagName").toLowerCase()){e=a;var f=e.children("div");1==f.length&&f.hasClass("oj-tabs-tab-content")?(f=f.children("a"),1!=f.length&&(e.wrapInner("\x3ca href\x3d'#'\x3e\x3c/a\x3e"),f.addClass("oj-tabs-gen-a"))):
(f=e.wrapInner("\x3cdiv\x3e\x3ca href\x3d'#'\x3e\x3c/a\x3e\x3c/div\x3e").children(),f.addClass("oj-tabs-gen-div oj-tabs-tab-content"),f.children().addClass("oj-tabs-gen-a"))}else e=a.wrap("\x3cli\x3e\x3cdiv\x3e\x3ca href\x3d'#'\x3e\x3c/a\x3e\x3c/div\x3e\x3c/li\x3e").parent().parent().parent(),e.addClass("oj-tabs-gen-li"),e.children().addClass("oj-tabs-gen-div oj-tabs-tab-content");b&&e.attr("data-content",b);return e},addTab:function(a){var b,e,f=-1;a.tab&&a.content?(e=a.content,b=this.NC(a.tab,this.fB(e)),
void 0!==a.index&&(f=a.index)):(e=a,b=this.NC($(a).find("\x3e :first-child"),this.fB(e)));a=this.element.children(".oj-tabs-nav-root");a=a.hasClass("oj-tabs-nav")?a:a.length?a.find(".oj-tabs-nav"):this.element.children(".oj-tabs-nav");var h=!1;a.length||(a=$("\x3cul\x3e"),h=!0);h&&a.prependTo(this.element);0<=f&&f<a.children().length?(f=a.children(":eq("+f+")"),a=this.element.children(this.zq(f.attr("aria-controls"))),f.before(b),a.before(e)):(b.appendTo(a),e.appendTo(this.element));this.refresh();
0==this.Ba.length&&this.Zv(0);b[0].scrollIntoView(!1)},sfa:function(){this.UK=as(this.xc)},FY:function(){bs(this.xc)},pfa:function(){if(this.options.reorderable){var a=this;w.q.ud()&&this.sfa();this.xc.sortable({axis:a.Wb()?"x":"y",distance:10,stop:function(b,e){var f=e.item;a.yS(b,f,f.prev())||a.xc.sortable("cancel")}});this.IK=!0}else this.FY(),this.IK=!1},Vd:function(a,b){var e=b.edge;this.FH="top"==e||"bottom"==e||"start"==e||"end"==e;this._super(a,b)},vW:function(a){return"horizontal"==a?"top":
"vertical"==a?"start":null},BK:function(a){if(this.Hg&&!this.FH||!a)a=this.vW(this.options.orientation);var b=this.options.edge;this.element.removeClass("oj-tabs-top oj-tabs-bottom oj-tabs-start oj-tabs-end");switch(a){case "top":case "bottom":!this.Oh||"start"!=b&&"end"!=b||this.element.removeClass("oj-tabs-vertical oj-helper-clearfix");this.element.addClass("oj-tabs oj-component oj-tabs-horizontal");"bottom"==a?this.element.addClass("oj-tabs-bottom"):this.element.addClass("oj-tabs-top");this.Hg?
this.options.orientation="horizontal":"horizontal"!=this.options.orientation&&this.option("orientation","horizontal",{_context:{Ia:!0},changed:!0});break;case "start":case "end":!this.Oh||"top"!=b&&"bottom"!=b||this.element.removeClass("oj-tabs-horizontal");this.element.addClass("oj-tabs oj-component oj-tabs-vertical oj-helper-clearfix");"end"==a?this.element.addClass("oj-tabs-end"):this.element.addClass("oj-tabs-start");this.Hg?this.options.orientation="vertical":"vertical"!=this.options.orientation&&
this.option("orientation","vertical",{_context:{Ia:!0},changed:!0});break;default:return!1}this.Hg?this.options.edge=a:this.options.edge!=a&&this.option("edge",a,{_context:{Ia:!0},changed:!0});return!0},sI:function(){var a=this.xc.parent();a.hasClass("oj-tabs-conveyor")||(a=this.xc.wrap("\x3cdiv\x3e").parent().addClass("oj-tabs-conveyor"),(0<this.element.children(".oj-tabs-facet").length?a.wrap("\x3cdiv\x3e").wrap("\x3cdiv\x3e").parent().parent().addClass("oj-tabs-conveyorbelt-wrapper"):a).wrap("\x3cdiv\x3e").parent().addClass("oj-tabs-nav-root").uniqueId().attr("id"));
return a},Gka:function(a){0>a.id.indexOf("ojtabs-id_")&&$(a).attr("id","ojtabs-id_"+a.id)},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;var b=a.subId;a=a.index;if("oj-conveyorbelt"!=b&&("number"!==typeof a||0>a||a>=this.Oh.length))return null;switch(b){case "oj-conveyorbelt":return this.um?this.um[0]:null;case "oj-tabs-panel":return this.Jn(this.$a[a])[0];case "oj-tabs-tab":return this.$a[a];case "oj-tabs-title":return $(this.$a[a]).find(".oj-tabs-title")[0];case "oj-tabs-close-icon":case "oj-tabs-close":return $(this.$a[a]).find(".oj-tabs-close-icon")[0]}return null},
getSubIdByNode:function(a){for(var b=[],e=0;e<this.$a.length;e++)b.push(this.Jn(this.$a[e])[0]);for(var f=e=-1,h=a;h;){if(this.um&&h===this.um[0])return{subId:"oj-conveyorbelt"};e=Array.prototype.indexOf.call(this.$a,h);if(-1!=e)break;f=b.indexOf(h);if(-1!=f)return{subId:"oj-tabs-panel",index:f};h=h.parentElement}if(-1!=e)for(b=this.getNodeBySubId({subId:"oj-tabs-title",index:e}),f=this.getNodeBySubId({subId:"oj-tabs-close",index:e}),h=a;h;){if(h===b)return{subId:"oj-tabs-title",index:e};if(h===f)return{subId:"oj-tabs-close",
index:e};if(h===this.$a[e])return{subId:"oj-tabs-tab",index:e};h=h.parentElement}return null},i9:function(){return this.UJ+10},VT:function(){var a=this.element.find(".oj-tabs-conveyorbelt-wrapper");return a.length?a[0].clientWidth:this.element[0].clientWidth},yV:function(){return this.UJ>this.VT()},Z9:function(){var a=Math.floor(this.VT()/this.$a.length);this.options.removable&&(a-=28);return a},KQ:function(){var a=this.Z9();this.xc.find(".oj-tabs-title").each(function(){$(this).css("max-width",""+
a+"px").addClass("oj-tabs-title-overflow")})},fea:function(){this.xc.find(".oj-tabs-title").each(function(){$(this).css("max-width","").removeClass("oj-tabs-title-overflow")})},jla:function(){},Ae:function(){this.CV()&&(this.yV()?this.KQ():this.fea())},CV:function(){return"auto"==this.options.truncation||"progressive"==this.options.truncation},gga:function(){this.Wb()&&0<this.$a.length&&(null==this.Ce&&(this.Ce=this.Ae.bind(this)),w.q.Ch(this.element[0],this.Ce),this.HU=!0,this.UJ=this.sI()[0].scrollWidth,
this.CV()&&this.yV()&&this.KQ())},Nl:function(){this._super();this.refresh()},Ml:function(){this._super();this.refresh()},Ag:function(c){return $("\x3ca\x3e").text(this.r(b[c])).attr("href","#").wrap("\x3cli\x3e").parent().attr("id",a[c]).addClass("oj-menu-item")},qca:function(a){if(!a||!a.length)return!1;this.la.YC=a},cW:function(a,b,e){if(!b||!b.length||!this.la.YC)return!1;var f=this.la.YC;this.la.YC=!1;this.yS(a,f,b,e)},rca:function(a,b){if(!b||!b.length)return!1;this.eC(b,null,a)},vh:function(a,
b){var e=b?b.item.attr("id"):void 0;"ojtabscut"===e?this.qca(this.la.tab):"ojtabspastebefore"===e?this.cW(a,this.la.tab,!0):"ojtabspasteafter"===e?this.cW(a,this.la.tab,!1):"ojtabsremove"===e&&this.rca(a,this.la.tab)},On:function(a){if(a=a||this.options.contextMenu){if("function"==$.type(a)){try{a=a()}catch(b){a=null}$.type(a)}a&&$(a).length&&(this.options.contextMenu=a)}this.la.bf=!!a;this.pn()},Rz:function(a,b,e){-1==b.indexOf(e)&&(b=this.Ag(e),a.append(b),this.la.Yy.push(b))},pn:function(){var a=
$(this.options.contextMenu);if(0!=a.length||this.options.reorderable||this.options.removable){var d=this;if(0==a.length){var e=this.options.reorderable?"labelReorder":b.remove,f=this.element.uniqueId().attr("id")+"contextmenu",a=$("\x3cul\x3e");a.css("display","none").attr("id",f).attr("aria-label",this.r(e));$(document.body).append(a);a.ojMenu();this.options.contextMenu=this.zq(f)}var h=[];a.find("[data-oj-command]").each(function(){if(0===$(this).children("a").length){var a=$(this).attr("data-oj-command").slice(8);
$(this).replaceWith(d.Ag(a));$(this).addClass("oj-menu-item");h.push(a)}});this.options.reorderable&&(this.Rz(a,h,"cut"),this.Rz(a,h,"paste-before"),this.Rz(a,h,"paste-after"),this.la.eh=a.find("#ojtabspastebefore"),this.la.Ph=a.find("#ojtabspasteafter"));this.options.removable&&(this.Rz(a,h,"remove"),this.la.Xy=a.find("#ojtabsremove"));this.la.wd=a;a.ojMenu("refresh");a.on("ojselect",$.proxy(this.vh,this))}},Dp:function(){var a=this.la;if(a&&a.wd){a.wd.off("ojselect");a.bf||(a.wd.ojMenu("destroy"),
a.wd.remove());if(a.Yy)for(;0<a.Yy.length;)a.Yy.pop().remove();a.wd=null}a.eh=null;a.Ph=null;a.Xy=null},yS:function(a,b,e,f){var h=this.Jn(b),k={tab:b,content:h};if(!1===this._trigger("beforeReorder",a,k))return!1;var l=this.$a.index(b);if(e.length){if(this.$a.index(e)==l)return!0;l=this.Jn(e);f?(e.before(b),l.before(h)):(e.after(b),l.after(h))}else if(0<this.$a.length){if(0==l)return!0;this.$a.first().before(b);this.Oh.first().before(h)}this.kL();this.refresh();e.blur();b.focus();this._trigger("reorder",
a,k);return!0},zX:function(a){return a?a.replace(/[#!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$\x26"):""},zq:function(a){return a?"#"+this.zX(a):""},Jn:function(a){return this.element.find(this.zq($(a).attr("aria-controls")))},fB:function(a){var b=a.attr("id");b||(b=a.uniqueId().attr("id"),a.addClass("oj-tabs-gen-id"));return b},aB:function(a){a=this.xT(a);if(-1!==a)return $(this.$a[a])},xT:function(a){var b=-1;"number"===typeof a?0<=a&&a<this.$a.length&&(b=a):"string"===typeof a&&(a=this.zX(a),w.q.ID(a)&&
(a=this.element.find(this.zq(a)),a.length&&(b=this.$a.index(a),-1==b&&(b=this.Oh.index(a)))));return b},nI:function(){var a=this.options.selected;return"number"===typeof a?a:this.$a.index($(this.zq(a)))},bB:function(a){if(a){var b=a.attr("id");return b?b:this.$a.index(a)}},TX:function(a){var b=(this.xc?this.xc:this.element.children("ul")).children("li");b.removeClass("oj-disabled").removeAttr("aria-disabled");var e=[];if(a&&0<a.length)for(var f,h,k=0;k<a.length;k++)if(h=this.aB(a[k]))h.addClass("oj-disabled"),
h.attr("aria-disabled","true"),h.find(".oj-tabs-anchor").removeAttr("href"),f=h.attr("id"),e.push(f?f:b.index(h));this.kL(e)},kL:function(a){if(!a){a=[];var b=this;this.xc.children().each(function(){var e=$(this);e.hasClass("oj-disabled")&&a.push(b.bB(e))})}qa(this.options.disabledTabs,a)||(this.Hg?this.options.disabledTabs=a:this.option({disabledTabs:a},{_context:{Ia:!0,kc:!0},changed:!0}))},Jba:function(a){var b=!1;this.$a.each(function(){if(this===a||$.contains(this,a))return b=!0,!1});return b},
M7:function(){var a=this.hT(),b=this,e=this.element.children("ul");0<e.length&&e.children("li").each(function(e){b.NC($(this),a[e])})},N7:function(){var a=this.element.children("ul");if(0==a.length){var b=this,e=this.hT(),a=$("\x3cul\x3e");this.element.children().each(function(f){b.NC($(this).find("\x3e :first-child"),e[f]).appendTo(a)});a.prependTo(this.element)}},L5:function(){var a=this.element.children(".oj-tabs-nav-root"),b=this,e=a.children(".oj-tabs-conveyorbelt-wrapper");a.index();this.element.children(".oj-tabs-facet").each(function(){var f=
$(this),h=b.fB(f);0==a.find(b.zq(h)).length&&(f.hasClass("oj-start")?e.before(f):f.appendTo(a))})},hT:function(){var a=[],b=this;this.element.children(":not(ul):not(.oj-tabs-facet)").each(function(){var e=$(this);e.addClass("oj-tabs-panel");a.push(b.fB(e))});return a}})})();
w.Components.xa("ojTabs","baseComponent",{properties:{disabledTabs:{type:"Array"},edge:{type:"string"},orientation:{type:"string"},removable:{type:"boolean|Array"},reorderable:{type:"boolean"},selected:{type:"string|number"},selectOn:{type:"string"},truncation:{type:"string"}},methods:{addTab:{},refresh:{},removeTab:{}},extension:{_widgetName:"ojTabs"}});w.Components.register("oj-tabs",w.Components.getMetadata("ojTabs"));
w.sa("oj.ojThematicMap",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{load:null,optionChange:null},aS:"",Dw:[],RQ:"resources/internal-deps/dvt/thematicMap/basemaps/",wY:{ar:"ar",cs:"cs",da:"da",de:"de",el:"el",es:"es",fi:"fi",fr:"fr","fr-ca":"fr_CA",he:"iw",hu:"hu",it:"it",ja:"ja",ko:"ko",nl:"nl",no:"no",pl:"pl",pt:"pt_BR","pt-pt":"pt",ro:"ro",ru:"ru",sk:"sk",sv:"sv",th:"th",tr:"tr","zh-hans":"zh_CN","zh-hant":"zh_TW"},_ComponentCreate:function(){this._super();this.Cp=[];this.gV=!1;this.ns=
[]},ue:function(a,b,c){return dvt.ThematicMap.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-thematicmap-area"==b?b=a.dataLayer+":area["+a.index+"]":"oj-thematicmap-marker"==b?b=a.dataLayer+":marker["+a.index+"]":"oj-thematicmap-link"==b?b=a.dataLayer+":link["+a.index+"]":"oj-thematicmap-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};0<a.indexOf(":area")?(b.subId="oj-thematicmap-area",b.dataLayer=a.substring(0,a.indexOf(":")),b.index=this.mh(a)):0<a.indexOf(":marker")?(b.subId=
"oj-thematicmap-marker",b.dataLayer=a.substring(0,a.indexOf(":")),b.index=this.mh(a)):0<a.indexOf(":link")?(b.subId="oj-thematicmap-link",b.dataLayer=a.substring(0,a.indexOf(":")),b.index=this.mh(a)):"tooltip"==a&&(b.subId="oj-thematicmap-tooltip");return b},Md:function(){var a=this._super();a.push("oj-thematicmap");return a},ug:function(){var a=this._super();a["oj-dvtbase oj-thematicmap"]={path:"animationDuration",property:"animation-duration"};a["oj-thematicmap-arealayer"]=[{path:"styleDefaults/areaStyle",
property:"CSS_BACKGROUND_PROPERTIES"},{path:"styleDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"}];a["oj-thematicmap-area"]={path:"styleDefaults/dataAreaDefaults/borderColor",property:"border-top-color"};a["oj-thematicmap-area oj-hover"]={path:"styleDefaults/dataAreaDefaults/hoverColor",property:"border-top-color"};a["oj-thematicmap-area oj-selected"]=[{path:"styleDefaults/dataAreaDefaults/selectedInnerColor",property:"border-top-color"},{path:"styleDefaults/dataAreaDefaults/selectedOuterColor",
property:"border-bottom-color"}];a["oj-thematicmap-marker"]=[{path:"styleDefaults/dataMarkerDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"},{path:"styleDefaults/dataMarkerDefaults/color",property:"background-color"},{path:"styleDefaults/dataMarkerDefaults/opacity",property:"opacity"},{path:"styleDefaults/dataMarkerDefaults/borderColor",property:"border-top-color"}];a["oj-thematicmap-link"]={path:"styleDefaults/linkDefaults/color",property:"color"};a["oj-thematicmap-link oj-hover"]={path:"styleDefaults/linkDefaults/_hoverColor",
property:"color"};a["oj-thematicmap-link oj-selected"]={path:"styleDefaults/linkDefaults/_selectedColor",property:"border-color"};return a},vg:function(){return["load","optionChange"]},_setOptions:function(a,b){var c=Object.keys(a).length,d=a.areaLayers,e=this.options.areaLayers,f=a.pointDataLayers;if(1==c&&d&&e&&0<e.length)for(c=0;c<d.length;c++){var f=d[c],h=e[c],k=!0,l;for(l in f)"areaDataLayer"!=l&&f[l]!=h[l]&&(k=k&&!1);k&&!oa(h.areaDataLayer,f.areaDataLayer)&&this.ns.push({options:f.areaDataLayer,
parentLayer:f.layer,isADL:!0})}else if(1==c&&f&&this.options.pointDataLayers&&0<this.options.pointDataLayers.length)for(c=0;c<f.length;c++)oa(this.options.pointDataLayers[c],f[c])||this.ns.push({options:f[c],parentLayer:f[c].id,isADL:!1});this._super(a,b)},ff:function(){this.LP();var a=this.options.areaLayers;if(this.options.basemap&&a&&!(1>a.length)){this.cca();for(var b=0;b<this.Cp.length;b++)if(!this.Dw[this.Cp[b]])return;this.Cp=[];this.nga();var c=(b=this.options.tooltip)?b.renderer:null;c&&
(this.options._tooltip=function(a){var b=a.tooltip;try{return c(a)||b}catch(d){return w.l.warn("Showing default tooltip. "+d),b}});if(a)for(b=0;b<a.length;b++){var d=a[b].areaDataLayer;if(d){var e=d._templateRenderer;e&&(d.renderer=this.cB(e,d.markers))}}if(a=this.options.pointDataLayers)for(b=0;b<a.length;b++)(d=a[b])&&(e=d._templateRenderer)&&(d.renderer=this.cB(e,d.markers));this.options._contextHandler=this.XH();if(this.gV&&0<this.ns.length){if(this.Yd.isReadyToRender()){for(b=0;b<this.ns.length;b++)e=
this.ns[b],this.ca.updateLayer(e.options,e.parentLayer,e.isADL);this.ns=[]}}else this._super(),this.gV=!0;this._trigger("load",null,null)}},cB:function(a){var b=this;return function(c){var d=document.createElement("div");d.style.display="none";d.Sv=b.Yd;b.element.append(d);a({parentElement:d,data:c.data});return(c=d.children[0])?"http://www.w3.org/2000/svg"===c.namespaceURI?(d.removeChild(c),$(d).remove(),c):b.gv(c):null}},XH:function(){var a=this;return function(b,c,d,e,f){return{component:w.Components.Pb(a.element),
parentElement:b,rootElement:c,data:d,state:e,previousState:f,id:d.id,label:d.label,color:d.color,location:d.location,x:d.x,y:d.y}}},renderDefaultHover:function(a){a.previousState&&a.state.hovered==a.previousState.hovered||this.ca.processDefaultHoverEffect(a.id,a.state.hovered)},renderDefaultSelection:function(a){a.previousState&&a.state.selected==a.previousState.selected||this.ca.processDefaultSelectionEffect(a.id,a.state.selected)},renderDefaultFocus:function(a){a.previousState&&a.state.focused==
a.previousState.focused||this.ca.processDefaultFocusEffect(a.id,a.state.focused)},cca:function(){var a=this.options.basemap;if(a){var b=w.T.gg();b!==this.aS&&(this.aS=b,this.Dw=[]);var c=this.options.areaLayers;if(c)for(var d=0;d<c.length;d++){var e=c[d].layer;e&&this.QV(a,e,b)}c=this.options.pointDataLayers;!this.options.mapProvider&&c&&0<c.length&&this.QV(a,"cities",b)}},TV:function(a,b){if(!this.Dw[a]){var c=this,d=$.getScript(w.T.Fa(a),function(){c.Dw[a]=!0;c.ff()});b&&d.fail(function(){c.Dw[a]=
!0;c.ff()})}},QV:function(a,b,c){var d=!0;try{d=0<Object.keys(dvt.DvtBaseMapManager.getLayerIds(a,b)).length}catch(e){d=!1}d||((d=this.options.mapProvider)?w.Ha.zha(a,b,d):(d=this.RQ+"ojthematicmap-"+a+"-"+b+".js",-1==this.Cp.indexOf(d)&&(this.Cp.push(d),this.TV(d,!1))));if(-1===c.indexOf("en"))for(d=c.toLowerCase().split("-"),c=[d[0]],1<d.length&&c.unshift(d[0]+"-"+d[1]),2<d.length&&c.unshift(d[0]+"-"+d[2],d[0]+"-"+d[1]+"-"+d[2]),a=a.charAt(0).toUpperCase()+a.slice(1),b=b.charAt(0).toUpperCase()+
b.slice(1),a=this.RQ+"resourceBundles/"+a+b+"Bundle_",b=0;b<c.length;b++)if(this.wY[c[b]]){a=a+this.wY[c[b]]+".js";-1==this.Cp.indexOf(a)&&(this.Cp.push(a),this.TV(a,!0));break}},Th:function(a){if("selection"===a.type){var b={},c=a.clientId;b[c]=a.selection;if(this.options.selection)for(var d in this.options.selection)c!==d&&(b[d]=this.options.selection[d]);this.Ec("selection",b)}else this._super(a)},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.THEMATIC_MAP"]=a.componentName;
return b},nga:function(){var a=this.options.selection;if(a){var b=this.options.pointDataLayers;if(b)for(var c=0;c<b.length;c++)a[b[c].id]&&(b[c].selection=a[b[c].id]);if(b=this.options.areaLayers)for(c=0;c<b.length;c++){var d=b[c].areaDataLayer;d&&a[d.id]&&(d.selection=a[d.id])}}},getArea:function(a,b){var c=this.ca.getAutomation().getData(a,"area",b);this.Sf(c);return c},getMarker:function(a,b){var c=this.ca.getAutomation().getData(a,"marker",b);this.Sf(c);return c},getLink:function(a,b){var c=this.ca.getAutomation().getData(a,
"link",b);this.Sf(c);return c},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-thematicmap-tooltip"!==a.subId?a:null},lh:function(){return{areaLayers:["areaDataLayer/areas","areaDataLayer/markers"],pointDataLayers:["markers","links"]}},iP:function(a){var b=this.options.basemap;a=a.layer?a.layer:"cities";return{basemap:b,layer:a,ids:dvt.DvtBaseMapManager.getLayerIds(b,a)}}});w.Ha={};w.Ha.Az="DvtBaseMapManager";w.Ha.qQ="_UNPROCESSED_MAPS";w.Ha.Wr="type";w.Ha.O3="geometry";
w.Ha.w3="coordinates";w.Ha.M3="features";w.Ha.Z4="properties";w.Ha.x5="FeatureCollection";w.Ha.Eka="GeometryCollection";w.Ha.w5="Feature";w.Ha.pQ="Polygon";w.Ha.oQ="MultiPolygon";w.Ha.U3="id";w.Ha.o5="shortLabel";w.Ha.n4="longLabel";
w.Ha.zha=function(a,b,c){var d={},e={},f=c.geo,h=c.propertiesKeys||{};c=f[w.Ha.Wr];if(c===w.Ha.x5)f[w.Ha.M3].forEach(function(a){w.Ha.y1(a,h,e,d)});else if(c===w.Ha.w5)w.Ha.y1(f,h,e,d);else{w.l.error("GeoJSON type of "+c+" is not supported. Only Feature and FeatureCollection types are supported.");return}0===Object.keys(e).length?w.l.error("No valid Features found in GeoJSON."):(window[w.Ha.Az]||(window[w.Ha.Az]={},window[w.Ha.Az][w.Ha.qQ]=[[],[],[]]),window[w.Ha.Az][w.Ha.qQ][0].push([a,b,d,e,null,
null,0]))};w.Ha.y1=function(a,b,c,d){var e=a[w.Ha.Z4];a=a[w.Ha.O3];if(w.Ha.Bia(a)){var f=e[b[w.Ha.U3]];if(f){var h=e[b[w.Ha.o5]];b=e[b[w.Ha.n4]];if(h||b)d[f]=[h,b];c[f]=w.Ha.Aha(a)}else w.l.warn("No 'id' value found in the mapProvider.propertiesKey object. A Feature's 'properties' object must have an id in the field specified by the mapProvider.propertiesKey.id value.")}else w.l.warn("A geometry of type "+a[w.Ha.Wr]+" is not supported and will be skipped.")};
w.Ha.Bia=function(a){a=a[w.Ha.Wr];return a===w.Ha.pQ||a===w.Ha.oQ?!0:!1};w.Ha.Aha=function(a){var b="",c=a[w.Ha.Wr];a=a[w.Ha.w3];c===w.Ha.pQ?b=w.Ha.D1(a):c===w.Ha.oQ&&a.forEach(function(a){b+=w.Ha.D1(a)});return b};w.Ha.D1=function(a){var b="";a.forEach(function(a){b+=w.Ha.Fia(a)});return b};
w.Ha.Fia=function(a){var b,c,d,e="M";a&&a.forEach(function(a){var h=a[0];a=-a[1];if("M"===e)c=h,d=a,e="x",b="M"+h+" "+a;else{var k=h-c,l=a-d;if("l"==e){if(c==h){e="v";d=a;b=b+e+l;return}if(d==a){e="h";c=h;b=b+e+k;return}b=b+" "+k+" "+l}else e="l",b=b+"l"+k+" "+l;c=h;d=a}});return b+"Z"};
w.Components.xa("ojThematicMap","dvtBaseComponent",{properties:{animationDuration:{type:"number"},animationOnDisplay:{type:"string"},animationOnMapChange:{type:"string"},areaLayers:{type:"Array\x3cobject\x3e"},basemap:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},hoverBehavior:{type:"string"},initialZooming:{type:"string"},mapProvider:{type:"object"},markerZoomBehavior:{type:"string"},maxZoom:{type:"number"},
panning:{type:"string"},pointDataLayers:{type:"Array\x3cobject\x3e"},selection:{type:"object"},styleDefaults:{type:"object"},tooltip:{type:"object"},tooltipDisplay:{type:"string"},touchResponse:{type:"string"},zooming:{type:"string"}},methods:{getArea:{},getContextByNode:{},getLink:{},getMarker:{},renderDefaultFocus:{},renderDefaultHover:{},renderDefaultSelection:{}},extension:{_widgetName:"ojThematicMap"}});w.Components.register("oj-thematic-map",w.Components.getMetadata("ojThematicMap"));
w.sa("oj.ojProgressbar",$.oj.baseComponent,{version:"1.0.0",defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{max:100,value:0,disabled:!1},min:0,Ms:!1,_ComponentCreate:function(){this._super();this.oldValue=this.options.value=this.CR();this.element.addClass("oj-progressbar").attr({role:"progressbar","aria-valuemin":this.min});this.SN=$("\x3cdiv class\x3d'oj-progressbar-value'\x3e\x3c/div\x3e").appendTo(this.element);this.cX()},Vd:function(a,b){var c=this.element;this._super(a,b);void 0===
b.max&&(c=c.attr("max")||void 0,null!=c&&(this.options.max=c))},CR:function(a){void 0===a&&(a=this.options.value);this.Ms=-1==a;"number"!==typeof a&&(a=isNaN(a)?0:Number(a));return this.Ms?-1:Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a,b){var c=a.value;delete a.value;this._super(a,b);this.options.disabled||(this.options.value=this.CR(c),this.cX())},_setOption:function(a,b,c){"max"===a&&(b=Math.max(this.min,b));this._super(a,b,c)},fda:function(){return this.Ms?100:100*(this.options.value-
this.min)/(this.options.max-this.min)},cX:function(){var a=this.options.value,b=this.fda();this.SN.toggle(this.Ms||a>this.min).width(b.toFixed(0)+"%");this.element.toggleClass("oj-progressbar-indeterminate",this.Ms);this.Ms?(this.element.attr({"aria-valuetext":"In Progress"}),this.element.removeAttr("aria-valuenow"),this.element.removeAttr("aria-valuemin"),this.element.removeAttr("aria-valuemax"),this.Ky||(this.Ky=$("\x3cdiv class\x3d'oj-progressbar-overlay'\x3e\x3c/div\x3e").appendTo(this.SN),this.Ky.addClass("oj-indeterminate"))):
(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":a}),this.Ky&&(this.Ky.remove(),this.Ky=null))},_destroy:function(){this.element.removeClass("oj-progressbar").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.SN.remove();this._super()}});w.Components.xa("ojProgressbar","baseComponent",{properties:{disabled:{},max:{},value:{}},methods:{},extension:{_widgetName:"ojProgressbar"}});w.Components.register("oj-progressbar",w.Components.getMetadata("ojProgressbar"));
function Ws(a,b){if(!(a instanceof Array)&&"function"!=typeof a&&"function"!=typeof a.Zla)throw Error("_ERR_DATA_INVALID_TYPE_SUMMARY\n_ERR_DATA_INVALID_TYPE_DETAIL");var c;a:{if(null!=b&&null!=b.rowHeader)if(c=b.rowHeader,"object"===typeof c){if(null!=c["default"]&&"none"==c["default"]){c=void 0;break a}}else if(null!=c)break a;c="m_defaultIndex"}this.pr=c;null!=b&&(this.columns=b.columns,this.sortCriteria=b.initialSort);Ws.o.constructor.call(this,a)}t("ArrayDataGridDataSource",Ws,w);H(Ws,Uf,"oj.ArrayDataGridDataSource");
Ws.prototype.Init=function(){if(null==this.columns){var a;a=Xs(this);var b,c;if("number"!==typeof a.length||0===a.length)a=[];else{c=[];for(b in a[0])a[0].hasOwnProperty(b)&&(void 0!=this.pr&&b==this.pr||c.push(b));a=c}this.columns=a}a=Xs(this);for(this.Xq=0;this.Xq<a.length;this.Xq+=1)a[this.Xq].ojKey=this.Xq.toString();"function"==typeof this.data&&this.data.subscribe(this.Ifa.bind(this),null,"arrayChange");Ws.o.Init.call(this)};A("ArrayDataGridDataSource.prototype.Init",{Init:Ws.prototype.Init});
Ws.prototype.oi=null;A("ArrayDataGridDataSource.prototype.comparator",{oi:Ws.prototype.oi});Ws.prototype.sortCriteria=null;A("ArrayDataGridDataSource.prototype.sortCriteria",{sortCriteria:Ws.prototype.sortCriteria});Ws.prototype.getCount=function(a){return"row"===a?this.ao():"column"===a?this.columns.length:0};A("ArrayDataGridDataSource.prototype.getCount",{getCount:Ws.prototype.getCount});Ws.prototype.getCountPrecision=function(){return"exact"};
A("ArrayDataGridDataSource.prototype.getCountPrecision",{getCountPrecision:Ws.prototype.getCountPrecision});function Ys(a,b,c){if("row"===b){if(void 0==a.pr)return null;if("m_defaultIndex"==a.pr)return Zs(a,c);b=Xs(a);return b[c][a.pr]}if("column"===b)return a.columns[c]}
Ws.prototype.fetchHeaders=function(a,b,c){var d,e,f,h;d=a.axis;e=a.start;f=a.count;e=Math.max(0,e);"column"===d?f=Math.min(this.columns.length,e+f):(h=Xs(this),f=void 0===this.pr?e:Math.min(h.length,e+f));d=new $s(e,f,d,this);null!=b&&null!=b.success&&(null==c&&(c={}),b.success.call(c.success,d,a,null))};A("ArrayDataGridDataSource.prototype.fetchHeaders",{fetchHeaders:Ws.prototype.fetchHeaders});
Ws.prototype.fetchCells=function(a,b,c){var d,e,f,h,k,l;for(d=0;d<a.length;d+=1)e=a[d],"row"===e.axis?(f=e.start,h=Math.min(this.ao(),f+e.count)):"column"===e.axis&&(k=e.start,l=Math.min(this.columns.length,k+e.count));void 0===h||void 0===l?null!=b&&null!=b.error&&(null==c&&(c={}),b.error.call(c.error)):(d=new at(f,h,k,l,this),null!=b&&null!=b.success&&(null==c&&(c={}),b.success.call(c.success,d,a)))};A("ArrayDataGridDataSource.prototype.fetchCells",{fetchCells:Ws.prototype.fetchCells});
Ws.prototype.keys=function(a){var b=a.row,c=a.column;return new Promise(function(a){a({row:Zs(this,b),column:this.columns[c]})}.bind(this))};A("ArrayDataGridDataSource.prototype.keys",{keys:Ws.prototype.keys});Ws.prototype.indexes=function(a){var b=a.row,c=a.column;return new Promise(function(a){a({row:bt(this,b),column:this.columns.indexOf(c)})}.bind(this))};A("ArrayDataGridDataSource.prototype.indexes",{indexes:Ws.prototype.indexes});
Ws.prototype.sort=function(a,b,c){var d=[],e=[],f;null!=b&&null==c&&(c={});void 0==this.kr&&(this.$ca=this.sortCriteria,this.kr=this.data.slice());null==a?a=this.sortCriteria:this.sortCriteria=a;if(null==a)this.pK(b,c);else if(f=a.axis,a=a.key,"column"===f)Xs(this).sort(this.ew()),null!=b&&null!=b.success&&b.success.call(c.success);else if("row"===f){a=bt(this,a);for(f=0;f<this.columns.length;f+=1)d[f]=Xs(this)[a][this.columns[f]];d.sort(this.ew());for(f=0;f<this.columns.length;f+=1)e[f]=this.columns[d.indexOf(Xs(this)[a][this.columns[f]])];
this.v1=this.columns;this.columns=e;null!=b&&null!=b.success&&b.success.call(c.success)}else null!==b&&null!=b.error&&b.error.call(c.error,"Invalid axis value")};A("ArrayDataGridDataSource.prototype.sort",{sort:Ws.prototype.sort});Ws.prototype.pK=function(a,b){null!=this.kr&&(this.data=this.kr,this.sortCriteria=this.$ca);null!=this.v1&&(this.columns=this.v1);null!=a&&null!=a.success&&a.success.call(b.success)};Ws.prototype.getCapability=function(a){return"sort"===a?"column":"move"===a?"row":null};
A("ArrayDataGridDataSource.prototype.getCapability",{getCapability:Ws.prototype.getCapability});Ws.prototype.ew=function(){var a,b,c;a=this.comparator;return null==a?(a=this.sortCriteria.key,b=this.sortCriteria.direction,c=this.sortCriteria.axis,ct(b,a,c)):a};
function ct(a,b,c){if("ascending"===a)return function(a,e){var f,h;void 0!=b&&"column"==c&&(a instanceof Array?(a=a[parseInt(b,10)],e=e[parseInt(b,10)]):(a=a[b],e=e[b]));f=isNaN(a);h=isNaN(e);a instanceof Date&&(a=a.toISOString(),f=!0);e instanceof Date&&(e=e.toISOString(),h=!0);return f&&h?a<e?-1:a===e?0:1:f?1:h?-1:a-e};if("descending"===a)return function(a,e){var f,h;void 0!=b&&"column"==c&&(a instanceof Array?(a=a[parseInt(b,10)],e=e[parseInt(b,10)]):(a=a[b],e=e[b]));f=isNaN(a);h=isNaN(e);a instanceof
Date&&(a=a.toISOString(),f=!0);e instanceof Date&&(e=e.toISOString(),h=!0);return f&&h?a>e?-1:a===e?0:1:f?-1:h?1:e-a}}Ws.prototype.move=function(a,b){var c,d;c=bt(this,a);d=this.data.splice(c,1)[0];this.data instanceof Array&&(c=this.tk("delete",a,null,c,-1,!0),this.handleEvent("change",c));null===b?(this.data.push(d),c=this.data.length-1):(c=bt(this,b),this.data.splice(c,0,d));this.data instanceof Array&&(c=this.tk("insert",a,null,c,-1),this.handleEvent("change",c));null!=this.kr&&(this.kr=this.data.slice())};
A("ArrayDataGridDataSource.prototype.move",{move:Ws.prototype.move});Ws.prototype.moveOK=function(){return"valid"};A("ArrayDataGridDataSource.prototype.moveOK",{moveOK:Ws.prototype.moveOK});function Xs(a){return"function"===typeof a.data?a.data():a.data}function bt(a,b){var c,d=Xs(a);for(c=0;c<d.length;c++)if(d[c].ojKey===b)return c;return-1}function Zs(a,b){var c=Xs(a);return c[b]?c[b].ojKey:null}
Ws.prototype.tk=function(a,b,c,d,e,f){var h={source:this};h.operation=a;h.keys={row:b,column:c};h.indexes={row:d,column:e};h.silent=f;return h};
Ws.prototype.Ifa=function(a){var b,c,d,e=!1;c=!1;var f=[],h=[];for(b=0;b<a.length;b++){d=a[b];if(void 0!==d.moved){c=!0;d=this.tk("refresh",null,null);this.handleEvent("change",d);break}"added"===d.status&&(e=!0)}if(!c){for(b=0;b<a.length;b++)d=a[b],"deleted"===d.status&&(c=d.value,d=d.index,c=c.ojKey,f.push({row:c,column:-1}),h.push({row:d,column:-1}));0<f.length&&(d={source:this,operation:"delete",keys:f,indexes:h,silent:e},this.handleEvent("change",d));for(b=0;b<a.length;b++)d=a[b],"added"===d.status&&
(c=d.value,d=d.index,null==c.ojKey&&(c.ojKey=this.Xq.toString(),this.Xq++),c=c.ojKey,d=this.tk("insert",c,null,d,-1),this.handleEvent("change",d))}null!=this.kr&&(this.kr=this.data.slice())};Ws.prototype.ao=function(){return Xs(this).length};Ws.prototype.E_=function(){return this.pr};A("ArrayDataGridDataSource.prototype.getRowHeaderKey",{E_:Ws.prototype.E_});Ws.prototype.so=function(){return this.columns};A("ArrayDataGridDataSource.prototype.getColumns",{so:Ws.prototype.so});
Ws.prototype.getData=function(){return this.data};A("ArrayDataGridDataSource.prototype.getData",{getData:Ws.prototype.getData});function $s(a,b,c,d){this.Tb=a;this.le=b;this.B0=c;this.wi=d}t("ArrayHeaderSet",$s,w);$s.prototype.getData=function(a,b){if(null==this.wi)return null;w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return Ys(this.wi,this.B0,a)};A("ArrayHeaderSet.prototype.getData",{getData:$s.prototype.getData});
$s.prototype.getMetadata=function(a,b){if(null==this.wi)return null;w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");var c;c=this.wi;var d=this.B0,e;"row"===d?c={key:Zs(c,a)}:"column"===d?(e=Ys(c,d,a),c=null!=c.sortCriteria&&c.sortCriteria.key===e?{key:Ys(c,d,a),sortDirection:c.sortCriteria.direction}:{key:e}):c=void 0;return c};A("ArrayHeaderSet.prototype.getMetadata",{getMetadata:$s.prototype.getMetadata});
$s.prototype.getLevelCount=function(){return 0<this.getCount()?1:0};A("ArrayHeaderSet.prototype.getLevelCount",{getLevelCount:$s.prototype.getLevelCount});$s.prototype.getExtent=function(a,b){w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return{extent:1,more:{before:!1,after:!1}}};A("ArrayHeaderSet.prototype.getExtent",{getExtent:$s.prototype.getExtent});
$s.prototype.getDepth=function(a,b){w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return 1};A("ArrayHeaderSet.prototype.getDepth",{getDepth:$s.prototype.getDepth});$s.prototype.getCount=function(){return null==this.wi?0:Math.max(0,this.le-this.Tb)};A("ArrayHeaderSet.prototype.getCount",{getCount:$s.prototype.getCount});$s.prototype.getStart=function(){return this.Tb};A("ArrayHeaderSet.prototype.getStart",{getStart:$s.prototype.getStart});
function at(a,b,c,d,e){this.ha=a;this.Ja=b;this.ul=c;this.Zq=d;this.wi=e}t("ArrayCellSet",at,w);at.prototype.getData=function(a){var b,c,d;b=this;c=a.row;d=a.column;a={};Object.defineProperty(a,"data",{get:function(){var a=b.wi,f=a.columns[d];return Xs(a)[c][f]},set:function(a){var f=b.wi;Xs(f)[c][f.columns[d]]=a}});return a};A("ArrayCellSet.prototype.getData",{getData:at.prototype.getData});at.prototype.getMetadata=function(a){var b=this.wi,c=a.column;return{keys:{row:Zs(b,a.row),column:b.columns[c]}}};
A("ArrayCellSet.prototype.getMetadata",{getMetadata:at.prototype.getMetadata});at.prototype.getStart=function(a){return"row"==a?this.ha:"column"==a?this.ul:-1};A("ArrayCellSet.prototype.getStart",{getStart:at.prototype.getStart});at.prototype.getCount=function(a){return"row"===a?Math.max(0,this.Ja-this.ha):"column"===a?Math.max(0,this.Zq-this.ul):0};A("ArrayCellSet.prototype.getCount",{getCount:at.prototype.getCount});at.prototype.dl=function(){return this.ha};
A("ArrayCellSet.prototype.getStartRow",{dl:at.prototype.dl});at.prototype.cl=function(){return this.ul};A("ArrayCellSet.prototype.getStartColumn",{cl:at.prototype.cl});
w.sa("oj.ojAccordion",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{multiple:!1,expanded:null,beforeExpand:null,expand:null,beforeCollapse:null,collapse:null},_ComponentCreate:function(){this._super();this.element.addClass("oj-accordion oj-component").attr("role","group");this.options.expanded=this.HS(this.options.expanded);this.Pd()},Se:function(a,b,c){this.Te(b,c,{launcher:this.element.find(".oj-collapsible-header-icon").first()})},_destroy:function(){this.element.removeClass("oj-accordion oj-component").removeAttr("role");
this.element.children().removeClass("oj-accordion-collapsible");this.element.children(".oj-accordion-created").removeClass("oj-accordion-created").ojCollapsible("destroy")},_setOption:function(a,b,c){if("multiple"===a)!1==b&&!0==this.options.multiple&&this.element.children(".oj-expanded").first().siblings(".oj-collapsible").ojCollapsible("collapse",!1);else if("expanded"===a){this.Oea(b);return}this._super(a,b,c)},refresh:function(){this._super();this.Pd()},Pd:function(){this.kca();this._setOption("disabled",
this.options.disabled);this.lV=!0;this._setOption("expanded",this.options.expanded);this.lV=!1;this.Aj()},kca:function(){this.element.children(":oj-collapsible").each(function(){$(this).ojCollapsible("option","expandArea","header")});this.Xk=this.element.children().not(":oj-ojCollapsible").ojCollapsible({expandArea:"header"}).addClass("oj-accordion-created").end().addClass("oj-accordion-collapsible").attr("data-oj-internal",!0)},Aj:function(){var a={keydown:this.kq,ojbeforeexpand:this.r6,ojexpand:this.M8,
ojbeforecollapse:this.q6,ojcollapse:this.X6};this._off(this.Xk);this._on(this.Xk,a)},kq:function(a){if(!a.altKey&&!a.ctrlKey&&($(a.target).hasClass("oj-collapsible-header")||$(a.target).hasClass("oj-collapsible-header-icon"))){var b=$.ui.keyCode,c=this.Xk.not(".oj-disabled"),d=c.length,e=$(a.target).closest(".oj-collapsible"),f=c.index(e),h=!1;if(0<=f)switch(a.keyCode){case b.RIGHT:case b.DOWN:h=c[(f+1)%d];break;case b.LEFT:case b.UP:h=c[(f-1+d)%d];break;case b.HOME:h=c[0];break;case b.END:h=c[d-
1]}h&&(e&&$(e).trigger("ojfocusout"),$(h).trigger("ojfocus"),a.preventDefault())}},MS:function(a){return!this.options.multiple&&(a=$(a.target).closest(".oj-collapsible"),a.parent().is(":oj-ojAccordion"))?a.siblings(".oj-collapsible.oj-expanded").map(function(){return $(this).data("oj-ojCollapsible")}):$()},r6:function(a){if(!this.CB(a))return!0;var b,c=this,d;this.MS(a).each(function(){var e=this.element;d=c.Ns(e,$(a.target));e={header:e.find(".oj-collapsible-header"),content:e.find(".oj-collapsible-content")};
return b=this._trigger("beforeCollapse",a,e)});d||(d=c.Ns(null,$(a.target)));this.options.multiple||this._trigger("beforeExpand",a,d);return b},M8:function(a,b){if(this.CB(a)&&!this.DH){var c,d=this;this.MS(a).each(function(){this.collapse(!1,a,b);c=d.Ns(this.element,$(a.target))});c||(c=d.Ns(null,$(a.target)));this.options.multiple||this._trigger("expand",a,c);this.mL()}},q6:function(a,b){return this.CB(a)&&!this.options.multiple?this._trigger("beforeCollapse",a,this.VU(a,b)):!0},X6:function(a,b){if(!this.DH&&
this.CB(a)){var c=this.VU(a,b);this.options.multiple||this._trigger("collapse",a,c);this.mL()}},Ns:function(a,b){return{fromCollapsible:a,toCollapsible:b}},VU:function(a,b){var c;if(b.toCollapsible)c=b;else{if(a.originalEvent&&a.originalEvent.target){var d=$(a.originalEvent.target);d.hasClass("oj-collapsible")&&(c=this.Ns($(a.target),d))}c||(c=this.Ns($(a.target),null))}return c},CB:function(a){return $(a.target).is(this.Xk)},mL:function(){var a,b=[];this.Xk.each(function(c){$(this).ojCollapsible("option",
"expanded")&&(a=$(this).attr("id"),b.push(a?a:c))});qa(this.options.expanded,b)||this.option("expanded",b,{_context:{Ia:!0,kc:!0}})},HS:function(a){if(Array.isArray(a)){var b,c=[];this.element.children().each(function(d){(b=$(this).attr("id"))?-1!=a.indexOf(b)?c.push(b):-1!=a.indexOf(d)&&c.push(b):-1!=a.indexOf(d)&&c.push(d)});!this.options.multiple&&1<c.length&&(c=[c[c.length-1]]);return c}return null},Oea:function(a){this.lV||(a=this.HS(a));if(a){var b=this,c,d,e,f=0;this.Xk.each(function(h){c=
$(this);d=c.attr("id");e=!1;d?d==a[f]&&(e=!0):h==a[f]&&(e=!0);e&&f++;c.ojCollapsible("option","expanded")!==e&&(w.l.warn("JET Accordion: override collapsible "+h+" expanded setting"),b.DH=!0,c.ojCollapsible("option","expanded",e),b.DH=!1)})}this.mL()},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;var b=a.subId;a=a.index;if("number"!==typeof a||0>a||a>=this.Xk.length)return null;a=this.Xk[a];switch(b){case "oj-accordion-content":b="oj-collapsible-content";break;case "oj-accordion-header":b=
"oj-collapsible-header";break;case "oj-accordion-disclosure":case "oj-accordion-header-icon":b="oj-collapsible-disclosure";break;case "oj-accordion-collapsible":return a;default:return null}return $(a).ojCollapsible("getNodeBySubId",{subId:b})},getSubIdByNode:function(a){for(var b=-1,c=a;c;){b=Array.prototype.indexOf.call(this.Xk,c);if(-1!=b)break;c=c.parentElement}c=null;if(-1!=b)switch(a=(a=$(this.Xk[b]).ojCollapsible("getSubIdByNode",a))?a:{},a.subId){case "oj-collapsible-content":c="oj-accordion-content";
break;case "oj-collapsible-header":c="oj-accordion-header";break;case "oj-collapsible-disclosure":case "oj-collapsible-header-icon":c="oj-accordion-disclosure";break;default:c="oj-accordion-collapsible"}return c?{subId:c,index:b}:null}});w.Components.xa("ojAccordion","baseComponent",{properties:{expanded:{type:"Array"},multiple:{type:"boolean"}},methods:{refresh:{}},extension:{_widgetName:"ojAccordion"}});w.Components.register("oj-accordion",w.Components.getMetadata("ojAccordion"));
function dt(a,b,c,d,e){this.sE=a;this.Ea=b;this.FL=[];this.Vy=c;this.start=d<b.length?d:b.length-1;this.count=-1===e?b.length:Math.min(b.length,e)}t("CollectionNodeSet",dt,w);function et(a,b){ft(a).then(function(){b.success&&b.success()})}function ft(a){return new Promise(function(b){function c(e){e<d?gt(a,e,{success:function(a){null!==a?ft(a).then(function(){c(e+1)}):c(e+1)}}):b(void 0)}var d=a.getCount();c(0)})}
function gt(a,b,c){var d=a.Ea.at(b);if(a.Vy.yu(d).leaf)a.FL[b]=null,c.success(null);else{var e=ht(a.Vy,d),d=a.Vy.yu(d).key;it(a.Vy,e,0,-1,{success:function(d){a.FL[b]=d;c.success(d)}},d)}}dt.prototype.getParent=function(){return this.sE};A("CollectionNodeSet.prototype.getParent",{getParent:dt.prototype.getParent});dt.prototype.getStart=function(){return this.start};A("CollectionNodeSet.prototype.getStart",{getStart:dt.prototype.getStart});dt.prototype.getCount=function(){return this.count};
A("CollectionNodeSet.prototype.getCount",{getCount:dt.prototype.getCount});dt.prototype.getData=function(a){jt(this,a);return this.Ea.at(a).attributes};A("CollectionNodeSet.prototype.getData",{getData:dt.prototype.getData});function jt(a,b){if(b<a.start||b>a.start+a.count)throw"Out of range";}dt.prototype.getMetadata=function(a){jt(this,a);var b={};a=this.Ea.at(a);a=this.Vy.yu(a);b.key=a.key;b.leaf=a.leaf;b.depth=a.depth;return b};A("CollectionNodeSet.prototype.getMetadata",{getMetadata:dt.prototype.getMetadata});
dt.prototype.Cf=function(a){jt(this,a);return this.FL[a]};A("CollectionNodeSet.prototype.getChildNodeSet",{Cf:dt.prototype.Cf});function kt(a){a=a||{};this.Ny=a.root;this.Uga=a.childCollectionCallback;this.yu=a.parseMetadata;this.rr=null;this.Gu="none";this.Ed={};kt.o.constructor.call(this)}t("CollectionTreeDataSource",kt,w);kt.prototype.yu=function(a){return{key:a.idAttribute+"\x3d"+a.id}};H(kt,Rf,"oj.CollectionTreeDataSource");kt.prototype.Init=function(){kt.o.Init.call(this)};
A("CollectionTreeDataSource.prototype.Init",{Init:kt.prototype.Init});kt.prototype.getChildCount=function(a){var b=this.Ed[a];if(b&&0<b.length)return b.length;this.fM(a,{success:function(a){return a.length}});return-1};A("CollectionTreeDataSource.prototype.getChildCount",{getChildCount:kt.prototype.getChildCount});kt.prototype.fM=function(a,b){this.fetchChildren(a,null,{success:function(a){b.success(a.Ea)},error:b.error})};A("CollectionTreeDataSource.prototype.getChildCollection",{fM:kt.prototype.fM});
kt.prototype.fetchChildren=function(a,b,c){b=b||{};var d=b.start?b.start:0,e=b.count?b.count:-1;if(null===a)it(this,null,d,e,c,null);else{var f=this;lt(this,this.Ny,a,0).then(function(b){if(b){b=ht(f,b.Mo);try{it(f,b,d,e,c,a)}catch(k){c&&c.error&&c.error({status:k.message})}}else c&&c.error&&c.error(a)})}};A("CollectionTreeDataSource.prototype.fetchChildren",{fetchChildren:kt.prototype.fetchChildren});
kt.prototype.Y2=function(a,b,c){var d=0;c&&c.at&&(d=c.at);b=mt(this,b);a=nt(this,"insert",d,b,ot(this,null!=b&&0<b.length?b[b.length-1]:null,a));this.handleEvent("change",a)};kt.prototype.Z2=function(a,b,c){var d=0;c&&c.index&&(d=c.index);a=pt(this,a);for(var e in this.Ed)if(this.Ed.hasOwnProperty(e)&&e===a){this.Ed[a].off(null,null,this);delete this.Ed[a];break}b=nt(this,"delete",d,mt(this,b),null);this.handleEvent("change",b)};
kt.prototype.a3=function(a){var b;a:{for(b in this.Ed)if(this.Ed.hasOwnProperty(b))for(var c=this.Ed[b],d=0;d<c.length;d++)if(c.at(d)===a){b={index:d,Ea:c};break a}b=null}d=c=null;b&&(c=b.index,d=mt(this,b.Ea));a=nt(this,"update",c,d,ot(this,null!=d&&0<d.length?d[d.length-1]:null,a));this.handleEvent("change",a)};kt.prototype.L2=function(a){a=nt(this,"refresh",null,mt(this,a),null);this.handleEvent("refresh",a)};function ot(a,b,c){var d=new N;d.add(c);return new dt(b,d,a,0,1)}
function mt(a,b){var c=[],d=null,e=b;do{a:{d=void 0;for(d in a.Ed)if(a.Ed.hasOwnProperty(d)&&a.Ed[d]===e)break a;d=null}if(null!==d){d!==qt&&c.unshift(d);a:{var e=a,f=d,h=void 0;for(h in e.Ed)if(e.Ed.hasOwnProperty(h)){var k=e.Ed[h],l;b:{l=e;for(var m=f,n=k,p=n.length,q=0;q<p;q++){var r=pt(l,n.at(q));if(m===r){l=!0;break b}}l=!1}if(l){e=k;break a}}e=null}}}while(null!=d);return c}var qt="%!@ROOT%#@!";function pt(a,b){var c=b instanceof M?a.yu(b).key:b;return b?c:qt}
function rt(a,b,c){c.on(L.ADD,a.Y2,a);c.on(L.REMOVE,a.Z2,a);c.on(L.CHANGE,a.a3,a);c.on(L.SYNC,a.L2,a);a.Ed[pt(a,b)]=c}function ht(a,b){var c=!0,d=a.Ed[pt(a,b)];d||(c=!1,d=a.Uga(a.Ny,b),null!=d&&(st(a,d),rt(a,b,d)));return{Ea:d,BL:c}}function nt(a,b,c,d,e){return{source:a,operation:b,index:c,parent:d,data:e}}function it(a,b,c,d,e,f){null===b&&((b=a.Ed[pt(a,null)])?b={Ea:b,BL:!0}:(b={Ea:a.Ny,BL:!1},rt(a,null,a.Ny)));b&&tt(a,b,function(b){e.success&&e.success(new dt(f,b,a,c,d))},e.error)}
function ut(a,b,c){return new Promise(function(d){function e(b,c,k){b<c.length?c.at(b,{deferred:!0}).then(function(l){if(l){var m=a.yu(l);if(k===m.key){d(l);return}}b++;e(b,c,k)}):d(null)}e(0,b,c)})}function lt(a,b,c,d){return new Promise(function(e){ut(a,b,c).then(function(f){function h(a,f){if(a<k){var n=ht(f,b.at(a));n.Ea?tt(f,n,function(b){lt(f,b,c,d+1).then(function(b){b?e(b):(a++,h(a,f))})},null):(a++,h(a,f))}else e(null)}if(f)e({Mo:f,depth:d});else{var k=b.length;h(0,a)}})})}
function tt(a,b,c,d){b.BL?c(b.Ea):(a.rr&&"none"!==a.rr&&(b.Ea.oi=a.rr,b.Ea.GN=a.Gu),0<b.Ea.length||!cd(b.Ea)?c(b.Ea):b.Ea.fetch({success:function(a){c(a)},error:d}))}kt.prototype.fetchDescendants=function(a,b){var c=this;null===a?it(this,null,0,-1,{success:function(a){et(a,{success:function(){b.success&&b.success(a)}})}},null):lt(this,this.Ny,a,0).then(function(d){d&&(d=ht(c,d.Mo),it(c,d,0,-1,{success:function(a){et(a,{success:function(){b.success&&b.success(a)}})}},a))})};
A("CollectionTreeDataSource.prototype.fetchDescendants",{fetchDescendants:kt.prototype.fetchDescendants});kt.prototype.sort=function(a,b){var c=a.key,d=a.direction,e=!1;c!==this.rr&&(this.rr=c,e=!0);d!==this.Gu&&(this.Gu=d,e=!0);if(e){"none"===this.Gu&&(this.Ed={});for(var f in this.Ed)this.Ed.hasOwnProperty(f)&&st(this,this.Ed[f])}b&&b.success&&b.success()};A("CollectionTreeDataSource.prototype.sort",{sort:kt.prototype.sort});
function st(a,b){b.comparator=a.rr;b.sortDirection="ascending"===a.Gu?1:-1;b.sort()}kt.prototype.getSortCriteria=function(){return{key:this.rr,direction:this.Gu}};A("CollectionTreeDataSource.prototype.getSortCriteria",{getSortCriteria:kt.prototype.getSortCriteria});kt.prototype.move=function(){w.i.Yb()};A("CollectionTreeDataSource.prototype.move",{move:kt.prototype.move});kt.prototype.moveOK=function(){return"invalid"};A("CollectionTreeDataSource.prototype.moveOK",{moveOK:kt.prototype.moveOK});
kt.prototype.getCapability=function(a){return"sort"===a?"default":"move"===a?"none":"batchFetch"===a||"fetchDescendants"===a?"disable":null};A("CollectionTreeDataSource.prototype.getCapability",{getCapability:kt.prototype.getCapability});function Z(a){if(!(a instanceof Sf))throw Error(Tf._ERR_DATA_INVALID_TYPE_SUMMARY+"\n"+Tf._ERR_DATA_INVALID_TYPE_DETAIL);this.tc=a;this.W=0;this.sh=-1;this.Vl=[];this.Init()}t("PagingTableDataSource",Z,w);H(Z,Sf,"oj.PagingTableDataSource");Z.prototype.Init=function(){Z.o.Init.call(this)};
A("PagingTableDataSource.prototype.Init",{Init:Z.prototype.Init});Z.prototype.getWrappedDataSource=function(){return this.tc};A("PagingTableDataSource.prototype.getWrappedDataSource",{getWrappedDataSource:Z.prototype.getWrappedDataSource});Z.prototype.getPage=function(){return"loadMore"==this.Wv?0:vt(this)};A("PagingTableDataSource.prototype.getPage",{getPage:Z.prototype.getPage});
Z.prototype.setPage=function(a,b){b=b||{};a=parseInt(a,10);try{Z.o.handleEvent.call(this,Vf.BEFOREPAGE,{page:a,previousPage:vt(this)})}catch(c){return Promise.reject(null)}var d=vt(this);this.Pa=null!=b.pageSize?b.pageSize:this.Pa;b.pageSize=this.Pa;b.startIndex=a*this.Pa;this.W=null==b.startIndex?this.W:b.startIndex;this.Wv="page";var e=this;return new Promise(function(a,c){0<e.Pa?e.tc.fetch(b).then(function(b){b.startIndex=0;0<b.data.length?wt(e,e.W+b.data.length-1,!0):wt(e,-1,!0);Z.o.handleEvent.call(e,
Vf.PAGE,{page:vt(e),previousPage:d});a(null)},function(){e.W=d*e.Pa;c(null)}):a(null)})};A("PagingTableDataSource.prototype.setPage",{setPage:Z.prototype.setPage});Z.prototype.getStartItemIndex=function(){return"loadMore"==this.Wv?0:this.W};A("PagingTableDataSource.prototype.getStartItemIndex",{getStartItemIndex:Z.prototype.getStartItemIndex});Z.prototype.getEndItemIndex=function(){return this.sh};A("PagingTableDataSource.prototype.getEndItemIndex",{getEndItemIndex:Z.prototype.getEndItemIndex});
Z.prototype.getPageCount=function(){var a=this.totalSize();return-1==a?-1:Math.ceil(a/this.Pa)};A("PagingTableDataSource.prototype.getPageCount",{getPageCount:Z.prototype.getPageCount});Z.prototype.at=function(a,b){return this.tc.at(a,b)};A("PagingTableDataSource.prototype.at",{at:Z.prototype.at});
Z.prototype.fetch=function(a){a=a||{};if(null==a.startIndex)return this.setPage(this.getPage());this.Wv="loadMore";this.W=null==a.startIndex?this.W:a.startIndex;var b=null==a.pageSize?this.Pa:a.pageSize;null==this.Pa&&(this.Pa=b);a.pageSize=b;a.startIndex=this.W;var c=this;return new Promise(function(d,e){0<b?c.tc.fetch(a).then(function(a){0<a.data.length?wt(c,c.W+a.data.length-1,!0):wt(c,-1,!0);d(a)},function(a){e(a)}):d(null)})};A("PagingTableDataSource.prototype.fetch",{fetch:Z.prototype.fetch});
Z.prototype.get=function(a,b){return this.tc.get(a,b)};A("PagingTableDataSource.prototype.get",{get:Z.prototype.get});Z.prototype.getCapability=function(a){return this.tc.getCapability(a)};A("PagingTableDataSource.prototype.getCapability",{getCapability:Z.prototype.getCapability});
Z.prototype.on=function(a,b){var c=this,d=this.tc;if(a==R.SYNC){var e=function(a){a.startIndex!=c.W&&(c.W=a.startIndex);0<a.data.length?wt(c,a.startIndex+a.data.length-1,!0):wt(c,-1,!0);if("page"==c.Wv){var d={};w.Nb.Fd(d,a);d.startIndex=0;b(d)}else b(a)};this.Vl.push({eventType:a,eventHandler:b,wrappedEventHandler:e});d.on(a,e)}else if(a==R.ADD||a==R.REMOVE||a==R.CHANGE)e=function(a){xt(c,a,b)},this.Vl.push({eventType:a,eventHandler:b,wrappedEventHandler:e}),d.on(a,e);else if(a==R.REFRESH||a==R.RESET)e=
function(a){c.W=0;b(a)},this.Vl.push({eventType:a,eventHandler:b,wrappedEventHandler:e}),d.on(a,e);else if(a==Vf.PAGE||a==Vf.BEFOREPAGE||a==Vf.PAGECOUNT)Z.o.on.call(this,a,b);else d.on(a,b)};A("PagingTableDataSource.prototype.on",{on:Z.prototype.on});
Z.prototype.off=function(a,b){a!=Vf.PAGE&&a!=Vf.PAGECOUNT||Z.o.off.call(this,a,b);var c=this.tc;if(null!=this.Vl){var d=this.Vl.length,e;for(e=0;e<d;e++)if(this.Vl[e].eventType==a&&this.Vl[e].eventHandler==b){c.off(a,this.Vl[e].wrappedEventHandler);this.Vl.splice(e,1);break}}c.off(a,b)};A("PagingTableDataSource.prototype.off",{off:Z.prototype.off});Z.prototype.sort=function(a){null==a?a=this.sortCriteria:this.sortCriteria=a;return this.tc.sort(a)};A("PagingTableDataSource.prototype.sort",{sort:Z.prototype.sort});
Z.prototype.totalSize=function(){return this.tc.totalSize()};A("PagingTableDataSource.prototype.totalSize",{totalSize:Z.prototype.totalSize});Z.prototype.totalSizeConfidence=function(){return this.tc.totalSizeConfidence()};A("PagingTableDataSource.prototype.totalSizeConfidence",{totalSizeConfidence:Z.prototype.totalSizeConfidence});function vt(a){return 0<a.Pa?Math.floor(a.W/a.Pa):0}
function xt(a,b,c){var d=[],e;for(e=0;e<b.indexes.length;e++){var f=b.indexes[e];void 0!==f&&("page"==a.Wv&&(f-=a.W),(0>f||f>=a.W+a.Pa)&&d.push(e))}if(0<d.length)for(d.sort(function(a,b){return a-b}),e=d.length-1;0<=e;e--)b.data.splice(d[e],1),b.indexes.splice(d[e],1),b.keys.splice(d[e],1);0<b.indexes.length&&wt(a,b.indexes[b.indexes.length-1],!1);b.startIndex=a.W;c(b)}function wt(a,b,c){a.sh=c?b:b>a.sh?b:a.sh;b=a.totalSize();0<b&&(a.sh=a.sh>b-1?b-1:a.sh)}
var Wf={ADD:"add",REMOVE:"remove",RESET:"reset",SYNC:"sync",REFRESH:"refresh",SORT:"sort"};t("PagingTableDataSource.EventType",Wf,w);function yt(){}t("PagingModel",yt,w);yt.prototype.getPage=function(){};A("PagingModel.prototype.getPage",{getPage:yt.prototype.getPage});yt.prototype.setPage=function(){};A("PagingModel.prototype.setPage",{setPage:yt.prototype.setPage});yt.prototype.getStartItemIndex=function(){};A("PagingModel.prototype.getStartItemIndex",{getStartItemIndex:yt.prototype.getStartItemIndex});
yt.prototype.getEndItemIndex=function(){};A("PagingModel.prototype.getEndItemIndex",{getEndItemIndex:yt.prototype.getEndItemIndex});yt.prototype.getPageCount=function(){};A("PagingModel.prototype.getPageCount",{getPageCount:yt.prototype.getPageCount});yt.prototype.totalSize=function(){};A("PagingModel.prototype.totalSize",{totalSize:yt.prototype.totalSize});yt.prototype.totalSizeConfidence=function(){};A("PagingModel.prototype.totalSizeConfidence",{totalSizeConfidence:yt.prototype.totalSizeConfidence});
var Vf={BEFOREPAGE:"beforePage",PAGE:"page",PAGECOUNT:"pageCount"};t("PagingModel.EventType",Vf,w);
w.sa("oj.ojLegend",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{categoryFilter:null,categoryHighlight:null,drill:null},ue:function(a,b,c){return dvt.Legend.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-legend-section"==b?b="section"+this.pp(a.indexPath):"oj-legend-item"==b?(b="section"+this.pp(a.sectionIndexPath),b+=":item["+a.itemIndex+"]"):"oj-legend-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};if(0<a.indexOf(":item")){var c=a.indexOf(":item"),d=a.substring(0,c);
a=a.substring(c);b.subId="oj-legend-item";b.sectionIndexPath=this.Si(d);b.itemIndex=this.mh(a)}else 0==a.indexOf("section")?(b.subId="oj-legend-section",b.indexPath=this.Si(a)):"tooltip"==a&&(b.subId="oj-legend-tooltip");return b},Md:function(){var a=this._super();a.push("oj-legend");return a},ug:function(){var a=this._super();a["oj-legend"]={path:"textStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-legend-title"]={path:"titleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-legend-section-title"]={path:"_sectionTitleStyle",
property:"CSS_TEXT_PROPERTIES"};return a},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.LEGEND"]=a.componentName;return b},vg:function(){return["categoryFilter","categoryHighlight","drill"]},Th:function(a){var b=a.type;"categoryHide"===b||"categoryShow"===b?(this._trigger("categoryFilter",null,{category:a.category,type:"categoryHide"===b?"out":"in"}),this.Ec("hiddenCategories",a.hiddenCategories)):"categoryHighlight"===b?(this._trigger("categoryHighlight",null,{categories:a.categories,
type:a.categories&&0<a.categories.length?"on":"off"}),this.Ec("highlightedCategories",a.categories)):"drill"===b?this._trigger("drill",null,{id:a.id}):this._super(a)},Vi:function(){null==this.options._resources&&(this.options._resources={});var a=this.options._resources;a.overviewGrippy=w.T.Fa("resources/internal-deps/dvt/chart/drag_horizontal.png");a.closedEnabled="oj-legend-section-close-icon";a.closedOver="oj-legend-section-close-icon oj-hover";a.closedDown="oj-legend-section-close-icon oj-active";
a.openEnabled="oj-legend-section-open-icon";a.openOver="oj-legend-section-open-icon oj-hover";a.openDown="oj-legend-section-open-icon oj-active"},ff:function(){this._super();this.element.attr("role")||this.element.attr("tabIndex",null)},getTitle:function(){return this.ca.getAutomation().getTitle()},getSection:function(a){var b=this.ca.getAutomation().getSection(a);if(b){var c=this;this.Sf(b);b.getSection=function(a){(a=b.sections?b.sections[a]:null)&&c.Sf(a);return a};b.getItem=function(a){(a=b.items?
b.items[a]:null)&&c.Sf(a);return a}}return b},getItem:function(a){a=this.ca.getAutomation().getItem(a);this.Sf(a);return a},getPreferredSize:function(a,b){var c=this.ca.getPreferredSize(this.options,a,b);return{width:c.getWidth(),height:c.getHeight()}},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-legend-tooltip"!==a.subId?a:null},lh:function(){return{sections:["items"]}}});
w.Components.xa("ojLegend","dvtBaseComponent",{properties:{drilling:{type:"string"},halign:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},hideAndShowBehavior:{type:"string"},highlightedCategories:{type:"Array\x3cstring\x3e"},hoverBehavior:{type:"string"},hoverBehaviorDelay:{type:"number|string"},orientation:{type:"string"},scrolling:{type:"string"},sections:{type:"Array\x3cobject\x3e"},symbolHeight:{type:"number"},symbolWidth:{type:"number"},textStyle:{type:"string"},title:{type:"string"},
titleHalign:{type:"string"},titleStyle:{type:"string"},valign:{type:"string"}},methods:{getContextByNode:{},getItem:{},getPreferredSize:{},getSection:{},getTitle:{}},extension:{_widgetName:"ojLegend"}});w.Components.register("oj-legend",w.Components.getMetadata("ojLegend"));function zt(a){this.Ea=a;this.current=0;this.Init();this.yf=[];this.yK(10)}t("CollectionPagingDataSource",zt,w);H(zt,Qf,"oj.CollectionPagingDataSource");zt.prototype.Init=function(){zt.o.Init.call(this)};
A("CollectionPagingDataSource.prototype.Init",{Init:zt.prototype.Init});zt.prototype.oI=function(){return this.mj()?this.wm:this.totalSize()-this.current};zt.prototype.vq=function(){this.yf=Array(this.oI());var a=this;return Dc(this.Ea,this.current,this.current+this.yf.length).then(function(b){for(var c=0;c<b.length;c++)a.yf[c]=b[c];a.ax();a.sh=a.W+a.yf.length-1})};zt.prototype.ax=function(){if(void 0!==this.Oj){this.Oj.removeAll();for(var a=0;a<this.yf.length;a++)this.Oj.push(w.Ga.map(this.yf[a]))}};
zt.prototype.Em=function(){return this.yf};A("CollectionPagingDataSource.prototype.getWindow",{Em:zt.prototype.Em});zt.prototype.Wx=function(){void 0===this.Oj&&(this.Oj=ko.observableArray(),this.ax());return this.Oj};A("CollectionPagingDataSource.prototype.getWindowObservable",{Wx:zt.prototype.Wx});zt.prototype.getPage=function(){return this.Fc};A("CollectionPagingDataSource.prototype.getPage",{getPage:zt.prototype.getPage});
zt.prototype.setPage=function(a,b){b=b||{};a=parseInt(a,10);try{zt.o.handleEvent.call(this,Vf.BEFOREPAGE,{page:a,previousPage:this.Fc})}catch(c){return Promise.reject(null)}this.pageSize=null!=b.pageSize?b.pageSize:this.pageSize;b.startIndex=a*this.pageSize;var d=this.Fc;this.Fc=a;this.W=b.startIndex;var e=this;return new Promise(function(a,c){e.we(b).then(function(){zt.o.handleEvent.call(e,Vf.PAGE,{page:e.Fc,previousPage:d});a(null)},function(){e.Fc=d;e.W=e.Fc*e.pageSize;c(null)})})};
A("CollectionPagingDataSource.prototype.setPage",{setPage:zt.prototype.setPage});zt.prototype.getStartItemIndex=function(){return this.W};A("CollectionPagingDataSource.prototype.getStartItemIndex",{getStartItemIndex:zt.prototype.getStartItemIndex});zt.prototype.getEndItemIndex=function(){return this.sh};A("CollectionPagingDataSource.prototype.getEndItemIndex",{getEndItemIndex:zt.prototype.getEndItemIndex});zt.prototype.getPageCount=function(){var a=this.totalSize();return-1==a?-1:Math.ceil(a/this.pageSize)};
A("CollectionPagingDataSource.prototype.getPageCount",{getPageCount:zt.prototype.getPageCount});zt.prototype.fetch=function(a){var b=a||{};if(void 0!==b.pageSize&&void 0!==b.startIndex){if(!this.mj())return At(this,null),Promise.resolve();this.wm=b.startIndex+b.pageSize;var c=this;return this.vq().then(function(){At(c,null)})}return this.we(a)};A("CollectionPagingDataSource.prototype.fetch",{fetch:zt.prototype.fetch});
zt.prototype.we=function(a){var b=a||{};void 0!==b.startIndex&&(this.current=b.startIndex);void 0!==b.pageSize&&(this.wm=this.pageSize=b.pageSize);var c=this;return new Promise(function(a){try{c.Ea.fetch({success:function(){c.vq().then(function(){At(c,b);a({data:c.Em(),startIndex:c.current})})}})}catch(e){c.vq().then(function(){At(c,b);a({data:c.Em(),startIndex:c.current})})}})};
function At(a,b){var c=b||{};c.silent||a.handleEvent("sync",{data:a.Em(),startIndex:a.current});c.success&&c.success()}zt.prototype.handleEvent=function(a,b){return zt.o.handleEvent.call(this,a,b)};zt.prototype.mj=function(){return this.current+this.wm<this.totalSize()};zt.prototype.yK=function(a){this.wm=this.pageSize=a};zt.prototype.size=function(){var a=this.Em();return a?a.length:0};A("CollectionPagingDataSource.prototype.size",{size:zt.prototype.size});zt.prototype.totalSize=function(){return this.Ea.length};
A("CollectionPagingDataSource.prototype.totalSize",{totalSize:zt.prototype.totalSize});zt.prototype.totalSizeConfidence=function(){return"actual"};A("CollectionPagingDataSource.prototype.totalSizeConfidence",{totalSizeConfidence:zt.prototype.totalSizeConfidence});zt.prototype.getCapability=function(){return null};A("CollectionPagingDataSource.prototype.getCapability",{getCapability:zt.prototype.getCapability});function nr(a){this.ga=a}t("ListViewDndContext",nr,w);H(nr,x,"oj.ListViewDndContext");
function Bt(a,b){var c=a.ga.Dc("dnd");return null!=c&&c[b]?c[b].items:null}function Ct(a){return"enabled"==Bt(a,"reorder")}function Dt(){return"oj-listview-drag-handle"}g=nr.prototype;g.xe=function(a){return this.ga.Mi(a)};function Et(a){var b,c,d,e;b=[];if(a.ga.tb())for(c=a.ga.Dc("selection"),d=0;d<c.length;d++)e=a.ga.jd(c[d]),null==e||a.ga.gh($(e))||b.push(e);else e=Ft(a),null!=e&&b.push(e);null!=a.Yq&&0<a.Yq.length&&-1==b.indexOf(a.Yq.get(0))&&b.push(a.Yq.get(0));return b}
function Ft(a){return null==a.ga.t?null:a.ga.t.elem[0]}g.Wq=function(a){var b;$(a).hasClass(this.ga.fg())||(a=a.firstElementChild);a=$(a).find("."+Dt());null!=a&&0<a.length&&(b=a.attr("aria-labelledby"),null==b?a.attr("aria-labelledby",this.ga.Gp("instr")):a.attr("aria-labelledby",b+" "+this.ga.Gp("instr")),this.ga.ii()&&a.attr("draggable","true"))};function pr(a){var b;b=a.find("."+Dt());if(null!=b&&0<b.length)return!0;a.addClass("oj-draggable");return!1}
function rr(a,b){var c,d,e;if(null!=Bt(a,"drag")||Ct(a)){c=Dt();if(b.hasClass(c))d=$(b);else{c=a.xe(b);if(null!=c&&(e=pr(c)))return;e=Ft(a);null!=e&&(null!=c&&c[0]==e?d=c:$(e).removeClass("oj-draggable"))}null!=d&&d.attr("draggable",!0)}}function qr(a,b){var c;if(null!=Bt(a,"drag")||Ct(a))c=Dt(),c=b.hasClass(c)?$(b):a.xe(b),null!=c&&c.removeAttr("draggable")}
g.pj=function(a,b,c,d){var e;if(a="drag"===a?Bt(this,"drag"):Bt(this,"drop"))if((b=a[b])&&"function"==typeof b)try{c.dataTransfer=c.originalEvent.dataTransfer,e=b(c,d)}catch(f){w.l.error("Error: "+f)}else return-1;return e};
g.NI=function(a){var b,c,d;b=Bt(this,"drag");if(null!=b||Ct(this))if(c=null!=b?b.dataTypes:"text/ojlistview-items-data",$(a.target).hasClass(Dt())?(d=[],d.push(this.xe(a.target)[0])):d=Et(this),0<d.length){if(null==b&&1<d.length)return!1;this.Jm=d;this.QD=$(d[0]);b=d;var e;d=[];var f;for(e=0;e<b.length;e++)(f=this.ga.kT(b[e]))&&(f.innerHTML&&f.tagName&&"LI"==f.tagName?d.push(f.innerHTML):d.push(f));if(0<d.length){var h;e=a.originalEvent.dataTransfer;f=JSON.stringify(d);if("string"==typeof c)e.setData(c,
f);else if(c)for(h=0;h<c.length;h++)e.setData(c[h],f);e.setData("text/ojlistview-dragsource-id",this.ga.element.get(0).id);c=a.originalEvent;var k,l;e=Number.MAX_VALUE;var m,n,p;h=f=0;k=c.target;if(1<b.length){k=$(document.createElement("ul"));k.get(0).className=this.ga.element.get(0).className;k.addClass("oj-listview-drag-image").css({width:this.ga.element.css("width"),height:this.ga.element.css("height")});for(l=0;l<b.length;l++)e=Math.min(e,b[l].offsetTop);for(l=0;l<b.length;l++)m=b[l].offsetTop-
e,n=b[l].offsetWidth,p=$(b[l].cloneNode(!0)),p.removeClass("oj-selected oj-focus oj-hover").css({position:"absolute",top:m,width:n}),k.append(p)}else $(k).hasClass(Dt())&&(f=Math.max(0,k.offsetLeft-b[0].offsetLeft)+k.offsetWidth/2,h=k.offsetTop+k.offsetHeight/2),p=$(b[0].cloneNode(!0)),p.removeClass("oj-selected oj-focus oj-hover").addClass("oj-drag"),k=$(document.createElement("ul")),k.get(0).className=this.ga.element.get(0).className,k.addClass("oj-listview-drag-image").css({width:this.ga.element.css("width"),
height:2*b[0].offsetHeight}).append(p);$("body").append(k);this.UD=k;c.dataTransfer.setDragImage(k.get(0),f,h);b={items:d}}else b=null;if(b){if(a=this.pj("drag","dragStart",a,b),-1!==a)return a}else return!1}};g.vA=function(){null!=this.UD&&(this.UD.remove(),this.UD=null)};
g.II=function(a){var b;if(null!=this.QD&&null!=this.Jm)for(this.QD.find("."+Dt()).removeAttr("draggable"),this.QD.removeClass("oj-drag oj-draggable").removeAttr("draggable"),b=0;b<this.Jm.length;b++)$(this.Jm[b]).removeClass("oj-listview-drag-item");Gt(this);this.vA();this.pj("drag","dragEnd",a);this.QD=this.UD=null};
g.IJ=function(a){var b,c;b=Bt(this,"drop");if(Ct(this)&&null==b)return!0;if(b&&b.dataTypes)for(b=b.dataTypes,b="string"==typeof b?[b]:b,a=a.originalEvent.dataTransfer.types,c=0;c<a.length;c++)if(0<=b.indexOf(a[c]))return!0;return!1};g.qj=function(a,b,c){a=this.pj("drop",a,b,c);(void 0===a||-1===a)&&this.IJ(b)&&b.preventDefault();return a};
function Ht(a,b){var c;null==a.ig&&(c=$(b.get(0).cloneNode(!1)),c.addClass("oj-drop").removeClass("oj-drag oj-draggable oj-hover oj-focus oj-selected").css({display:"block",height:b.outerHeight()}),a.ig=c);return a.ig}function It(a){null!=a.Ff&&-1===a.ju&&a.Ff.children("."+a.ga.Rd()).removeClass("oj-drop")}function Jt(a){null!=a.Ff&&a.Ff.hasClass("oj-listview-no-data-message")&&(a.Ff.removeClass("oj-drop"),a.Ff.get(0).textContent=a.ga.oT())}
function Gt(a){null!=a.ig&&(a.ig.css("height","0"),a.ig.remove(),a.ig=null);Jt(a);It(a)}g.JI=function(a){var b;b=this.xe(a.target);a=this.qj("dragEnter",a,{item:b.get(0)});if(-1!=a)return a};function Kt(a,b){null!=a.Ff&&a.Ff.removeClass("oj-valid-drop oj-invalid-drop");a.Ff=b;a.Ff.addClass("oj-valid-drop")}function Lt(a,b,c){var d;d=b.attr("aria-label");null==d&&(d=b.text());b=a.ga.A.r("accessibleReorder"+c.charAt(0).toUpperCase()+c.substr(1)+"Item",{item:d});a.ga.Ee(b)}
function Mt(a){null==a.X0&&a.ga.ii()&&(a.ga.element.find("ul."+a.ga.Ef()).each(function(){$(this).attr("oldMaxHeight",$(this).css("maxHeight").toString());$(this).css("maxHeight",1E4)}),a.X0="adjusted")}function Nt(a){a.ga.ii()&&a.ga.element.find("ul."+a.ga.Ef()).each(function(){$(this).css("maxHeight",parseInt($(this).attr("oldMaxHeight"),10));$(this).removeAttr("oldMaxHeight")});a.X0=null}
g.MI=function(a){var b,c,d,e;if(null!=Bt(this,"drop")||Ct(this)){Mt(this);if(null!=this.Jm&&"none"!=$(this.Jm[0]).css("display")){b=$(this.Jm[0]);c=Ht(this,b);for(a=0;a<this.Jm.length;a++)$(this.Jm[a]).addClass("oj-listview-drag-item");c.insertBefore(b);this.ju=c.index()}else b=this.xe(a.target),null!=b&&0<b.length?(d=this.qj("dragOver",a,{item:b.get(0)}),-1===d&&Ct(this)||!1===d||a.isDefaultPrevented()?(b.hasClass(this.ga.fg())?(It(this),b.hasClass("oj-drop")||(c=Ht(this,b),e=b.index(),null==this.ju||
this.ju<e?(c.insertAfter(b),this.iu="after"):(c.insertBefore(b),this.iu="before"),Lt(this,b,this.iu),Kt(this,b),this.ju=c.index())):(Gt(this),b.children("."+this.ga.Rd()).addClass("oj-drop"),Kt(this,b),this.ju=-1,this.iu="inside",Lt(this,b,this.iu)),a.preventDefault()):$(a.target).hasClass(this.ga.Ef())||(b.addClass("oj-invalid-drop"),Gt(this))):(b=this.ga.element.children(".oj-listview-no-data-message"),null!=b&&0<b.length&&(b.addClass("oj-drop"),b.get(0).textContent="",Kt(this,b),a.preventDefault()));
return d}};g.tB=function(a,b){var c,d;c=b.getBoundingClientRect();d=a.originalEvent;return d.clientX>=c.left&&d.clientX<c.right&&d.clientY>=c.top&&d.clientY<c.bottom};g.KI=function(a){var b,c;if(null!=this.Ff&&(b=this.xe(a.target),null!=b&&0<b.length?(b.removeClass("oj-valid-drop oj-invalid-drop"),c=this.qj("dragLeave",a,{item:b.get(0)}),this.tB(a,a.currentTarget)||(Gt(this),Nt(this))):this.tB(a,a.currentTarget)||Jt(this),-1!=c))return c};
g.OI=function(a){var b,c;if(null!=this.Ff&&(b=a.originalEvent.dataTransfer.getData("text/ojlistview-dragsource-id"),c=this.Ff.hasClass("oj-listview-no-data-message")?{}:{item:this.Ff.get(0),position:this.iu},Ct(this)&&b===this.ga.element.get(0).id?c.reorder=!0:c.reorder=!1,b=this.qj("drop",a,c),c.reorder&&(c.items=this.Jm,c.reference=c.item,this.ga.ih("reorder",a,c),a.preventDefault()),null!=this.Ff&&this.Ff.removeClass("oj-valid-drop"),Gt(this),Nt(this),this.vA(),this.Ff=null,this.ju=-1,this.iu=
null,-1!==b))return b};
function or(a,b){var c,d,e;Ct(a)&&(void 0==b&&(b=a.ga.Dc("contextMenu")),null!=b&&(null==a.Ai&&(a.Ai=[]),c=$(b),d=c.find("[data-oj-command]"),e=[],d.each(function(){var b,c;0===$(this).children("a").length?0==$(this).attr("data-oj-command").indexOf("oj-listview-")&&(b=$(this).attr("data-oj-command").substring(12),c=a.Ag(b),c.get(0).className=$(this).get(0).className,$(this).replaceWith(c)):(b=$(this).attr("data-oj-command"),"pasteBefore"==b?b="paste-before":"pasteAfter"==b&&(b="paste-after"));null!=
b&&e.push(b)}),a.Ai=e,0<e.length&&(c.data("oj-ojMenu")&&c.ojMenu("refresh"),c.on("ojbeforeopen",a.z$.bind(a)),c.on("ojselect",a.vh.bind(a)))))}g.Ag=function(a){return"paste-before"===a?this.Xd("pasteBefore"):"paste-after"===a?this.Xd("pasteAfter"):this.Xd(a)};g.Xd=function(a){var b=$("\x3cli\x3e\x3c/li\x3e");b.attr("data-oj-command",a);b.append(this.Cv(a));return b};g.Cv=function(a){a="label"+a.charAt(0).toUpperCase()+a.slice(1);return $('\x3ca href\x3d"#"\x3e\x3c/a\x3e').text(this.ga.A.r(a))};
g.pw=function(a){var b;null!=this.Ij&&$(this.Ij).removeClass("oj-listview-cut");b=Et(this);$(b).addClass("oj-listview-cut");this.Ij=b;this.ga.ih("cut",a,{items:b})};function Ot(a,b){var c;null!=a.Ij&&$(a.Ij).removeClass("oj-listview-cut");c=Et(a);a.Ij=c;a.ga.ih("copy",b,{items:c})}g.qw=function(a,b,c){this.ga.ih("paste",a,{item:b.get(0)});$(this.Ij).removeClass("oj-listview-cut");this.ga.ih("reorder",a,{items:this.Ij,position:c,reference:b.get(0)});this.Ij=null};
g.vh=function(a,b){if(null!=this.Yq)switch(b.item.attr("data-oj-command")){case "cut":this.pw(a);break;case "copy":Ot(this,a);break;case "paste":var c=!0;case "pasteBefore":var d=!0;case "pasteAfter":var e="after";c?e="inside":d&&(e="before");this.qw(a,this.Yq,e);this.Yq=null}};function Pt(a,b,c){null!=a.Ai&&("paste-before"==c?c="pasteBefore":"paste-after"==c&&(c="pasteAfter"),b.find("[data-oj-command\x3d'"+c+"']").removeClass("oj-disabled"))}
g.z$=function(a,b){var c,d;c=$(a.target);c.find("[data-oj-command]").addClass("oj-disabled");d=b.openOptions.launcher;null==d||null==this.Ai||0==this.Ai.length?c.ojMenu("refresh"):(d.children().first().hasClass(this.ga.Rd())?null!=this.Ij&&Pt(this,c,"paste"):(Pt(this,c,"cut"),Pt(this,c,"copy"),null!=this.Ij&&(Pt(this,c,"paste-before"),Pt(this,c,"paste-after"))),c.ojMenu("refresh"),this.Yq=d)};
g.dz=function(a){var b,c;if(!Ct(this)||null==this.Ai||0==this.Ai.length)return!1;if(a.ctrlKey||a.metaKey){b=a.keyCode;if(88===b&&-1<this.Ai.indexOf("cut"))return this.pw(a),!0;if(67===b&&-1<this.Ai.indexOf("copy"))return Ot(this,a),!0;if(86===b&&null!=this.Ij&&(b=$(Ft(this)),b.children().first().hasClass(this.ga.Rd())?-1<this.Ai.indexOf("paste")&&(c="inside"):-1<this.Ai.indexOf("paste-before")?c="before":-1<this.Ai.indexOf("paste-after")&&(c="after"),null!=c))return this.qw(a,b,c),!0}return!1};
function Rt(a,b,c){function d(b,d,e,f,h){!b||f.EN(e,d,b)||b.readOnly||(e=h?b.value:c?c(e,d,b,function(a){return w.yd.TC(d,a,b.type)}):w.yd.TC(d,e,b.type),a[d]=e)}this.Tj=function(c){var l=c.properties;if(l){var m=this.O8=new wf(a,b);e.setAttribute=a.setAttribute;e.removeAttribute=a.removeAttribute;a.setAttribute=function(a,b){n(a,b,e.setAttribute,!1)};a.removeAttribute=function(a){n(a,null,e.removeAttribute,!0)};var n=function(b,c,e,f){b=b.toLowerCase();var h=a.getAttribute(b);e.apply(a,arguments);
var k=a.getAttribute(b);k!==h&&(h=w.yd.yL(b),d(l[h],h,k,m,f))};c=Object.keys(l);f=!0;try{c.forEach(function(b){var c=w.yd.Cu(b),e=a.hasAttribute(c),f=l[b];e&&(c=a.getAttribute(c),d(f,b,c,m,!1));if(!e||f.readOnly)try{h=!0,a[b]=f.value}finally{h=!1}}),a.classList.add("oj-complete")}finally{f=!1}}return this};this.zia=function(){return f};this.CM=function(){return h};this.HE=function(a){this.O8.HE();var b=Object.keys(e),c;for(c=0;c<b.length;c++){var d=b[c];a[d]=e[d]}e={}};var e={},f,h}
ko.bindingHandlers._ojNodeStorage_={init:function(){return{controlsDescendantBindings:!0}}};
ko.bindingHandlers._ojSlot_={init:function(a,b,c,d,e){ko.utils.domNodeDisposal.addDisposeCallback(a,function(b){if(b=b.__oj_nodestorage)for(var c;c=ko.virtualElements.firstChild(a);)null!=c.__oj_slots&&b.appendChild(c)}.bind(null,e));d=e.__oj_slots;b=b();c=ko.utils.unwrapObservable;e=c(b.name)||"";var f=c(b.index);if(d=null!=f?[d[e][f]]:d[e]){for(e=0;e<d.length;e++)d[e].__oj_slots=c(b.slot)||"";ko.virtualElements.setDomNodeChildren(a,d);return{controlsDescendantBindings:!0}}}};
ko.virtualElements.allowedBindings._ojSlot_=!0;
w.jG.tL({nodeHasBindings:function(a,b){return b||1===a.nodeType&&w.pe.iG(a.nodeName.toLowerCase())},getBindingAccessors:function(a,b,c){if(1===a.nodeType&&(a=a.nodeName.toLowerCase(),w.pe.iG(a))){c=c||{};if(c.ojComposite)throw"Cannot use ojComposite binding on a custom element whose name is already registered for a composite binding";var d={name:a};c.ojComposite=function(){return d}}return c},preprocessNode:function(a,b){var c;if(1===a.nodeType&&"oj-slot"===a.nodeName.toLowerCase()){c=["name","slot",
"index"];for(var d="ko _ojSlot_:{",e=[],f=0;f<c.length;f++){var h=c[f],k;k=a.getAttribute(h);if(null!=k){var l=w.yd.Px(k).expr;null==l&&(l="'"+k+"'");k=l}else k=null;k&&e.push(h+":"+k)}d+=e.join(",");f=document.createComment(d+"}");d=document.createComment("/ko");c=[f];e=a.parentNode;for(e.insertBefore(f,a);0<a.childNodes.length;)f=a.childNodes[0],e.insertBefore(f,a),c.push(f);c.push(d);e.replaceChild(d,a)}return c?c:b}});w.pe={};
w.pe.bc={initializeMethod:"initialize",activatedMethod:"activated",attachedMethod:"attached",bindingsAppliedMethod:"bindingsApplied",disposeMethod:"dispose"};t("Composite.defaults",w.pe.bc,w);w.pe.register=function(a,b){a&&(w.pe.aC[a.toLowerCase()]=b)};t("Composite.register",w.pe.register,w);w.pe.iG=function(a){return a?w.pe.aC[a.toLowerCase()]:null};w.pe.z5=function(a,b){if(a){var c=w.pe.aC[a.toLowerCase()];c&&(c._metadata=b)}};
w.pe.getMetadata=function(a){return a&&(a=w.pe.aC[a.toLowerCase()])?a._metadata:null};t("Composite.getMetadata",w.pe.getMetadata,w);w.pe.aC={};
ko.bindingHandlers.ojComposite={init:function(){return{controlsDescendantBindings:!0}},update:function(a,b,c,d,e){function f(b){m&&(m.HE(a),m=null);p=b;St(l,"disposeMethod",[a]);l=null;q&&Tt(a,q);s&&(a.removeChild(s),s=null);q=null;r={}}function h(a){return function(b){if(p||b!=n)throw k;return a.apply(this,Array.prototype.slice.call(arguments,1))}.bind(null,n)}var k=Error(),l,m,n=-1,p=!1,q,r={},s,u=ko.utils.unwrapObservable;ko.ignoreDependencies(function(){ko.computed(function(){n++;a.dispatchEvent(new CustomEvent("pending",
{bubbles:!0}));f(!1);var c=u(b())||{},c=u(c.name),d=w.pe.iG(c);if(!d)throw"Composite is missing a descriptor";var z=Ut(d,"metadata");w.pe.z5(c,z);c=null;z?c=z.then(h(function(b){b?(q=b,m=new Rt(a,e,d.parseFunction),Vt(a,r,b,m),m.Tj(b)):(a.classList.add("oj-complete"),w.l.warn("ojComposite is being loaded without metadata. No element properties will be set up"));return r})):a.classList.add("oj-complete");var B,z=new Promise(function(a){B=a}),C=Wt+Xt++,F={element:a,props:c,slotNodeCounts:z,unique:C},
z=null,I=Ut(d,"viewModel");I&&(z=I.then(h(function(a){return a="function"===typeof a?new a(F):St(a,"initializeMethod",[F])||a})));I=null;z&&(I=z.then(h(function(a){return St(a,"activatedMethod",[F])})));var G=Ut(d,"view");G&&(G=G.then(h(function(a){if("string"===typeof a)a=ko.utils.parseHtmlFragment(a);else if(window.DocumentFragment?a instanceof DocumentFragment:a&&11===a.nodeType)a=ko.utils.arrayPushAll([],a.childNodes);else if(Array.isArray(a))a=ko.utils.arrayPushAll([],a);else throw"The View ("+
a+") has an unsupported type";return a})));var E=Ut(d,"css");E&&(E=E.then(h(function(a){var b=document.createElement("style");b.type="text/css";b.styleSheet?b.styleSheet.cssText=a:b.appendChild(document.createTextNode(a));document.head.appendChild(b)})));ko.applyBindingsToDescendants(e,a);Promise.all([G,z,c,E,I]).then(function(b,c){if(!p&&b==n){var d=c[0];if(!d)throw"ojComposite is missing a View";var f=Yt(a),h={},k;for(k in f)h[k]=f[k].length;B(h);s=Zt(a,d);ko.virtualElements.setDomNodeChildren(a,
d);l=c[1];St(l,"attachedMethod",[F]);d=e.createChildContext(l,void 0,function(a){a.__oj_slots=f;a.__oj_nodestorage=s;a.$slotNodeCounts=h;a.$props=r;a.$unique=C});q&&l&&$t(a,q,l);ko.applyBindingsToDescendants(d,a);St(l,"bindingsAppliedMethod",[F]);a.dispatchEvent(new CustomEvent("ready",{bubbles:!0}))}}.bind(null,n),function(a,b){b!==k&&null!=b&&w.l.error(b)}.bind(null,n))},null,{disposeWhenNodeIsRemoved:a})});ko.utils.domNodeDisposal.addDisposeCallback(a,f.bind(null,!0,e))}};
function Ut(a,b){var c=null,d=a[b];if(null!=d){c=Object.keys(d)[0];d=d[c];if(null==c)throw"Invalid component descriptor key";switch(c){case "inline":c=Promise.resolve(d);break;case "promise":c=d;break;default:throw"Invalid descriptor key "+c+" for the resopurce type: "+b;}}return c}function St(a,b,c){if(null!=a&&(b=w.pe.bc[b],null!=b&&a&&(b=a[b],"function"===typeof b)))return ko.ignoreDependencies(b,a,c)}function Vt(a,b,c,d){au(c,"properties",function(c,f){bu(a,b,c,f,d)})}
function $t(a,b,c){au(b,"methods",function(d){var e=b.methods[d].internalName;a[d]=e?c[e].bind(c):c[d].bind(c)})}
function bu(a,b,c,d,e){function f(b,d){var f=h.peek();f!==b&&(h(b),!e.zia()||e.CM())&&(f=new CustomEvent(c+"-changed",{detail:{value:b,previousValue:f,updatedFrom:e.CM()?"default":d?"external":"internal"}}),a.dispatchEvent(f))}var h=ko.observable();cu(b,c,function(){return h()},function(a){f(a,!1)});cu(a,c,function(){return h.peek()},function(a){if(d.readOnly&&!e.CM())throw"Read-only property "+c+" cannot be set";f(a,!0)})}
function cu(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:c,set:d})}function au(a,b,c){if(a){var d=a[b]||{};Object.keys(d).forEach(function(a){c(a,d[a])})}}function Tt(a,b){["methods","properties"].forEach(function(c){au(b,c,function(b){delete a[b]})})}
function Yt(a){var b={};a=a.childNodes;for(var c=0;c<a.length;c++){var d=a[c];if((1===d.nodeType||3===d.nodeType)&&(3!==d.nodeType||d.nodeValue.trim())){var e=d.__oj_slots;(e=null!=e?e:d.getAttribute&&d.getAttribute("slot"))||(e="");b[e]||(b[e]=[]);b[e].push(d)}}return b}
function Zt(a,b){var c,d=a.childNodes;if(d){c=document.createElement("div");c.setAttribute("data-bind","_ojNodeStorage_");c.style.display="none";b.push(c);for(var e=[],f=0;f<d.length;f++){var h=d[f];1!==h.nodeType&&3!==h.nodeType||e.push(h)}e.forEach(function(a){c.appendChild(a)})}return c}var Xt=0,Wt="_ojcomposite";
function du(a,b){this.data={};if(!(a instanceof N))throw Error(Tf._ERR_DATA_INVALID_TYPE_SUMMARY+"\n"+Tf._ERR_DATA_INVALID_TYPE_DETAIL);du.o.constructor.call(this,a,b);this.Oc=a;eu(this);this.Init();if(null!=b&&("enabled"==b.startFetch||null==b.startFetch)||null==b)this.qx=!0}t("CollectionTableDataSource",du,w);H(du,Sf,"oj.CollectionTableDataSource");du.prototype.oi=null;A("CollectionTableDataSource.prototype.comparator",{oi:du.prototype.oi});du.prototype.Init=function(){du.o.Init.call(this)};
A("CollectionTableDataSource.prototype.Init",{Init:du.prototype.Init});du.prototype.at=function(a,b){b=b||{};b.deferred=!0;var c=this.Oc.at(a,b),d=this;d.xw=!0;var e;return new Promise(function(b,h){null!=c?c.then(function(c){d.xw=!1;e={data:c.attributes,index:a,key:c.id};b(e)},function(a){d.xw=!1;Sf.o.handleEvent.call(d,R.ERROR,a);h(a)}):b(null)})};A("CollectionTableDataSource.prototype.at",{at:du.prototype.at});
du.prototype.fetch=function(a){a=a||{};return"init"!=a.fetchType||this.qx?this.we(a):Promise.resolve()};A("CollectionTableDataSource.prototype.fetch",{fetch:du.prototype.fetch});du.prototype.get=function(a,b){b=b||{};b.deferred=!0;var c=this.Oc.get(a,b),d=this,e;return new Promise(function(a,b){null!=c?c.then(function(b){e={data:b.attributes,index:b.index,key:b.id};a(e)},function(a){Sf.o.handleEvent.call(d,R.ERROR,a);b(a)}):a(null)})};A("CollectionTableDataSource.prototype.get",{get:du.prototype.get});
du.prototype.sort=function(a){null==a?a=this.sortCriteria:this.sortCriteria=a;var b=this.comparator,c=this;return new Promise(function(d){null==b?(c.Oc.comparator=a.key,c.Oc.sortDirection="ascending"==a.direction?1:-1):c.Oc.comparator=b;c.Oc.sort(null);d({header:a.key,direction:a.direction})})};A("CollectionTableDataSource.prototype.sort",{sort:du.prototype.sort});
du.prototype.totalSize=function(){var a=0<=this.Oc.totalResults?this.Oc.totalResults:-1;if(-1<a){var b=this.Oc.size();return b>a?b:a}if(0<this.LH)a=this.LH;else if("atLeast"==this.totalSizeConfidence())return this.Oc.size();return a};A("CollectionTableDataSource.prototype.totalSize",{totalSize:du.prototype.totalSize});du.prototype.totalSizeConfidence=function(){return 0<=this.Oc.totalResults?"actual":this.Oc.hasMore?"atLeast":"unknown"};
A("CollectionTableDataSource.prototype.totalSizeConfidence",{totalSizeConfidence:du.prototype.totalSizeConfidence});
function eu(a){a.Oc.on(L.SYNC,function(b){if(b instanceof N&&!a.xw&&!a.sV){var c=b.offset,d=b.lastFetchCount||b.lastFetchSize;0<d?(a.W=c,a.Pa=d,a.xw=!0,Dc(b,c,c+d).then(function(b){a.xw=!1;var d=[],h=[],k,l;for(k=0;k<b.length;k++)null!=b[k]&&(l=b[k].clone(),d.push(l.attributes),h.push(l.id));a.cj.call(a,{silent:!1},{data:d,keys:h,startIndex:c},null)})):(b=a.YA(),a.cj.call(a,{silent:!1},b,null))}});a.Oc.on(L.ALLADDED,function(b,c){var d=[],e=[],f=[],h,k;for(h=0;h<c.length;h++)k=c[h].clone(),d.push(k.attributes),
e.push(k.id),f.push(k.index);Sf.o.handleEvent.call(a,R.ADD,{data:d,keys:e,indexes:f})});a.Oc.on(L.ALLREMOVED,function(b,c){var d=[],e=[],f=[],h,k;for(h=0;h<c.length;h++)k=c[h].clone(),d.push(k.attributes),e.push(k.id),f.push(k.index);Sf.o.handleEvent.call(a,R.REMOVE,{data:d,keys:e,indexes:f})});a.Oc.on(L.RESET,function(b){Sf.o.handleEvent.call(a,R.RESET,b)});a.Oc.on(L.SORT,function(b,c){if(null==c||!c.add){var d={};null==b||null==!b.comparator||$.isFunction(b.comparator)||(d.header=b.comparator,d.direction=
1===b.sortDirection?"ascending":"descending");Sf.o.handleEvent.call(a,R.SORT,d)}});a.Oc.on(L.CHANGE,function(b){Sf.o.handleEvent.call(a,R.CHANGE,{data:[b.attributes],keys:[b.id],indexes:[b.index]})});a.Oc.on(L.DESTROY,function(b){Sf.o.handleEvent.call(a,R.DESTROY,b)});a.Oc.on(L.REFRESH,function(b){Sf.o.handleEvent.call(a,R.REFRESH,b)});a.Oc.on(L.ERROR,function(b,c,d){Sf.o.handleEvent.call(a,R.ERROR,b,c,d)})}
du.prototype.we=function(a){this.px(a);a=a||{};var b=this;this.zV=0<a.pageSize?!0:!1;this.W=null==a.startIndex?this.W:a.startIndex;this.Pa=0<a.pageSize?a.pageSize:-1;a.pageSize=this.Pa;a.startIndex=this.W;a.refresh=!0;return new Promise(function(c,d){var e=b.Pa;b.zV||(e=25);b.Oc.Qy(b.W,e).then(function(d){var e;if(b.zV){e=[];var k=[],l,m;for(l=0;l<d.models.length;l++)m=d.models[l].clone(),e[l]=m.attributes,k[l]=m.id;e={data:e,keys:k,startIndex:b.W};d.models.length<b.Pa?0>b.totalSize()&&(b.LH=b.W+
d.models.length):b.LH=null}else e=b.YA();b.cj.call(b,a,e,null);c(e)},function(c){b.cj.call(b,a,null,c);d(c)})})};du.prototype.px=function(a){this.sV=!0;a.silent||Sf.o.handleEvent.call(this,R.REQUEST,{startIndex:a.startIndex})};du.prototype.cj=function(a,b,c){this.sV=!1;null!=c?Sf.o.handleEvent.call(this,R.ERROR,c):a.silent||Sf.o.handleEvent.call(this,R.SYNC,b)};
du.prototype.YA=function(){var a=this.Oc.size()-1,b=[],c=[],d,e,f;for(d=0;d<=a;d++)e=this.Oc.at(d),f=e.clone(),e=this.ni(f,f.attributes),b[d]=e,c[d]=f.id;return{data:b,keys:c,startIndex:this.W}};du.prototype.getCapability=function(){return null};A("CollectionTableDataSource.prototype.getCapability",{getCapability:du.prototype.getCapability});
du.prototype.ni=function(a,b){var c={},d;for(d in b)b.hasOwnProperty(d)&&function(){var b=d;Object.defineProperty(c,d,{get:function(){return a.get(b)},set:function(c){a.set(b,c,{silent:!0})},enumerable:!0})}();return c};function fu(a){this.Init(a)}var gu,hu;H(fu,x,"oj.TreeDndContext");fu.prototype.Init=function(a){fu.o.Init.call(this);this.u=a;this.options=a.options;iu(this)};A("TreeDndContext.prototype.Init",{Init:fu.prototype.Init});function ju(a){a=a.nc;return a.reorder||a.eg}
function ku(a){a=a.nc;return a.reorder||a.Dj}
function lu(a){var b=a.options.dnd,c=a.nc,d=!0,e;c.reorder=!1;"object"!=typeof b?a.options.dnd={reorder:"disable"}:(e=b[fu.ska],"string"===typeof e&&("enable"===e?(c.reorder=!0,d=!1):"disable"==e&&(d=!1)),d&&(a.options.dnd.reorder="disable"),e=b[fu.jka],"object"==typeof e&&(d=e[fu.z3],"object"==typeof d&&(a=d[fu.mka],"function"==typeof a&&(c.Lx=a,c.eg=!0),a=d[fu.kka],"function"==typeof a&&(c.dD=a,c.eg=!0),a=d[fu.lka],"function"==typeof a&&(c.ML=a,c.eg=!0),a=d[fu.y3],$.isArray(a)?(c.Qq=a.slice(),c.eg=
!0):"string"==typeof a&&(c.Qq=[a],c.eg=!0))),e=b[fu.nka],"object"==typeof e&&(d=e[fu.z3],"object"==typeof d&&(a=d[fu.oka],"function"==typeof a&&(c.fD=a,c.Dj=!0),a=d[fu.qka],"function"==typeof a&&(c.hD=a,c.Dj=!0),a=d[fu.pka],"function"==typeof a&&(c.gD=a,c.Dj=!0),a=d[fu.rka],"function"==typeof a&&(c.iD=a,c.Dj=!0),a=d[fu.y3],$.isArray(a)?(c.eD=a.slice(),c.Dj=!0):"string"==typeof a&&(c.eD=[a],c.Dj=!0))),c.reorder||(c.Qq||c.Lx||(c.eg=!1,c.Lx=c.dD=c.ML=c.Qq=null),c.iD||(c.Dj=!1,c.fD=c.hD=c.gD=c.iD=c.eD=
null)),c.wE=c.reorder&&!c.eg)}
function mu(a){var b=a.nc,c=b.Jd;if(b.eg||b.Dj||b.reorder){gu?(c.il=gu,c.Gi=hu):(c.il=$("\x3cdiv class\x3d'oj-tree-drop-marker'\x3e\x3cspan class\x3d'oj-tree-drop-ptr oj-component-icon'\x3e\x26#160;\x3c/span\x3e\x3c/div\x3e").css("pointer-events","none").hide().appendTo("body"),c.Gi=$("\x3cdiv /\x3e").addClass(fu.Dka).css("pointer-events","none").hide().appendTo("body"),gu=c.il,hu=c.Gi);b.h1=c.Gi.width();var c=a.u.element[0],d=$(c).children("ul:eq(0)");if(b.reorder||b.eg)b.ZL=a.CH.bind(a),b.TL=a.o8.bind(a),
$(c).on("dragstart",b.ZL),$(c).on("dragend",b.TL),d.length&&d.find("li").addClass(fu.MP).addClass(fu.MF).addClass(fu.sp).attr("draggable","true");if(b.reorder||b.Dj)b.RL=a.m8.bind(a),b.VL=a.p8.bind(a),b.YL=a.s8.bind(a),b.WL=a.q8.bind(a),b.SL=a.n8.bind(a),$(c).on("drag",b.RL),$(c).on("dragenter",b.VL),$(c).on("dragover",b.YL),$(c).on("dragleave",b.WL),$(c).on("drop",b.SL)}}g=fu.prototype;
g.CH=function(a){var b,c,d=$(a.target).closest("li"),e=a.originalEvent.dataTransfer,f;b=this.nc;c=b.Jd;c.ib=null;c.qa=null;b.jr=null;b.mN=null;b.Iy=null;b.Mx=!1;if(!b.reorder&&!b.eg||d.hasClass("oj-disabled")||this.u.b.V.locked)a.preventDefault();else{c=this.u.isSelected(d)?this.u.na(null,!0):c=d;if(b.eg||b.wE){var h=this.nc,k;(k=this.u.rQ(c))&&(f=JSON.stringify(k));if(h.Qq)for(k=0;k<h.Qq.length;k++)e.setData(h.Qq[k],f);e.setData(fu.$O,"0");h.wE&&e.setData(fu.aP,"0")}var h=c,l,m=h.length,n;if(1===
m)this.yA=null;else{f=$("\x3cdiv\x3e\x3c/div\x3e");k=$("\x3cul style\x3d'padding:0px;margin:0;'\x3e\x3c/ul\x3e");f.append(k);for(n=0;n<m;n++)l=h[n].cloneNode(!0),l.style.marginLeft=0,l.style.paddingLeft=0,k.append(l);h=f[0];document.body.appendChild(h);h.style.position="absolute";h.style.top="-"+2*f.height()+"px";h.style.right="0";this.yA=h;e.setDragImage(h,0,0)}if(b.Lx){f=b.Lx(a,{item:void 0});if(a.isDefaultPrevented()||"boolean"===typeof f&&!f)return f;if(f=!b.Qq){h=(f=e.types)&&f.length?f.length:
0;k=!1;for(m=0;m<h;m++)if(l=f[m],l!=fu.$O&&l!=fu.aP){k=!0;break}f=!k}if(f&&!b.reorder)return a.preventDefault(),!1}"uninitialized"===e.effectAllowed&&(e.effectAllowed=b.wE?"move":w.q.Hm(a)?"copy":"move");nu(this,c,d,a)}};g.m8=function(a){var b=this.nc;b.dD&&b.dD(a)};
g.p8=function(a){this.u.aa[0].firstChild||(this.kV||(this.kV=$("\x3cli class\x3d'oj-treenode-temp oj-tree-node oj-tree-leaf oj-valid-drop' id\x3d'oj-treenode-temp'\x3e\x3cins class\x3d'oj-tree-icon'\x3e\x3c/ins\x3e\x3ca href\x3d'#'\x3e\x3cins class\x3d'oj-tree-icon'\x3e\x3c/ins\x3e\x3cspan class\x3d'oj-tree-title'\x3e\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e")),this.u.aa.append(this.kV));var b=$(a.target),c=this.u.na(b),d=this.nc,e=d.Jd,f=c&&0<c.length&&c.hasClass("oj-tree-node"),h=a.originalEvent.dataTransfer,
k=!1,l=!1,m;f&&c.hasClass("oj-treenode-temp")&&(d.Uk=!0);if(!f||"UL"!=a.target.tagName||"group"!=a.target.getAttribute("role"))if(d.Bf=!d.Mx,!d.Bf&&!d.reorder||d.Bf&&ou(h,fu.aP))pu(this);else{if(d.Bf&&(k=ou(h,fu.$O),!d.Dj)){pu(this);return}e.qa=!1;d.jr&&qu(d.jr);b.hasClass("oj-tree")&&(c=d.jr);if(!c||!c.length||c.attr("id")!=d.Iy){k&&f&&(d.jr=null,e.ib=2);d.Bf&&!k&&(e.ib=1);e.qa=c;d.jr=c;ru(this,a,c);f=this.nc;k=f.Jd;f.uE=!1;var b=this.xH(),n=f.Yia;n&&(f.Wla&&clearTimeout(f.Tm),k.qa&&k.qa.length&&
k.qa.hasClass("oj-collapsed")&&(f.Tm=setTimeout(this.g8.bind(this),n)));f=typeof b;if("boolean"==f&&b||"string"==f){e.qa.removeClass(fu.NP).addClass(fu.sp).addClass(fu.C4);d.fD&&(m=d.fD(a,{item:d.Uk?null:c,position:d.Uk?"first":d.og,reference:d.Uk?null:e.qa}));if(void 0===m)su(this,h)?(a.preventDefault(),a.stopPropagation()):l=d.Bf||!d.reorder;else if(!1===m||a.isDefaultPrevented())a.preventDefault(),a.stopPropagation();else if(d.Bf||!d.reorder)l=d.Bf||!d.reorder;l&&pu(this);return m}qu(e.qa);e.qa=
null}tu(this)}};
g.s8=function(a){var b=this.nc,c=b.Jd,d=a.originalEvent.dataTransfer,e=!1,f,h,k;if(c.qa&&c.qa.length&&(h=c.qa,h.hasClass("oj-tree-node")&&(f=h.attr("id"),f!=b.Iy&&(ru(this,a,h),this.xH())))){b.hD&&(k=b.hD(a,{item:b.Uk?null:h,reference:b.Uk?null:c.qa,position:b.Uk?"first":c.JM}));if(void 0===k)su(this,d)?(a.preventDefault(),a.stopPropagation()):e=b.Bf||!b.reorder;else if(!1===k||a.isDefaultPrevented())a.preventDefault(),a.stopPropagation();else if(b.Bf||!b.reorder)e=b.Bf||!b.reorder;e&&pu(this);return k}tu(this)};
g.n8=function(a){var b=this.nc,c=b.Jd,d=!1,e;if(c.qa){if(b.iD)e=b.iD(a,{reference:b.Uk?null:c.qa,position:b.Uk?"first":c.JM,reorder:!b.Bf&&b.reorder});else if(b.Bf||!b.reorder)d=!0;if(!(d||e&&!a.isDefaultPrevented())){var c=this.nc,f=c.Jd;c.Mx&&c.reorder&&"object"==typeof f.ib&&0<f.ib.length&&(this.u.Jw(f.ib,f.qa,f.JM,w.q.Hm(a)),f.ib=!1)}}b.Bf&&pu(this);d||(a.preventDefault(),a.stopPropagation());b.mN=null;return e};
g.o8=function(a){var b=this.nc,c=b.Jd;b.ML&&b.ML(a,{reorder:b.reorder&&!1===c.ib});a=this.nc;b=a.Jd;b.qa&&qu(b.qa);"number"!=typeof b.ib&&b.ib&&b.ib.removeClass(fu.MF);this.yA&&(document.body.removeChild(this.yA),this.yA=null);a.Mx=!1;pu(this)};
g.q8=function(a){var b=this.nc,c=b.Jd,d=$(a.target),e=d.closest("li"),f=e&&0<e.length&&e.hasClass("oj-tree-node");e.attr("id");var h=a.originalEvent.dataTransfer;b.gD&&b.gD(a,{item:b.Uk?null:e});d.hasClass("oj-tree")||!f||"none"==h.dropEffect?(b=this.nc,d=b.Jd,b.after=!1,b.before=!1,b.Yt=!1,b.Jla=null,tu(this),d.qa&&d.qa[0]===a.target.parentNode&&b.Tm&&(clearTimeout(b.Tm),b.Tm=!1)):b.mN=e;c.qa&&qu(c.qa)};g.g8=function(){var a=this.nc,b=a.Jd;a.Tm=!1;this.u.Zd(b.qa,this.xH.bind(this),!0)};
function uu(a,b){b.hasClass("oj-selected")&&(b.removeClass("oj-selected"),a.u.xj(b,!0));var c=a.u.getChildren(b),d=c&&c.length?c.length:0,e;for(e=0;e<d;e++)uu(a,$(c[e]))}function ru(a,b,c){var d=a.nc;c&&(c.hasClass("oj-treenode-temp")?d.og="after":(b=b.originalEvent,d.off=c.offset(),d.og=b.pageY-(d.off.top||0),d.og=d.og>=a.u.b.V.wo?"after":0>d.og?"before":"inside","after"===d.og&&c.hasClass("oj-expanded")&&(d.og="first")))}
function pu(a){tu(a);a=a.nc;var b=a.Jd;b.ib=!1;b.qa=!1;a.Tm&&clearTimeout(a.Tm);a.Iy=null;a.Bf=!1;a.jr=null;a.mN=null;a.after=!1;a.before=!1;a.Yt=!1;a.off=!1;a.uE=!1;a.Tm=!1;a.Bf=!1;a.Uk=!1}function vu(a){var b=a.nc,c;c=$(a.u.ra[0]);c.off("dragstart",b.ZL);c.off("dragend",b.TL);c.off("drag",b.RL);c.off("dragenter",b.VL);c.off("dragover",b.YL);c.off("dragleave",b.WL);c.off("drop",b.SL);pu(a);iu(a)}
g.xH=function(){var a=this.nc,b=a.Jd,c=this.u,d=!1;if(!b.qa||!b.qa.length)return!1;if("number"==typeof b.ib&&(1===b.ib||2===b.ib))d=!0;else if(!b.ib)return!1;a.off=b.qa.offset();this.u.zB&&(a.off.right=a.off.left+b.qa.width()-b.qa.find("\x3ea").width()-30);a.i2=b.qa.find("a").width();d?(a.before="before"==a.og,a.after="after"==a.og,a.Yt="inside"==a.og):(c.Tw(b.ib,b.qa,"before"),a.before=c.hA(),c.Tw(b.ib,b.qa,"after"),a.after=c.hA(),this.u.fm(b.qa)?(c.Tw(b.ib,b.qa,"inside"),a.Yt=c.hA()):a.Yt=!1);a.uE=
!0;var a=this.nc,e=!1,b=a.Jd,c=this.u.zB,f,h,k,d=this.u.b.V.wo,l=!1;if(a.uE){if("after"==a.og&&a.after||"inside"==a.og&&a.Yt||"before"==a.og&&a.before||"first"==a.og)l=a.og;"first"===l&&(e=b.qa.find("li:eq(0)"),a.off=e.offset());h=c?a.off.right-18:a.off.left+5;e=!this.u.isLeaf(b.qa);f=c?h+a.i2+18:h;h=c?f-a.h1:h+8;k=a.off.top-3;switch(l){case "before":case "first":wu(b.il,{left:f,top:k-7});b.Gi&&wu(b.Gi,{left:h,top:k});break;case "after":k+=d;wu(b.il,{left:f,top:k-2});b.Gi&&wu(b.Gi,{left:h,top:k+6});
break;case "inside":wu(b.il,{left:f+(c?e?-4:0:4),top:a.off.top+d/2-8});b.Gi&&b.Gi.hide();break;default:tu(this)}l?b.qa.removeClass(fu.NP).addClass(fu.sp):b.qa.removeClass(fu.sp).removeClass(fu.sp);b.JM=l}else tu(this);return l};function tu(a){if(a=a.nc.Jd)a.il&&a.il.hide(),a.Gi&&a.Gi.hide(),a.qa&&qu(a.qa)}function wu(a,b){b.left+="px";b.top+="px";a.css(b).show()}
function nu(a,b,c,d){var e=a.nc,f=e.Jd;f.ib=b;f.ib.addClass(fu.MF);e.Iy=c.attr("id");try{d.currentTarget.unselectable="on",d.currentTarget.onselectstart=function(){return!1},d.currentTarget.style&&(d.currentTarget.style.MozUserSelect="none")}catch(h){}a.u.Qba()&&f.il&&f.il.addClass("oj-tree-"+a.u.b.Hb.Ju);a=a.u.ra;e.Zga=a.offset();e.fha=parseInt(a.width(),10);e.ch=parseInt(a.height(),10);e.Mx=!0}function ou(a,b){var c=a.types,d=c.length,e;for(e=0;e<d;e++)if(b==c[e])return!0;return!1}
function su(a,b){var c=a.nc.eD,d=!1,e;if(c)for(d=!(0<c.length),e=0;e<c.length;e++){if(ou(b,c[e])){d=!0;break}}else d=!0;return d}function qu(a){a&&a.removeClass(fu.sp).removeClass(fu.NP).removeClass(fu.C4)}
function iu(a){var b={};a.nc=b;b.reorder=!1;b.wE=!1;b.Bf=!1;b.Mx=!1;b.Iy=null;b.jr=null;b.ZL=null;b.TL=null;b.RL=null;b.VL=null;b.YL=null;b.WL=null;b.SL=null;b.eg=!1;b.Dj=!1;b.Lx=null;b.dD=null;b.yla=null;b.fD=null;b.hD=null;b.gD=null;b.zla=null;b.eD=null;b.after=!1;b.Yt=!1;b.before=!1;b.off=!1;b.uE=!1;b.Tm=!1;b.Zga=!1;b.fha=!1;b.ch=!1;b.h1=100;b.i2=100;b.Yia=500;b.Jd={};b.Jd.ib=!1;b.Jd.qa=!1;b.Jd.il=!1;b.Jd.Gi=!1}g.PY=function(a){this.u.PY(a)};
(function(){function a(a){p.push(a);$(a.HX).keydown(b)}function b(a){var b="";w.q.Hm(a)?b+="ctrl+":a.shiftKey&&(b+="shift+");var c=a.which;switch(c){case 32:b+="space";break;case 37:b+="left";break;case 38:b+="up";break;case 39:b+="right";break;case 40:b+="down";break;case 46:b+="del";break;case 33:b+="pgup";break;case 34:b+="pgdn";break;case 35:b+="end";break;case 36:b+="home";break;case 56:b="*";break;case 113:case 121:b+="f"+(1-(112-c))}if(0===b.length||"shift+"==b||"ctrl+"==b)return!0;var d=null;
$.each(p,function(c,e){if(e.sx.b.ui.qi)return e.sx.b.ui.vr=!1,"shift+f10"==b?e.sx.b.menu.OC=e.sx.b.ui.ub:e.GU[b]&&(a.preventDefault(),d=e.GU[b].call(e.sx,a)),!1});if(null!=d)return d}function c(a){$.each(p,function(b){if(p[b].HX===a)return $(a).off("keydown"),p[b]=null,p.splice(b,1),!1})}function d(a){var b=!0,c;for(c in a)if(a.hasOwnProperty(c)){b=!1;break}return b}function e(a){var b=!1,c=!0;a.FE&&(a.title&&(b=$("style[id\x3d'"+a.title+"-stylesheet']")[0]),b?c=!1:(b=document.createElement("style"),
b.setAttribute("type","text/css"),a.title&&b.setAttribute("id",a.title+"-stylesheet")),b.styleSheet?c?(document.getElementsByTagName("head")[0].appendChild(b),b.styleSheet.cssText=a.FE):b.styleSheet.cssText=b.styleSheet.cssText+" "+a.FE:(b.appendChild(document.createTextNode(a.FE)),document.getElementsByTagName("head")[0].appendChild(b)))}var f={cut:"ojtreecut",copy:"ojtreecopy",paste:"ojtreepaste","paste-after":"ojtreepasteafter","paste-before":"ojtreepastebefore",remove:"ojtreeremove",rename:"ojtreerename"},
h={cut:"labelCut",copy:"labelCopy",paste:"labelPaste","paste-after":"labelPasteAfter","paste-before":"labelPasteBefore",remove:"labelRemove",rename:"labelRename"},k="id title class role draggable style".split(" "),l,m,n;$(function(){/msie/.test(navigator.userAgent.toLowerCase())?(m=$('\x3ctextarea cols\x3d"10" rows\x3d"2"\x3e\x3c/textarea\x3e').css({position:"absolute",top:-1E3,left:0}).appendTo("body"),n=$('\x3ctextarea cols\x3d"10" rows\x3d"2" style\x3d"overflow: hidden;"\x3e\x3c/textarea\x3e').css({position:"absolute",
top:-1E3,left:0}).appendTo("body"),l=m.width()-n.width(),m.add(n).remove()):(m=$("\x3cdiv /\x3e").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1E3,left:0}).prependTo("body").append("\x3cdiv /\x3e").find("div").css({width:"100%",height:200}),l=100-m.width(),m.parent().remove())});var p=[],q=-1;w.sa("oj.ojTree",$.oj.baseComponent,{widgetEventPrefix:"oj",defaultElement:"\x3cdiv\x3e",options:{dnd:{reorder:"disable"},expandParents:!1,initExpanded:null,via:[],selection:[],selectionMode:"single",
selectedParentCollapse:!1,selectedParentExpand:!0,selectPrevOnDelete:!1,data:null,emptyText:null,icons:!0,types:null,before:null,collapse:null,create:null,collapseAll:null,cut:null,dehover:null,remove:null,destroy:null,expand:null,expandAll:null,hover:null,loaded:null,move:null,optionChange:null,paste:null,refresh:null,rename:null},collapse:function(a,b){var c=(b=b||!1)?0:this.nG;a=this.na(a);if(!a.length||-1===a||!a.hasClass("oj-expanded")||this.b.V.locked||a.hasClass("oj-disabled"))return!1;var d=
this.nb({obj:a,func:"collapse"},"before");if("boolean"!=typeof d||d)a.removeClass("oj-expanded").addClass("oj-collapsed").attr("aria-expanded","false"),$(a.children()[0]).removeClass("oj-selected").addClass("oj-default"),!b&&c?this.Nk(a,!0):this.ZK($(a.children("UL")[0]),a)},Nk:function(a,b){var c,d,e;c=$(a.children("ul"));this.EV?c[0].addEventListener("webkitTransitionEnd",this.VB):c[0].addEventListener("transitionend",this.VB);b?(d=c[0].offsetHeight,e=0):(d=0,e=this.n9(c[0]));c.css("max-height",
d+"px");c.css("overflow","hidden");b||(c[0].style.display="block");setTimeout(function(){c.addClass("oj-tree-transition");c.css("max-height",e+"px")},20)},n9:function(a){var b,c,d,e,f=$("\x3cdiv style\x3d'position: absolute'\x3e");b=a.parentNode;c=a.nextSibling;b.removeChild(a);e=a.style.display;a.style.display="block";f.append(a);this.ra[0].appendChild(f[0]);d=a.offsetHeight||a.scrollHeight;a.style.display=e;this.ra[0].removeChild(f[0]);f[0].removeChild(a);c?b.insertBefore(a,c):b.appendChild(a);
return d+10},yt:function(a){a=$(a.target);var b=a.closest("li");this.EV?a[0].removeEventListener("webkitTransitionEnd",this.VB):a[0].removeEventListener("transitionend",this.VB);a.removeClass("oj-tree-transition");this.ZK(a,b)},ZK:function(a,b){b.hasClass("oj-collapsed")?(a[0].style.display="none",a.css("max-height",""),this.nb({obj:b},"collapse"),this.after_close(b)):(a[0].style.display="block",a.css("max-height",""),this.nb({obj:b},"expand"))},collapseAll:function(a,b){var c=a?a:-1,d=this;if(!this.b.V.locked&&
((a=a?this.na(a):this.ra)&&-1!==c&&(c=a),a&&-1!==c||(a=this.aa),!a.hasClass("oj-disabled"))){var e;-1!==c&&this.isExpanded(a)&&(e=a[0]);var f=a.find("li.oj-expanded");f.length&&f.each(function(){d.collapse(this,!b)});e&&(this.collapse(e,!b),f.splice(0,0,e));f.length&&this.nb({obj:f,targ:c},"collapseAll")}},expand:function(a,b){this.Zd(a,!1,b)},expanded:function(a,b){var c,d,e=this;if(a&&"array"===$.type(a)){if(this.b.V.locked)return null;d=a.length;$.each(a,function(a,c){e.Zd(c,!1,b)});return null}a=
this.aa.find("li.oj-expanded");d=a.length;c=[];for(var f=0;f<d;f++)c.push(a[f]);return $(c)},expandAll:function(a,b){this.IH(a,b)},toggleExpand:function(a,b){if((a=this.na(a))&&a.length&&-1!==a&&!a.hasClass("oj-disabled")&&!this.b.V.locked){if(a.hasClass("oj-collapsed"))return this.expand(a,b);if(a.hasClass("oj-expanded"))return this.collapse(a,b)}},deselect:function(a){var b=this.options.selection.slice(0);this.Hp(a);this.Yv("selection",b,null,null)},deselectAll:function(a){if(!this.b.V.locked){var b=
this.options.selection.slice(0);this.tA(a);this.Yv("selection",b,null,null)}},select:function(a){this.xj(a,!0)},toggleSelect:function(a){a=this.na(a);if(!a.length||a.hasClass("oj-disabled")||this.b.V.locked)return!1;this.xh(a)?this.deselect(a):this.xj(a,!0);return!0},isCollapsed:function(a){return(a=this.na(a))&&-1!==a&&a.hasClass("oj-collapsed")},isExpanded:function(a){return(a=this.na(a))&&-1!==a&&a.hasClass("oj-expanded")},isLeaf:function(a){return this.sJ(a)},isSelected:function(a){return this.xh(a)},
create:function(a,b,c){var d,e,f;e=$.isArray(c);if(!e||1==c.length)return d=this.Mv(a,b,e?c[0]:c),uu(this.pk(),d),d;e=[];if("before"!=b)for(f=c.length-1;0<=f;f--)d=this.Mv(a,b,c[f]),e.unshift(d[0]),uu(this.pk(),d);else for(f=0;f<c.length;f++)d=this.Mv(a,b,c[f]),e.push(d[0]),uu(this.pk(),d);return $(e)},remove:function(a){a=this.na(a);if(!a.length||a.hasClass("oj-disabled")||this.b.V.locked)return!1;var b=this.nb({obj:a,func:"remove"},"before");if("boolean"==typeof b&&!b)return!1;this.zp();var b=this.kj(a),
c=$([]),d=this,e=this.bm(a);a.each(function(){c=c.add(d.bm(this))});a=a.detach();-1!==b&&0===b.find("\x3e ul \x3e li").length&&b.removeClass("oj-expanded oj-collapsed").addClass("oj-tree-leaf").removeAttr("aria-expanded");this.Bg(b);this.nb({obj:a,prev:e,parent:b},"remove");return a},getText:function(a){a=this.na(a);if(!a.length)return!1;a=a.children("a:eq(0)");a=a.find("span:eq(0)");return a[0].textContent},rename:function(a,b){this.nX(a,b)},hover:function(a){this.aba(a)},dehover:function(){this.jS()},
getPath:function(a,b){var c=[],d=this;a=this.na(a);if(-1===a||!a||!a.length)return!1;a.parentsUntil(".oj-tree","li").each(function(){c.push(b?this.id:d.getText(this))});c.reverse();c.push(b?a.attr("id"):this.getText(a));return c},getRoot:function(){return this.ra.children("ul:eq(0)")},refresh:function(a){this._super();this.b.V.locked||this.Pd(a?a:-1)},move:function(a,b,c,d){this.Jw(a,b,c,d)},getType:function(a){return this.xI(a)},setType:function(a,b){return this.jfa(a,b)},getNodeBySubId:function(a){return a?
this.xda(a):this.element?this.element[0]:null},getSubIdByNode:function(a){return this.Y9(a)},getContextByNode:function(a){var b,c;a=this.na(null==a||void 0==a?0:a);b=-1!=a&&0<a.length;c=-1==a;return b||c?{subId:b?"oj-tree-node":"oj-tree",item:b?a[0]:null,node:b?a:!1,leaf:b?this.sJ(a):!1}:null},getParent:function(a){return(a=this.kj(a))&&0<a.length?a:null},getPrevSibling:function(a){return(a=this.bm(a,!0))&&0<a.length?a:null},getNextSibling:function(a){return(a=this.Up(a,!0))&&0<a.length?a:null},getChildren:function(a){return(a=
(a=this.f9(a?a:-1))&&a.length?a.not(".oj-treenode-temp"):a)&&0<a.length?a:null},scrollIntoView:function(a,b,c){a?(a=a.node,a=this.na(a)):a=-1;-1==a&&(a=this.ra.find("\x3e ul \x3e li:first-child"));if(a&&a.length)return b="top"==b,c&&(this.aa.focus(),this.hover(a)),a[0].scrollIntoView(b),this},_ComponentCreate:function(){this._super();this.cba=this.Kca();this.Kp=this.element.attr("id");void 0===this.Kp&&(this.Kp="oj-tree-"+this.Dg(),this.element.attr("id",this.Kp));this.ra=this.element;this.aa=null;
this.b={};this.DY=null;this.zB="rtl"===this.$b();this.Rs=w.q.ud();this.pba();if(this.nG=this.b9())this.EV="safari"===w.Ic.zm().browser,this.VB=this.yt.bind(this);this.Og()},_destroy:function(){this.P6();this.b.html.tu&&(this.ra.append(this.b.html.tu),this.b.html.mE.remove(),this.b.html.mE=!1,this.b.html.LE=!1);this.b.Ma.type=0;this._super()},_setOption:function(a,b,c){var d;if("selection"===a)b="string"==typeof b?[b]:b&&b.length?b:[],this.b.V.ur=!0,this.Laa(b),this.b.V.ur=!1,b=this.mI();else if("selectionMode"===
a)"none"===b?d=0:"single"===b?d=1:"multiple"===b?d=-1:(d=0,b="none"),d!=this.b.V.Ym&&(this.b.V.Ym=d);else if("icons"===a)"boolean"==$.type(b)&&b!=this.b.Hb.icons&&((this.b.Hb.icons=b)?this.DK():this.gJ());else if("contextMenu"===a)this.Dp(),b&&this.On(b);else if("disabled"===a)this.G$(b);else{if("data"===a){this._super(a,b,c);this.ZU();this.$U();this.bV();this.SV();return}if("dnd"===a){this._super(a,b,c);a=this.pk();b=a.nc;c=b.reorder;d=b.eg;vu(a);lu(a);b=a.nc;if(c!=b.reorder||d!=b.eg)b.reorder||
b.eg||a.u.aa.find("li").removeClass(fu.MP).removeClass(fu.MF).removeClass(fu.sp).removeAttr("draggable");mu(a);return}"emptyText"==a&&(b=this.CA(b))}this._super(a,b,c)},ev:function(a,b,c){return"selection"===a?this.xR(b,c):this._superApply(arguments)},xR:function(a,b){var c,d,e,f,h,k=!1,l=!1;f=a&&a.length?a.length:0;h=b&&b.length?b.length:0;if(f!==h)k=!0;else if(0==f&&0===h)k=!1;else for(c=0;c<f;c++){e=$(a[c]).attr("id");l=!1;for(d=0;d<h;d++)if(e==$(b[d]).attr("id")){l=!0;break}if(!l){k=!0;break}}return!k},
P6:function(){this.nv&&(vu(this.nv),this.nv=null);var a=this.Dg();this.ra.unbind(".oj-tree").undelegate(".oj-tree").removeData("oj-tree-instance-id").find("[class^\x3d'oj-tree']").addBack().attr("class",function(){return this.className.replace(/oj-tree[^ ]*|$/ig,"")});var b=this.ra.attr("class"),b=b.trim();0===b.length&&this.ra.removeAttr("class");c(this.aa);$(document).unbind(".oj-tree-"+a).undelegate(".oj-tree-"+a);this.aa.remove();this.aa=null},na:function(a,b){if("undefined"===typeof a||null===
a)return b?this.b.ui.selected:this.b.ui.Fb;var c=$(a,this.ra);if(c.is(".oj-tree")||-1===a)return-1;c=c.closest("li",this.ra);return c.length?c:!1},bm:function(a,b){a=this.na(a);if(-1===a)return this.ra.find("\x3e ul \x3e li:last-child");if(!a.length)return!1;if(b)return 0<a.prevAll("li").length?a.prevAll("li:eq(0)"):!1;if(a.prev("li").length){for(a=a.prev("li").eq(0);a.hasClass("oj-expanded");)a=a.children("ul:eq(0)").children("li:last");return a}var c=a.parentsUntil(".oj-tree","li:eq(0)");return c.length?
c:!1},Up:function(a,b){a=this.na(a);return-1===a?this.ra.find("\x3e ul \x3e li:first-child"):a.length?b?0<a.nextAll("li").length?a.nextAll("li:eq(0)"):!1:a.hasClass("oj-expanded")?a.find("li:eq(0)"):0<a.nextAll("li").length?a.nextAll("li:eq(0)"):a.parentsUntil(".oj-tree","li").next("li").eq(0):!1},kj:function(a){a=this.na(a);if(-1==a||!a.length)return!1;a=a.parentsUntil(".oj-tree","li:eq(0)");return a.length?a:-1},f9:function(a){a=this.na(a);return-1===a?this.ra.children("ul:eq(0)").children("li"):
a.length?a.children("ul:eq(0)").children("li"):!1},sJ:function(a){return(a=this.na(a))&&-1!==a&&a.hasClass("oj-tree-leaf")},F9:function(a){a=this.aa.find(a);var b=!1;a&&a.length&&0<a.length&&$(a).is("li")&&(b=a);return b},xh:function(a){a=this.na(a);var b=!1;a&&a.length&&this.b.ui.selected&&(b=0<=this.b.ui.selected.index(a));return b},Fda:function(a,b){var c=a.parents("div").eq(0);(c=w.Components.Pb(c))&&b&&c("getCI",b);return this},getCI:function(a){a.zl=this},f6:function(a,b){void 0!=a&&void 0!=
b&&$.each(b,function(b,c){void 0==a[b]&&(a[b]=c)})},G$:function(a){var b;"undefined"!==typeof a&&((b=this.aa.hasClass("oj-disabled"))||(b=!1),b!=a&&(a?(this.aa.addClass("oj-disabled"),this.aa.prop("disabled",!0)):(this.aa.removeClass("oj-disabled"),this.aa.prop("disabled",!1)),this.ega(a)))},ega:function(a){a?(this.b.V.locked=!0,this.b.ui.opacity=this.ra.children("ul").css("opacity"),this.aa.addClass("oj-disabled").css("opacity","0.9")):(this.b.V.locked=!1,this.aa.removeClass("oj-disabled").css("opacity",
this.b.ui.opacity))},hla:function(){return this.b.V.locked},Laa:function(a){var b=a.slice(0),c=[],d=this,e,f,h,k;$.grep(b,function(a,f){if(e=d.F9(a))c.push(e),b[f]=e[0];else return!1;return!0});a=this.mI();$.each(a,function(a,b){k=c.length;f=$(b).attr("id");h=!1;for(a=0;a<k;a++)if(f==c[a].attr("id")){h=!0;break}h||d.Hp(b)});this.efa(c,null)},Tw:function(a,b,c,d,e){var f={};b=-1!==b&&b?this.na(b):-1;this.Fda(a,f);f.To=this;f.ib=f.zl.na(a);f.qa=b;f.Qj="undefined"===typeof c||!1===c?"last":c;if(!e&&
this.b.V.pg.ib&&this.b.V.pg.ib[0]===f.ib[0]&&this.b.V.pg.qa[0]===f.qa[0]&&this.b.V.pg.Qj===f.Qj)d&&d.call(this,this.b.V.pg);else{if(-1!==f.qa&&f.qa){if(!/^(before|after)$/.test(f.Qj)&&!this.fm(f.qa))return this.gm(f.qa,function(){this.Tw(a,b,c,d,!0)});switch(f.Qj){case "before":f.Bj=f.qa.index();f.Oq=f.To.kj(f.qa);break;case "after":f.Bj=f.qa.index()+1;f.Oq=f.To.kj(f.qa);break;case "inside":case "first":f.Bj=0;f.Oq=f.qa;break;case "last":f.Bj=f.qa.find(" \x3e ul \x3e li").length;f.Oq=f.qa;break;default:f.Bj=
f.Qj,f.Oq=f.qa}}else switch(f.Oq=-1,f.Qj){case "first":case "before":case "inside":f.Bj=0;break;case "after":case "last":f.Bj=f.To.ra.find(" \x3e ul \x3e li").length;break;default:f.Bj=f.Qj}f.Pm=-1==f.Oq?f.To.ra:f.Oq;f.Sm=f.zl.kj(f.ib);f.ula=f.ib.index();-1===f.Sm&&(f.Sm=f.zl?f.zl.ra:this.ra);!/^(before|after)$/.test(f.Qj)&&f.Sm&&f.Pm&&f.Sm[0]===f.Pm[0]&&f.ib.index()<f.Bj&&f.Bj++;f.oN=f.Pm.find(" \x3e ul \x3e li:nth-child("+(f.Bj+1)+")");this.b.V.pg=f;d&&d.call(this,this.b.V.pg,"prepare_move")}},
hA:function(){var a=this.b.V.pg,b=!0,c;c=-1===a.qa?this.ra:a.qa;if(!a||!a.ib||a.oN[0]===a.ib[0]||!a.qa)return!1;if(!a.$C){if(a.Sm&&a.Pm&&a.Sm[0]===a.Pm[0]&&a.Bj-1===a.ib.index())return!1;a.ib.each(function(){if(-1!==c.parentsUntil(".oj-tree","li").addBack().index(this))return b=!1})}return b},nX:function(a,b){var c;a=this.na(a);this.zp();c=this.getText(a);if(a&&a.length){var d=this.nb({obj:a,func:"rename",title:b,prevTitle:c},"before");if("boolean"==typeof d&&!d)return}a&&a.length&&this.AK.apply(this,
Array.prototype.slice.call(arguments))&&this.nb({obj:a,title:b,prevTitle:c},"rename")},Jw:function(a,b,c,d,e,f){e||(a=this.na(a));if(!(a.hasClass&&a.hasClass("oj-disabled")||this.b.V.locked)){if(!e)return this.Tw(a,b,c,function(a){a.zl===a.To||a.$C||a.zl.deselect(a.ib);this.Jw(a,!1,!1,d,!0,f)});d&&(this.b.V.pg.$C=!0);if(!f&&!this.hA())return!1;this.zp();b=!1;d?(b=a.ib.clone(!0),b.find("*[id]").addBack().each(function(){this.id&&(this.id="copy_"+this.id)})):b=a.ib;a.oN.length?a.oN.before(b):(a.Pm.children("ul").length||
$("\x3cul /\x3e").appendTo(a.Pm),a.Pm.children("ul:eq(0)").append(b));try{a.zl.Bg(a.Sm),a.To.Bg(a.Pm),a.Sm.find("\x3e ul \x3e li").length||a.Sm.removeClass("oj-expanded oj-collapsed").removeAttr("aria-expanded").addClass("oj-tree-leaf").children("ul").remove()}catch(h){}d&&(this.b.V.pg.$C=!0,this.b.V.pg.nN=b);b=$.extend(!0,{},this.b.V.pg);b.obj=a.ib;this.nb(b,"move");return this.b.V.pg}},Ska:function(){return this.b.bd.pg},xI:function(a){var b=null;this.options.types&&(b=this.na(a));return b&&b.length?
b.attr(this.options.types.attr)||"default":!1},jfa:function(a,b){var c=this.options.types,d,e=!1;a=this.na(a);c&&a&&-1!=a&&a.length&&b&&(d=c.attr,c=c.types,d&&c&&c[b]&&(a.attr(d,b),a.addClass("oj-tree-type"),e=!0));return e},F6:function(a,b){b=this.na(b);var c=!1,d=this.xI(b),e=this.Vp().types,f=!1;if(-1===b)if(e[a])c=e[a];else return;else{if(!1===d)return;(f=this.b.types.bc.useData?b.data("oj-tree"):!1)&&f.types&&"undefined"!==typeof f.types[a]?c=f.types[a]:e.types[d]&&"undefined"!==typeof e.types[d][a]?
c=e.types[d][a]:e.types["default"]&&"undefined"!==typeof e.types["default"][a]&&(c=e.types["default"][a])}$.isFunction(c)&&(c=c.call(this,b));return c},Bg:function(a){var b,c,d,e=this.pk();ju(e)&&(b=fu.MP,c="draggable",d=!0);ku(e)&&(b+=" "+fu.sp);a=a&&-1!=a?$(a):this.aa;a=a.is("li")?a.find("li").addBack():a.find("li");a.removeClass("oj-tree-last").addClass("oj-tree-node").addClass(b).attr(c,d).filter("li:last-child").addClass("oj-tree-last").end().filter(":has(li)").not(".oj-expanded").removeClass("oj-tree-leaf").addClass("oj-collapsed").attr("aria-expanded",
"false");a.not(".oj-expanded, .oj-collapsed").addClass("oj-tree-leaf").children("ul").remove();var f=this.options.types?this.options.types.attr:!1;a.find("li");var h,k;$.each(a,function(){k=$(this);h=k.find("\x3e ins");1<h.length&&(h=$(h[0]));k.hasClass("oj-tree-leaf")?(h.removeClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default"),h.addClass("oj-tree-icon")):(h.addClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default"),
h.removeClass("oj-tree-node-icon"));f&&k.attr(f)&&k.addClass("oj-tree-type")})},Mv:function(a,b,c,d,e){a=a||-1;a=this.na(a);if(-1!==a&&!a.length)return null;var f;b="undefined"===typeof b?"last":b;if(!e&&!this.fm(a))return this.gm(a,function(){this.Mv(a,b,c,d,!0)}),null;this.zp();c=this.jm(c);if(!c)return null;c=c.children();e=$(c[0]);-1===a&&(a=this.ra,"before"===b&&(b="first"),"after"===b&&(b="last"));switch(b){case "before":a.before(e);f=this.kj(a);break;case "after":a.after(e);f=this.kj(a);break;
case "inside":case "first":a.children("ul").length||a.append("\x3cul /\x3e");a.children("ul").prepend(e);f=a;break;case "last":a.children("ul").length||a.append("\x3cul /\x3e");a.children("ul").append(e);f=a;break;default:a.children("ul").length||a.append("\x3cul /\x3e"),b||(b=0),f=a.children("ul").children("li").eq(b),f.length?f.before(e):a.children("ul").append(e),f=a}if(-1===f||f.get(0)===this.ra.get(0))f=-1;this.Bg(f);this.nb({obj:e,parent:f},"create");d&&d.call(this,e);1<this.aa[0].childNodes.length&&
this.aa.find(".oj-treenode-temp").remove();return e},Zd:function(a,b,c){a=this.na(a);if(!a||!a.length)return!1;c=c||!1;if(!a.hasClass("oj-disabled")&&!this.b.V.locked){if(!a.hasClass("oj-collapsed"))return b&&b.call(),!1;var d=this.nb({obj:a,func:"expand"},"before");if("boolean"!=typeof d||d){var d=c?0:this.nG,e=this;this.fm(a)?(this.options.expandParents&&a.parentsUntil(".oj-tree",".oj-collapsed").each(function(){e.Zd(this,!1,!0)}),a.removeClass("oj-collapsed").addClass("oj-expanded").attr("aria-expanded",
"true").children("a").removeClass("oj-tree-loading"),$(a.children()[0]).removeClass("oj-selected").addClass("oj-default"),!c&&d?this.Nk(a,!1):this.ZK($(a.children("UL")[0]),a),b&&b.call()):(a.children("a").addClass("oj-tree-loading"),this.gm(a,function(){e.Zd(a,b,c)},b))}}},IH:function(a,b,c){var d=a?a:-1;(a=a?this.na(a):-1)&&-1!==a?d=a:a=this.aa;c?a=a.find("li.oj-collapsed"):(c=a,a=a.is(".oj-collapsed")?a.find("li.oj-collapsed").addBack():a.find("li.oj-collapsed"));var e=this;a.each(function(){var a=
this;e.fm(this)?e.Zd(this,!1,!b):e.expand(this,function(){e.IH(a,b,c)},!b)});0===c.find("li.oj-collapsed").length&&this.nb({obj:a,targ:d},"expandAll")},xj:function(a,b,c){var d=this.b.V,e=this.b.ui,f=d.Ym;if(0==f)return!1;a=this.na(a);if(-1==a||!a||!a.length||a.hasClass("oj-disabled")||d.locked)return!1;c&&"touchend"==c.type||(e.vr=!1);var h=this.xh(a);if(!h){var k=this.nb({obj:a,func:"select"},"before");if("boolean"==typeof k&&!k)return!1}var k=this.options.selection.slice(0),l=this.options,m=e.bc.selectMultipleModifier,
n=e.bc.selectRangeModifier,p=e.bc.disableSelectingChildren,m="on"==m||!1!==m&&c&&w.q.Hm(c),n=!1!==n&&c&&c[n+"Key"]&&e.Fb&&this.b.ui.Fb[0]!==a[0]&&e.Fb.parent()[0]===a.parent()[0],q=!0,J=this;if(b){if(p&&m&&(a.parentsUntil(".oj-tree","li").children("a.oj-selected").length||a.children("ul").find("a.oj-selected:eq(0)").length))return!1;q=!1;switch(!0){case n:e.Fb.addClass("oj-tree-last-selected");a=a[a.index()<e.Fb.index()?"nextUntil":"prevUntil"](".oj-tree-last-selected").addBack();-1==f||a.length<
f?(e.Fb.removeClass("oj-tree-last-selected"),e.selected.each(function(){this!==e.Fb[0]&&J.Hp(this)}),h=!1,q=!0):q=!1;break;case e.vr&&-1==f:e.vr=!1;this.toggleSelect(a);q=!1;break;case h&&!m:if(!c)break;this.tA();e.HN||(h=!1);q=!0;break;case !h&&!m:c?e.selected&&1==e.selected.length?this.Hp(e.selected):this.tA(e.selected):1===f?this.Hp(e.selected):1<f&&this.tA();q=!0;break;case h&&m:this.deselect(a);break;case !h&&m:if(-1==f||e.selected.length+1<=f)q=!0}}b=!1;q&&!h&&(n||(e.Fb=a),a.children("a").addClass("oj-selected"),
a.attr("aria-selected","true"),b=!0,l.selectedParentExpand&&a.parents(".oj-collapsed").each(function(){J.Zd(this,!1,!0)}),e.selected=e.selected.add(a),this.QS(a.eq(0)),d.ur||this.Yv("selection",k,null,c));return b},Hp:function(a){a=this.na(a);if(!a.length)return!1;a.hasClass("oj-disabled")||this.b.V.locked||!this.xh(a)||(a.children("a").removeClass("oj-selected"),a.removeAttr("aria-selected"),this.b.ui.selected=this.b.ui.selected.not(a),this.b.ui.Fb&&this.b.ui.Fb.length&&this.b.ui.Fb.get(0)===a.get(0)&&
(this.b.ui.Fb=this.b.ui.selected.eq(0)))},tA:function(a){if(!this.b.V.locked&&(a=a?$(a).find("a.oj-selected").parent():this.ra.find("a.oj-selected").parent(),a.not(".oj-disabled"),0!==a.length)){var b=this;$.each(a,function(){b.Hp(this)})}},efa:function(a,b){if(this.b.V.locked)return null;if(a&&0<a.length){var c=this;$.each(a,function(a,d){d&&c.xj(d,!0,b)})}},zU:function(a){a.preventDefault();a.currentTarget.blur();if(!$(a.currentTarget).hasClass("oj-tree-loading")){this.Mg();if(!this.b.ui.qi){var b=
this.na(a.currentTarget);0<b.length&&-1!=b&&(this.b.ui.Tg=b);this.aa.focus()}this.xj(a.currentTarget,!0,a)}this.b.ui.vr=!1},uS:function(a,b){a=$(a);if(!a.hasClass("oj-disabled")&&!this.b.V.locked){var c=a.parent(),d=c.hasClass("oj-collapsed");if(c.hasClass("oj-expanded")||d)b?(a.addClass("oj-hover"),a.removeClass("oj-default"),a.removeClass("oj-selected")):(a.removeClass("oj-hover"),a.addClass("oj-default"))}},aba:function(a){if(!this.b.menu.OC&&(a=this.na(a),a.length&&!a.hasClass("oj-disabled")&&
!this.b.V.locked&&!a.hasClass("oj-hover"))){var b=this.nb({obj:a,func:"hover"},"before");if("boolean"!=typeof b||b)a.hasClass("oj-hover")||this.jS(),this.b.ui.ub=a.children("a").addClass("oj-hover").parent(),this.aa.attr("aria-activedescendant",this.b.ui.ub.attr("id")),this.QS(a),this.nb({obj:a},"hover")}},jS:function(){if(!this.b.menu.OC){var a=this.b.ui.ub,b;if(a&&a.length&&!a.hasClass("oj-disabled")&&!this.b.V.locked){b=a.find("a.oj-hover");if(!b.length&&(b=this.aa.find("a.oj-hover"),!b.length))return;
b.removeClass("oj-hover").parent();this.aa.removeAttr("aria-activedescendant");this.b.ui.ub=null;void 0!=a.attr("id")&&this.nb({obj:a},"dehover")}}},Pd:function(a){this.dX(a)},dX:function(a){var b=a?a:-1,c=this;this.Dea();a||(a=-1);(a=this.na(a))?b=a:a=-1;-1!==a?a.children("UL").remove():(this.aa.empty(),this.IW());this.gm(a,function(){c.nb({obj:b},"refresh");c.bC();c.Sda()})},fK:function(a){this.saveSelected();this.dX(a)},after_close:function(a){this.nb({obj:a},"after_close",!0)},mea:function(){var a=
this;this.b.V.qg.length&&$.each(this.b.V.qg,function(b,c){a.Zd(c,!1,!0)});this.nb({},"reopen",!0)},Sda:function(){var a,b=this.b.ui.Tg;b&&(a=b.attr("id"))&&(b=this.na("#"+a));this.b.ui.ub=this.b.ui.Tg=b},mI:function(a){var b,c,d;a=a?$(a).find("a.oj-selected").parent():this.b.ui.selected;b=[];d=a.length;for(c=0;c<d;c++)b.push(a[c]);return b},AK:function(a,b){a=this.na(a);if(!a.length)return!1;a=a.children("a:eq(0)");a=a.find("span:eq(0)");this.nb({obj:a,name:b},"set_text",!0);return a[0].textContent=
b},SV:function(){0!==this.b.Ma.type&&-1!==this.b.Ma.type?this.gm(-1,function(){this.UV();this.bC()}):(this.g6(),this.UV())},gm:function(a){this.nb({obj:a},"load_node",!0)},fm:function(){return!0},gca:function(a,b,c){var d=this;this.jca(a,function(){d.nb({obj:d.na(a)},"load_node",!0);b.call(this)},c)},Rba:function(a){a=this.na(a);return-1===a||!a||a.is(".oj-expanded, .oj-tree-leaf")||0<a.children("ul").children("li").length},Nda:function(a){(a=this.na(a))&&-1!==a&&a.removeData("oj-tree-children");
return this.fK(a)},ica:function(a,b,c){var d=this;this.fca(a,function(){d.nb({obj:d.na(a)},"load_node",!0);b.call(this)},c)},Tba:function(a){var b=this.options.data;a=this.na(a);return-1==a||!a||!b.ajax&&!this.b.Ma.vN&&!$.isFunction(b.data)||a.is(".oj-expanded, .oj-tree-leaf")||0<a.children("ul").children("li").length},hca:function(a,b,c){var d=this;this.eca(a,function(){d.nb({obj:d.na(a)},"load_node",!0);b.call(this)},c)},Sba:function(a){var b=this.options.data,c=null,d=null;b&&(c=b.data||null,d=
b.ajax||null);a=this.na(a);return-1==a||!a||!d&&!$.isFunction(c)||a.is(".oj-expanded, .oj-tree-leaf")||0<a.children("ul").children("li").length},reselect:function(){var a=this,b=this.b.ui.Ty,b=$.map($.makeArray(b),function(a){return"#"+a.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")});$.each(b,function(b,c){c&&"#"!==c&&a.select(c)});this.b.ui.selected=this.b.ui.selected.filter(function(){return this.parentNode});
this.nb(null,"reselect",!0)},saveSelected:function(){var a=this.b.ui;a.Ty=[];a.selected.each(function(){this.id&&a.Ty.push("#"+this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"))});this.nb(a.Ty,"savedselected",!0)},rollback:function(a){a&&$.isArray(a)},get_rollback:function(){this.nb(null,"get_rollback",!0);return{Hla:this.Dg(),si:this.ra.children("ul").clone(!0),vla:this.data}},jca:function(a,b){var c=this.qP(a&&
-1!=a?a[0].id:a?a:-1,a);if(c.success){var d=!a||-1===a,e=this.options.data;if(e.data&&!e.ajax||e.data&&e.ajax&&d)d&&((c=this.jm(c.JD,a))?(this.aa.empty().append(c.children()),this.Bg()):this.b.Ma.dg&&this.aa.empty()),b&&b.call(this);else if(!e.data&&e.ajax||e.data&&e.ajax&&!d)(c=this.jm(c.JD,a))?(d?(d=this.aa,d.empty().append(c.children()),d.attr("role","tree").attr("aria-labelledby",this.Kp).attr("tabindex","0").css("outline","none"),-1===this.b.V.Ym&&d.attr("aria-multiselectable",!0)):(a.append(c).children("a.oj-tree-loading").removeClass("oj-tree-loading"),
a.removeData("oj-tree-is-loading")),this.Bg(a),b&&b.call(this)):d?this.b.Ma.dg&&(this.aa.empty(),b&&b.call(this)):(a.children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading"),e.correct_state&&(this.Fp(a),b&&b.call(this)))}},qP:function(a,b){var c=[],d=this.DY,e,f={},h={success:!1,JD:null};-1==a&&(a=null,f.start=0);e=d.getChildCount(a);0<e?(f.count=e,d.fetchChildren(a,f,{success:function(a){for(var e=a.getCount(),f,k=0;k<e;k++){b={};(f=a.getData(k))&&(b.attr=f);
b.title=a.Kf[k].title;f.Mla&&(b.metadata=a.Kf[k].metadata);var l=b.attr.id;f=d.getChildCount(l);0<f&&(f=this.qP(l,b),b.children=f.JD);c.push(b)}h.success=!0;h.JD=c}.bind(this),error:function(){h.success=!1}})):h.success=!0;return h},Oda:function(a){a=this.na(a);if(!this.b.V.locked){var b=!a||-1!==a||!a.length;if(b||!a.hasClass("oj-disabled")){var c=this.options.data.json;!b&&this.b.Ma.Bu&&($.isFunction(c.data)||c.ajax)&&a.removeData("oj-tree-children");return this.fK(a)}}},fca:function(a,b,c){function d(){}
function e(){}var f=this.Vp().data,h=f&&f.data||null,k=f&&f.ajax||null;!f||h||k||(h=f);if((a=this.na(a))&&-1!==a&&(this.b.Ma.vN||this.b.Ma.Bu)&&!a.is(".oj-expanded, .oj-tree-leaf")&&0===a.children("ul").children("li").length&&a.data("oj-tree-children")){if(f=this.jm(a.data("oj-tree-children"),a))a.append(f),this.b.Ma.Bu||a.removeData("oj-tree-children");this.Bg(a);b&&b.call(this)}else{if(a&&-1!==a){if(a.data("oj-tree-is-loading"))return;a.data("oj-tree-is-loading",!0)}switch(!0){case !h&&!k:throw"ojTree - neither data nor ajax settings supplied.";
case $.isFunction(h):h.call(this,a,function(d){(d=this.jm(d,a))?(-1!==a&&a?(a.append(d).children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading")):this.aa.empty().append(d.children()),this.Bg(a),b&&b.call(this)):(-1!==a&&a?(a.children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading"),this.b.Ma.dg&&this.Fp(a)):this.b.Ma.dg&&this.aa.empty(),c&&c.call(this))}.bind(this));break;case !!h&&!k||!!h&&!!k&&(!a||-1===a):a&&-1!=a||((f=
this.jm(h,a))?(this.aa.empty().append(f.children()),this.Bg()):this.b.Ma.dg&&this.aa.empty());b&&b.call(this);break;case !h&&!!k||!!h&&!!k&&a&&-1!==a:e=function(b,d,e){var f=this.Vp().data.ajax.error;f&&f.call(this,d,e,b);-1!=a&&a.length?(a.children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading"),"success"===d&&this.b.Ma.dg&&this.Fp(a)):("error"==d||"success"===d&&this.b.Ma.dg)&&this.aa.empty();c&&c.call(this)},d=function(c,d,f){var h=this.Vp().data.ajax.success;
h&&(c=h.call(this,c,d,f)||c);if("string"==typeof c){d=c.replace(/^[\s\n]+$/,"");try{d=JSON.parse(d)}catch(k){d=null}if(!d)return e.call(this,f,"Bad JSON","")}(c=this.jm(c,a))?(-1!==a&&a?(a.append(c).children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading")):(f=this.aa,f.empty().append(c.children()),f.attr("role","tree").attr("aria-labelledby",this.Kp).attr("tabindex","0").css("outline","none"),-1===this.b.V.Ym&&f.attr("aria-multiselectable",!0)),this.Bg(a),b&&
b.call(this)):-1!==a&&a?(a.children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading"),this.b.Ma.dg&&(this.Fp(a),b&&b.call(this))):this.b.Ma.dg&&(this.aa.empty(),b&&b.call(this))},f.ajax.context=this,f.ajax.error=e,f.ajax.success=d,f.dataType||(f.ajax.dataType="json"),$.isFunction(f.ajax.url)&&(f.ajax.url=f.ajax.url.call(this,a)),$.isFunction(f.ajax.data)&&(f.ajax.data=f.ajax.data.call(this,a)),$.ajax(f.ajax)}}},jm:function(a,b,c){var d=!1,e,f,h,k;if(!a)return d;
this.b.Ma.Bu&&b&&-1!==b&&b.data("oj-tree-children",d);if("string"==typeof a)try{a=JSON.parse(a)}catch(l){a=[]}if($.isArray(a)){d=$("\x3cul\x3e");if(!a.length)return!1;f=0;for(h=a.length;f<h;f++)e=this.jm(a[f],b,!0),e.length&&(d=d.append(e));d=d.children()}else{"string"==typeof a&&(a={data:a});k="string"==typeof a.title?a.title:" ";d=$("\x3cli role\x3d'treeitem' /\x3e");a.attr&&(this.b.types.Mt&&!a.attr.type&&(a.attr.type="oj-tree-deftype",d.addClass("oj-tree-type")),d.attr(a.attr));a.metadata&&d.data(a.metadata);
a.children&&0===a.children.length&&d.addClass("oj-collapsed");a.state&&"s"===a.state&&d.addClass("oj-selected");a.data||(a.data={dummy:0});var m=!1,n;e=$("\x3ca tabindex\x3d'-1' /\x3e");$.each(a.data,function(b,c){$.isFunction(c)&&(c=c.call(this,a));"object"===typeof c&&("attr"==b?e.attr(c):"style"==b&&e.css(c),"language"==b&&e.addClass(c));m||(n=$("\x3cspan class\x3d'oj-tree-title'\x3e"),n[0].textContent=k,e.prepend("\x3cins class\x3d'oj-tree-icon oj-tree-node-icon oj-component-icon'\x3e\x26#160;\x3c/ins\x3e",
n),m=!0);!c.icon&&a.icon&&(c.icon=a.icon);c.icon&&(-1===c.icon.indexOf("/")?e.children("ins").addClass(c.icon):e.children("ins").css("background","url('"+c.icon+"') center center no-repeat"))});d.append(e);d.prepend("\x3cins class\x3d'oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default'\x3e\x26#160;\x3c/ins\x3e");a.children&&(this.b.Ma.vN&&"expanded"!==a.state?d.addClass("oj-collapsed").attr("aria-expanded","false").data("oj-tree-children",a.children):(this.b.Ma.Bu&&
d.data("oj-tree-children",a.children),$.isArray(a.children)&&a.children.length&&(e=this.jm(a.children,b,!0),e.length&&(b=$("\x3cul role\x3d'group' /\x3e"),b.append(e),d.append(b)))))}c||(c=$("\x3cul /\x3e"),c.append(d),d=c);return d},rQ:function(a,b,c,e){var f=[],h=this.options,k=this,l,m,n,q,p,D,J,Q,P;(a=this.na(a))&&-1!==a||(a=this.ra.find("\x3e ul \x3e li"));b=$.isArray(b)?b:["id","class"];!e&&h.types&&b.push(h.types.attr);c=$.isArray(c)?c:[];a.each(function(){q=$(this);l={};P=k.Rca(q);if(b.length||
P&&P.length)l.attr={};P&&$.each(P,function(a,b){0<q.attr(b).length&&(l.attr[b]=q.attr(b))});$.each(b,function(a,b){(m=q.attr(b))&&m.length&&m.replace(/oj-tree[^ ]*/ig,"").length&&(m=(" "+m).replace(/ oj-tree[^ ]*/ig,"").replace(/ oj-[^ ]*/ig,"").replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,""),m.length&&(l.attr[b]=m))});ju(k.pk())&&k.xh(q)&&(l.state="s");n=q.data();d(n)||(l.metadata=n);p=q.children("a");m=null;p.each(function(){D=$(this);c.length||D.children("ins").get(0).style.backgroundImage.length||
D.children("ins").get(0).className&&D.children("ins").get(0).className.replace(/oj-tree[^ ]*|$/ig,"").length?(Q=k.getText(D),$.each(c,function(a,b){J=(" "+(D.attr(b)||"")).replace(/ oj-tree[^ ]*/ig,"").replace(/ oj-[^ ]*/ig,"").replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"");J.length&&(m||(m={attr:{}}),m.attr[b]=J)}),D.children("ins").get(0).className.replace(/oj-tree[^ ]*|$/ig,"").replace(/^\s+$/ig,"").length&&(J=D.children("ins").get(0).className.replace(/oj-tree[^ ]*|$/ig,"").replace(/ oj-[^ ]*/ig,
"").replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,""),J.length&&(m||(m={}),m.icon=J)),D.children("ins").get(0).style.backgroundImage.length&&(J=D.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")",""),J.length&&(m||(m={}),m.icon=J))):Q=k.getText(D);null!=m&&(l.data||(l.data=[]),1<p.length?l.data.push(m):l.data=m);l.title=Q});q=q.find("\x3e ul \x3e li");q.length&&(l.children=k.rQ(q,b,c,!0));f.push(l)});return f},Rca:function(a){var b,c,d;if((a=a[0].attributes)&&a.length){c=
[];d=k.length;for(var e=0;e<a.length;e++)if(b=a[e]){b=b.name;for(var f=0;f<d&&k[f]!=b&&0!=b.indexOf("aria-");f++);f>=d&&c.push(b)}}return c&&0<c.length?c:null},Fp:function(a){a=this.na(a);if(!a||-1===a)return!1;a.removeClass("oj-collapsed oj-expanded").removeAttr("aria-expanded").addClass("oj-tree-leaf").children("ul").remove();a.find("ins:first-child").removeClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default").addClass("oj-tree-icon");this.nb({obj:a},
"correct_state",!0)},UV:function(){this.nb(null,"loaded")},eca:function(a,b,c){function d(){}function e(){}var f=this.Vp().data,h=f&&f.data||null,k=f&&f.ajax||null;if((a=this.na(a))&&-1!==a){if(a.data("oj-tree-is-loading"))return;a.data("oj-tree-is-loading",!0)}switch(!0){case !h&&!k&&f&&"string"===typeof f:this.RV(f,a,b,c);break;case $.isFunction(h):h.call(this,a,function(d){this.RV(d,a,b,c)}.bind(this));break;case !h&&!k:a&&-1!=a||(this.aa.empty().append(this.b.html.SC).find("li, a").filter(function(){return!this.firstChild||
!this.firstChild.tagName||"INS"!==this.firstChild.tagName}).prepend("\x3cins class\x3d'oj-tree-icon' \x3e\x26#160;\x3c/ins\x3e").end().filter("a").children("ins:first-child").not(".oj-tree-node-icon").addClass("oj-tree-node-icon").addClass("oj-tree-icon"),this.aa.find("li").children("ins:first-child").addClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default"),this.sB(this.aa),this.b.types.Mt&&this.vv(this.aa),this.Bg(),this.aa.find("ul").attr("role",
"group"),this.aa.find("li").attr("role","treeitem"),this.aa.find("a").attr("tabindex",-1));b&&b.call(this);break;case !!h&&!k||!!h&&!!k&&(!a||-1===a):a&&-1!=a||(f=$(h),f.is("ul")||(f=$("\x3cul /\x3e").append(f)),this.aa.empty().append(f.children()).find("li, a").filter(function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName}).prepend("\x3cins class\x3d'oj-tree-icon'\x3e\x26#160;\x3c/ins\x3e").end().filter("a").children("ins:first-child").not(".oj-tree-node-icon").addClass("oj-tree-node-icon").addClass("oj-tree-icon"),
this.aa.find("li.oj-tree-leaf ins:first-child").removeClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default").removeClass("oj-tree-node-icon").addClass("oj-tree-icon"),this.sB(this.aa),this.b.types.Mt&&this.vv(this.aa),this.Bg(),this.aa.find("ul").attr("role","group"),this.aa.find("li").attr("role","treeitem"),this.aa.find("a").attr("tabindex","-1"));b&&b.call(this);break;case !h&&!!k||!!h&&!!k&&a&&-1!==a:a=this.na(a),e=function(b,d,e){var f=this.Vp().data.ajax.error;
f&&f.call(this,b,d,e);-1!=a&&a.length?(a.children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading"),"success"===d&&this.b.Ma.dg&&this.Fp(a)):"success"===d&&this.b.Ma.dg&&this.aa.empty();c&&c.call(this)},d=function(c,d,f){var h=this.Vp().data.ajax.success;h&&(c=h.call(this,c,d,f)||c);if(""===c||c&&c.toString&&""===c.toString().replace(/^[\s\n]+$/,""))return e.call(this,f,d,"");if(c){c=$(c);c.is("ul")||(c=$("\x3cul /\x3e").append(c));-1!=a&&a?(a.children("a.oj-tree-loading").removeClass("oj-tree-loading"),
this.Xda(a),a.append(c).children("ul").find("li, a").filter(function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName}).prepend("\x3cins class\x3d'oj-tree-icon'\x3e\x26#160;\x3c/ins\x3e").end().filter("a").children("ins:first-child").not(".oj-tree-node-icon").addClass("oj-tree-node-icon").addClass("oj-tree-icon"),a.removeData("oj-tree-is-loading"),a.find("li.oj-tree-leaf ins:first-child").removeClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default").removeClass("oj-tree-node-icon").addClass("oj-tree-icon"),
c=a):(this.aa.empty().append(c.children()).find("li, a").filter(function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName}).prepend("\x3cins class\x3d'oj-tree-icon'\x3e\x26#160;\x3c/ins\x3e").end().filter("a").children("ins:first-child").not(".oj-tree-node-icon").addClass("oj-tree-node-icon").addClass("oj-tree-icon"),this.aa.find("li.oj-tree-leaf ins:first-child").removeClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default").removeClass("oj-tree-node-icon").addClass("oj-tree-icon"),
c=this.aa);this.gaa(c);this.sB(c);d=c.children("UL");if(1<=d.length){d=d.first().find("span.oj-tree-title");var k=this;$.each(d,function(){this.textContent=k.CA(this.textContent)})}this.b.types.Mt&&c&&this.vv(this.aa);this.Bg(a);b&&b.call(this)}else a&&-1!==a?(a.children("a.oj-tree-loading").removeClass("oj-tree-loading"),a.removeData("oj-tree-is-loading"),this.b.Ma.dg&&(this.Fp(a),b&&b.call(this))):this.b.Ma.dg&&(this.aa.empty(),b&&b.call(this)),this.aa.find("ul").attr("role","group"),this.aa.find("li").attr("role",
"treeitem")},f.ajax.context=this,f.ajax.error=e,f.ajax.success=d,f.ajax.dataType||(f.ajax.dataType="html"),$.isFunction(f.ajax.url)&&(f.ajax.url=f.ajax.url.call(this,a)),$.isFunction(f.ajax.data)&&(f.ajax.data=f.ajax.data.call(this,a)),$.ajax(f.ajax)}},gaa:function(a){a=a.find(a.is("ul")?"li ul":"ul").filter(function(){return!this.firstChild||0==this.childNodes.length||1==this.childNodes.length&&3==this.firstChild.nodeType});$.each(a,function(){$(this).closest("li").addClass("oj-collapsed")})},Xda:function(a){a=
a.find("ul").filter(function(){return!this.firstChild||0==this.childNodes.length||1==this.childNodes.length&&3==this.firstChild.nodeType});0<a.length&&a.remove()},RV:function(a,b,c){if(a&&""!==a&&a.toString&&""!==a.toString().replace(/^[\s\n]+$/,"")){a=$(a);a.is("ul")||(a=$("\x3cul /\x3e").append(a));-1!=b&&b?(b.children("a.oj-tree-loading").removeClass("oj-tree-loading"),b.append(a).children("ul").find("li, a").filter(function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName}).prepend("\x3cins class\x3d'oj-tree-icon'\x3e\x26#160;\x3c/ins\x3e").end().filter("a").children("ins:first-child").not(".oj-tree-node-icon").addClass("oj-tree-node-icon").addClass("oj-tree-icon"),
b.removeData("oj-tree-is-loading"),a=b,this.vv(this.Ula)):(this.aa.empty().append(a.children()).find("li, a").filter(function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName}).prepend("\x3cins class\x3d'oj-tree-icon oj-tree-disclosure-icon'\x3e\x26#160;\x3c/ins\x3e").end().filter("a").children("ins:first-child").not(".oj-tree-node-icon").addClass("oj-tree-node-icon").addClass("oj-tree-icon"),this.aa.find("li.oj-tree-leaf ins:first-child").removeClass("oj-tree-icon oj-tree-disclosure-icon oj-component-icon oj-clickable-icon-nocontext oj-default").removeClass("oj-tree-node-icon").addClass("oj-tree-icon"),
a=this.aa,this.vv(this.aa));a&&this.sB(a);a=a.children("UL");if(1<=a.length){a=a.first().find("span.oj-tree-title");var d=this;$.each(a,function(){this.textContent=d.CA(this.textContent)})}this.Bg(b);c&&c.call(this)}else b&&-1!==b?(b.children("a.oj-tree-loading").removeClass("oj-tree-loading"),b.removeData("oj-tree-is-loading"),this.b.Ma.dg&&(this.Fp(b),c&&c.call(this))):this.b.Ma.dg&&(this.aa.empty(),c&&c.call(this))},sB:function(a){$.each(a.find("li a"),function(a,b){var c=b.innerHTML,c=c.replace("ins\x3e",
"ins\x3e\x3cspan class\x3d'oj-tree-title'\x3e");b.innerHTML=c+"\x3c/span\x3e"})},vv:function(a){var b,c;this.b.types.Mt&&(c=(b=this.options.types)?b.attr:this.b.types.bc.attr,$.each(a.find("li"),function(a,b){b=$(b);b.attr(c)||b.attr(c,"oj-tree-deftype").addClass("oj-tree-type")}))},Dea:function(){var a=this;this.b.V.qg=[];this.aa.find("li.oj-expanded").each(function(){this.id&&a.b.V.qg.push("#"+this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,
"\\.").replace(/\:/g,"\\:"))})},bC:function(a){var b=this,c=!0,d=[],e=[],f,h;a||(this.b.V.wN=!1,this.b.V.kja=!0);this.Nba()&&(this.b.V.qg=[],this.aa.find("li.oj-collapsed").each(function(){h="#"+$(this).attr("id");b.isExpanded(h)||b.b.V.qg.push(h)}));this.b.V.qg=$.map($.makeArray(this.b.V.qg),function(a){return"#"+a.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")});this.b.V.Al=$.map($.makeArray(this.b.V.Al),function(a){return"#"+
a.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")});this.b.V.qg.length&&(this.b.V.Al=this.b.V.Al.concat(this.b.V.qg),this.b.V.Al=this.b.V.Al.reduce(function(a,b){0>a.indexOf(b)&&a.push(b);return a},[]));this.b.V.Al.length&&($.each(this.b.V.Al,function(a,c){if("#"==c)return!0;f=b.ra.find(c);f.length?b.isExpanded(c)||d.push(c):e.push(c)}),d.length&&(this.b.V.Al=e,$.each(d,function(a,d){b.fm(d)||(b.gm(d,function(){b.bC(!0)},
function(){b.bC(!0)}),c=!1)})));this.b.V.qg.length&&$.each(this.b.V.qg,function(a,c){b.isExpanded(c)||b.Zd(c,!1,!0)});c&&(this.b.V.wN&&clearTimeout(this.b.V.wN),this.b.V.wN=setTimeout(function(){b.nb({},"reload_nodes",!0)},50),this.b.V.kja=!1,this.mea())},setTheme:function(a,b){if(!a)return!1;b||(b=this.b.Hb.QK+a+"/style.css");-1==$.inArray(b,this.b.Hb.l2)&&(e({url:b}),this.b.Hb.l2.push(b));this.b.Hb.Ju!=a&&(this.ra.removeClass("oj-tree-"+this.b.Hb.Ju),this.b.Hb.Ju=a);this.ra.addClass("oj-tree-"+
a);this.b.Hb.Kx?this.hY():this.KU();this.b.Hb.icons?this.DK():this.gJ()},Qba:function(){return null!=this.b.Hb},Yka:function(){return this.b.Hb.Ju},isIcons:function(){return this.b.Hb.icons},DK:function(){this.b.Hb.icons=!0;this.ra.children("ul").removeClass("oj-tree-no-icons")},gJ:function(){this.b.Hb.icons=!1;this.ra.children("ul").addClass("oj-tree-no-icons")},toggleIcons:function(){},E8:function(){this.b.keys.qha=!0},pba:function(){this.iba();this.hba();this.ZU(!0);this.rba();lu(this.pk());this.gba();
this.tba();this.oba();this.$U();this.sba();mu(this.pk());this.On()},nb:function(a,b,c){if(b&&"string"===$.type(b)&&(!0!==this.b.V.locked||"unlock"===b||"isLocked"===b||"lock"===b)){var d,e=Array.prototype.slice.call(arguments);d=this.ra;var f="before"===b,h=c?!1:!0;h||(b="_tree"+b);var k={};k.item=a?a.obj:void 0;k.inst=d;f?(d=a.func,k.func=d,k.args=e,"rename"===d&&(k.title=a.title,k.prevTitle=a.prevTitle)):h&&("move"==b?(k.position=a.Qj,k.reference=a.qa,k.data=a):"rename"==b?(k.title=a.title,k.prevTitle=
a.prevTitle):"remove"==b?(k.parent=a.parent,k.prev=a.prev):"delete"==b?(k.prev=a.prev,k.parent=a.parent):"expandAll"===b||"collapseAll"===b||"deselectAll"===b?k.targ=a.targ:"loaded"===b?k.item=-1:"paste"==b&&(k.position=a.Qj,k.reference=a.qa));if(h){if(e=this._trigger(b,new $.Event("oj"+b),k),f)return"undefined"!=typeof e&&(e=e?!0:!1),e}else this.ra.trigger(b,k)}},Yv:function(a,b,c,d){"selection"===a&&(null==c&&(c=this.mI()),this.xR(b,c)||this.option(a,c,{_context:{originalEvent:d,Ia:!0},changed:!0}))},
zp:function(){return this.get_rollback()},Og:function(){this.zB&&this.ra.addClass("oj-tree-rtl").css("direction","rtl");this.ra.html("\x3cul role\x3d'tree' tabindex\x3d'0' class\x3d'oj-tree-list' style\x3d'outline:none'"+(-1===this.b.V.Ym?" aria-multiselectable\x3d'true'":"")+" aria-labelledby\x3d'"+this.Kp+"'\x3e\x3cli class\x3d'oj-tree-last oj-tree-leaf'\x3e\x3cins class\x3d'oj-tree-icon'\x3e\x26#160;\x3c/ins\x3e\x3ca class\x3d'oj-tree-loading' href\x3d'#'\x3e\x3cins class\x3d'oj-tree-icon'\x3e\x26#160;\x3c/ins\x3e"+
this.pI("stateLoading")+"\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e");this.aa=this.ra.children("ul:eq(0)");this.ra.data("oj-tree-instance-id",this.Dg());this.b.V.wo=this.aa.find("li.oj-collapsed, li.oj-tree-leaf").eq(0).height()||18;this.Rs&&this.ra.delegate(".oj-tree-list ins.oj-tree-disclosure-icon","touchend.ojtree",function(a){a.preventDefault();a=$(a.target);this.toggleExpand(a)}.bind(this));this.ra.delegate(".oj-tree-list ins.oj-tree-disclosure-icon","click.ojtree",function(a){a=$(a.target);this.toggleExpand(a)}.bind(this)).delegate(".oj-tree-list ins.oj-tree-disclosure-icon",
"mousedown",function(a){this.b.ui.KL=!0;$(a.target).removeClass("oj-default").removeClass("oj-hover").addClass("oj-selected")}.bind(this)).delegate(".oj-tree-list ins.oj-tree-disclosure-icon","mouseup",function(a){$(a.target).removeClass("oj-selected").addClass("oj-default")}.bind(this)).bind("mousedown.ojtree",function(a){this.Mg();a.shiftKey&&(this.pk()&&ju(this.pk())||a.preventDefault())}.bind(this)).bind("dblclick.ojtree",function(){var a;if(document.selection&&document.selection.empty)document.selection.empty();
else if(window.getSelection){a=window.getSelection();try{a.removeAllRanges(),a.collapse(document.getElementsByTagName("body")[0],0)}catch(b){}}});this.aa.focus(function(){if(this.b.ui.KL)return this.b.ui.KL=!1;this.b.ui.qi=!0;var a;this.b.ui.Tg?(this.b.ui.ub=this.b.ui.Tg,a=this.b.ui.ub):this.b.ui.Fb&&0<this.b.ui.Fb.length?(this.b.ui.ub=this.b.ui.Fb,a=this.b.ui.ub):a=this.aa.find("li:first");a&&(this.hover(a),this.b.ui.Tg=null,this.aa.find("a.oj-selected").removeClass("oj-tree-inactive"));return!1}.bind(this)).blur(function(){this.b.ui.qi=
!1;this.b.ui.Tg=this.b.ui.ub;this.b.ui.Tg&&this.dehover(this.b.ui.ub);this.aa.find("a.oj-selected").addClass("oj-tree-inactive")}.bind(this));this.nb({},"init",!0);this.SV();this.b.menu.bf&&this.xv();a({GU:this.Ss,HX:this.aa,sx:this});this.E8()},gba:function(){this.b.V.locked=!1;this.ra.addClass("oj-tree oj-tree-"+this.Dg());this.ra.css("outline","none");this.ra.css("MozUserSelect","none");this.ra.css("WebkitTouchCallout","none");this.ra.css("WebkitUserSelect","none");this.ra.css("-ms-user-select",
"none");this.ra.css("WebkitTapHighlightColor","rgba(0,0,0,0)")},tba:function(){this.b.ui.selected=$();this.b.ui.Fb=!1;this.b.ui.ub=null;var a=this.options.selection;a&&"array"===$.type(a)&&0<a.length&&(this.b.ui.Ty=a,this.options.selection=[]);this.Rs&&this.ra.delegate(".oj-tree-list a","touchend.ojtree",$.proxy(function(a){this.b.ui.vr=!0;this.zU(a);$(a.currentTarget).hasClass("oj-tree-loading")||this.dehover()},this));this.ra.delegate(".oj-tree-list a","click.ojtree",function(a){this.b.ui.vr=!1;
this.zU(a);return!1}.bind(this)).delegate(".oj-tree-list a","mouseenter.ojtree",function(a){$(a.currentTarget).hasClass("oj-tree-loading")||this.hover(a.target)}.bind(this)).delegate(".oj-tree-list a","mouseleave.ojtree",function(a){$(a.currentTarget).hasClass("oj-tree-loading")||this.dehover(a.target)}.bind(this)).delegate(".oj-tree-list .oj-tree-disclosure-icon","mouseenter.ojtree",function(a){$(a.currentTarget).hasClass("oj-tree-loading")||this.uS(a.target,!0)}.bind(this)).delegate(".oj-tree-list .oj-tree-disclosure-icon",
"mouseleave.ojtree",function(a){$(a.currentTarget).hasClass("oj-tree-loading")||this.uS(a.target,!1)}.bind(this)).bind("_treereopen",function(){this.reselect()}.bind(this)).bind("_treeget_rollback",function(){this.dehover();this.saveSelected()}.bind(this)).bind("ojcollapse",function(a,b){var c=this.na(b.item),d=c&&c.length?c.children("ul").find("a.oj-selected"):$(),e=this;!1!==this.options.selectedParentCollapse&&d.length&&d.each(function(){"selectParent"===e.options.selectedParentCollapse?(e.deselect(this),
e.select(c)):"deselect"===e.options.selectedParentCollapse&&e.deselect(this)})}.bind(this)).bind("ojremove",function(a,b){var c=this.options.selectPrevOnDelete,d=this.na(b.item),d=d&&d.length?d.find("a.oj-selected"):[],e=this,f;d.each(function(){e.deselect(this);e.b.ui.Tg&&(f=e.na(this))&&e.b.ui.Tg.attr("id")==f.attr("id")&&(e.b.ui.Tg=null)});c&&d.length&&b.prev&&b.prev.each(function(){if(this.parentNode)return e.select(this),!1})}.bind(this)).bind("ojmove",function(a,b){var c=b.data,d=c.$C;d&&c.nN&&
(c.nN.find("a.oj-selected").removeClass("oj-selected"),c.nN.removeAttr("aria-selected"));c.zl===c.To||d||(d=c.zl.b.ui,d.Tg&&(c.ib.attr("id")==d.Tg.attr("id")&&(d.Tg=null),d.Fb&&c.ib.attr("id")==d.Fb.attr("id")&&(d.Fb=null)))}.bind(this))},$U:function(){this.qba();this.nba();this.mba()},qba:function(){1===this.b.Ma.type&&(this.DY=this.options.data||null,this.gm=this.gca,this.fm=this.Rba,this.Pd=this.Nda)},nba:function(){3===this.b.Ma.type&&(this.b.Ma.Bu&&this.ra.bind("_treeafter_close",function(a,
b){b.item.children("ul").remove()}),this.gm=this.ica,this.fm=this.Tba,this.Pd=this.Oda)},mba:function(){4===this.b.Ma.type&&(this.IW(),this.gm=this.hca,this.fm=this.Sba,this.Pd=this.fK)},IW:function(){this.b.html.LE&&(this.b.html.tu||(this.b.html.tu=this.ra.find(" \x3e ul"),this.b.html.mE=$("\x3cdiv id\x3d'oj-tree-existing-markup-"+this.Dg()+"' style\x3d'display:none'\x3e").append(this.b.html.tu),this.ra.after(this.b.html.mE)),this.b.html.f1=this.b.html.tu.find(" \x3e li"),this.b.html.SC=this.b.html.f1.clone(!0),
this.b.html.SC.find("li").addBack().contents().filter(function(){return 3==this.nodeType}).remove())},oba:function(){!1===this.b.Hb.QK&&(this.b.Hb.QK="themes/");this.ra.bind("_treeinit",$.proxy(function(){var a=this.options;this.b.Hb.Kx=a.dots;this.b.Hb.icons=a.icons;this.setTheme(this.b.Hb.Ju,this.b.Hb.url)},this)).bind("ojloaded",$.proxy(function(){this.b.Hb.Kx?this.hY():this.KU();this.b.Hb.icons?this.DK():this.gJ()},this))},sba:function(){var a=this.options.types;a&&this.ra.bind("_treeinit",$.proxy(function(){var b=
$.extend(!0,{},a.types),c=a.attr||this.b.types.bc.attr,d="",f=this;$.each(b,function(a,b){$.each(b,function(a){/^(maxDepth|maxChildren|icon|validChildren)$/.test(a)||f.b.types.mZ.push(a)});var e=typeof b.icon;if("undefined"===e){e=typeof b.image;if("boolean"===e&&!b.image)b.image="ojt$none";else if(!b.image&&!b.position)return!0;b.icon={};b.image&&(b.icon.image=b.image,delete b.image);void 0!==b.position&&(b.icon.position=b.position,delete b.position)}if(b.icon.image||b.icon.position)"default"==a?
(f.b.types.Mt=!0,d+=".oj-tree-"+f.Dg()+" .oj-tree-list li.oj-tree-type a \x3e .oj-tree-node-icon { ",d+=f.zQ(b,d),d+="} ",d+=".oj-tree-"+f.Dg()+" .oj-tree-list li["+c+'\x3d"oj-tree-deftype"].oj-tree-type \x3e a ins.oj-tree-node-icon { '):b.icon.image&&(d+=".oj-tree-"+f.Dg()+" .oj-tree-list li["+c+'\x3d"'+a+'"].oj-tree-type \x3e a \x3e ins.oj-tree-node-icon { '),d+=f.zQ(b,d),d+="} "});""!==d&&e({FE:d,title:"oj-tree-types"})},this)).bind("ojbefore",$.proxy(function(a,b){var c,d,e=b.func,f=b.item;if((c=
(c=this.b.types.bc.useData?this.na(f):!1)&&-1!==c&&c.length?c.data("oj-tree"):!1)&&c.types&&!1===c[e]||-1!==$.inArray(e,this.b.types.mZ)&&b.item&&(b.item.tagName||b.item.jquery)&&(c=this.options.types.types,d=this.xI(f),(c[d]&&"undefined"!==typeof c[d][e]||c["default"]&&"undefined"!==typeof c["default"][e])&&!1===this.F6(e,f)))return a.stopImmediatePropagation(),!1},this))},zQ:function(a){var b="",b="ojt$none"!==a.icon.image?b+(" background-image:url("+a.icon.image+"); "):b+" background-image:none; ";
return b=a.icon.position?b+(" background-position:"+a.icon.position+"; "):b+" background-position:0 0; "},pk:function(){this.nv||(this.nv=new fu(this));return this.nv},ala:function(){},On:function(a){var b;a||this.options.contextMenu||(b=this.ra.attr("contextmenu"))&&(this.options.contextMenu="#"+b);if(a||this.options.contextMenu)if(b=a||this.options.contextMenu){if(b=$(b)){b.css("display","none");var c=this.b.menu;c.wd=b;c.bf=!0}this.b.menu.bf&&a&&this.xv()}},vh:function(a,b){if(!b.inst&&this.b.menu.Sja==
this.Kp){var c=b?b.item.attr("id"):void 0;"ojtreecopy"===c?this.S7(this.b.menu.Nj):"ojtreecut"===c?this.U7(this.b.menu.Nj):"ojtreepaste"===c||"ojtreepastebefore"===c||"ojtreepasteafter"===c?this.V7(this.b.menu.Nj,c):"ojtreeremove"===c?this.xh(this.b.menu.Nj)?this.YR():this.YR(this.b.menu.Nj):"ojtreerename"===c?this.ZR(this.b.menu.Nj):"ojtreecreate"===c&&this.T7(this.b.menu.Nj)}},Se:function(a,b,c){var d="keyboard"===c;if("contextmenu"==b.type||d||"touch"==c){this.b.menu.Nj=d?this.b.ui.ub:$(b.target);
var e=this.b.menu.Nj.find(".oj-tree-title")[0];this.b.menu.OC=null;if(this.b.menu.Nj){this.b.menu.Sja=this.b.menu.Nj.closest("div").attr("id");a={launcher:this.aa};d&&(a.position={of:e});if(this.b.menu.bf&&(this.b.menu.OE||this.b.menu.eh||this.b.menu.Ph)){var d=!this.b.bd.vm&&!this.b.bd.Nq,f=[this.b.menu.OE,this.b.menu.eh,this.b.menu.Ph],h,k,l=!1;for(k=0;k<f.length;k++)if(h=f[k])e=!!h.hasClass("oj-disabled"),e!=d&&(d?h.addClass("oj-disabled"):h.removeClass("oj-disabled"),l=!0);l&&this.b.menu.wd.ojMenu("refresh")}this.Te(b,
c,a)}else b.preventDefault()}},hba:function(){var a=this.options.selectionMode,a=void 0==a?"single":a;"none"===a?a=0:"single"===a?a=1:"multiple"===a&&(a=-1);this.b.V.Ym=a;this.b.Hb.icons=this.options.icons;this.bV();this.b.V.Al=this.options.initLoaded},dla:function(){},ZU:function(a){var b=this.options.data,c;this.b.Ma.type=0;this.b.html.LE=!1;this.b.html.SC=!1;if(b)if(c=$.type(b),"string"===c)this.Iba(b)?this.b.Ma.type=4:this.b.Ma.type=3;else if("array"===c)this.b.Ma.type=3;else if("object"===c){try{b instanceof
xu&&(this.b.Ma.type=1)}catch(d){this.b.Ma.type=-1}if(1!==this.b.Ma.type)try{b instanceof kt&&(this.b.Ma.type=2)}catch(e){this.b.Ma.type=-1}1!==this.b.Ma.type&&2!==this.b.Ma.type&&(b.data||b.ajax)&&((c=b.dataType)?"json"===c?this.b.Ma.type=3:"html"===c&&(this.b.Ma.type=4):(b.dataType="json",this.b.Ma.type=3))}a&&0==this.b.Ma.type&&0<this.ra.find("ul").length&&(this.b.Ma.type=4,this.b.html.LE=!0)},cla:function(){},$ka:function(){},Zka:function(){},bla:function(){},rba:function(){var a=this.options.types;
"object"===typeof a&&this.f6(a,{attr:this.b.types.bc.attr})},bV:function(){this.b.V.qg=this.xga(this.options,"initExpanded");null==this.b.V.qg&&(this.b.V.qg=[])},iba:function(){var a=this.b;a.V={via:[],Ym:1,Kla:!1,wo:0,qg:!1,Al:!1,pg:{},ur:!1,Kja:{}};a.ui={selected:$(),Fb:!1,ub:null,Tg:null,KL:!1,Ty:null,opacity:1,HN:!1,qi:!1,fZ:null,vr:!1};a.ui.bc={selectMultipleModifier:"ctrl",selectRangeModifier:"shift",disableSelectingChildren:!1};a.bd={};a.bd.Nq=!1;a.bd.vm=!1;a.bd.bc={inputWidthLimit:200,move:{alwaysCopy:!1,
openOnMove:!0,defaultPosition:"last",checkMove:function(){return!0}}};a.bd.pg={};a.Ma={};a.Ma.vN=!1;a.Ma.Bu=!1;a.Ma.dg=!0;a.Ma.type=0;a.Dia={};a.Dia.bc={data:!1,ajax:!1};a.html={};a.html.bc={data:!1,ajax:!1};a.html.LE=!1;a.html.tu=!1;a.html.mE=!1;a.html.f1=!1;a.html.SC=!1;a.Hb={};a.Hb.icons=!0;a.Hb.Kx=!1;a.Hb.Ju="default";a.Hb.url=!1;a.Hb.l2=[];a.Hb.QK=!1;a.types={};a.types.mZ=[];a.types.Mt=!1;a.types.bc={maxChildren:-1,maxDepth:-1,validChildren:"all",useData:!1,attr:"type",types:{"default":{maxChildren:-1,
maxDepth:-1,validChildren:"all"}}};a.menu={};a.menu.bf=!1;a.menu.wd=!1;a.menu.OE=!1;a.menu.Ph=!1;a.menu.eh=!1;a.menu.Nj=!1;a.menu.OC=!1;a.keys={};a.keys.qha=!0;a.keys.bound=[]},QS:function(a){var b=this.ra[0];b.scrollHeight>b.offsetHeight&&(a=this.na(a))&&-1!==a&&a.length&&a.is(":visible")&&(a=a.offset().top-this.ra.offset().top,0>a&&(b.scrollTop=b.scrollTop+a-1),a+this.b.V.wo+(b.scrollWidth>b.offsetWidth?l:0)>b.offsetHeight&&(b.scrollTop+=a-b.offsetHeight+this.b.V.wo+1+(b.scrollWidth>b.offsetWidth?
l:0)))},Mg:function(){},pla:function(){},Kca:function(){return++q},Dg:function(){return this.cba},Vp:function(){return $.extend(!0,{},this.options)},Lka:function(){return this.ra},Mka:function(){return this.aa},Ss:{up:function(){this.hover(this.bm(this.b.ui.ub||this.b.ui.Fb||-1));return!1},"ctrl+up":function(){this.hover(this.bm(this.b.ui.ub||this.b.ui.Fb||-1));return!1},"shift+up":function(){this.select(this.bm(this.b.ui.ub||this.b.ui.Fb||-1),-1!==this.b.ui.Ym);return!1},down:function(){this.hover(this.Up(this.b.ui.ub||
this.b.ui.Fb||-1));return!1},"ctrl+down":function(){this.hover(this.Up(this.b.ui.ub||this.b.ui.Fb||-1));return!1},"shift+down":function(){this.select(this.Up(this.b.ui.ub||this.b.ui.Fb||-1),-1!==this.b.ui.Ym);return!1},left:function(){var a=this.b.ui.ub||this.b.ui.Fb;a&&(a.hasClass("oj-expanded")?this.collapse(a):this.hover(this.bm(a)));return!1},"ctrl+left":function(){var a=this.b.ui.ub||this.b.ui.Fb;a&&(a.hasClass("oj-expanded")?this.collapse(a):this.hover(this.bm(a)));return!1},"shift+left":function(){var a=
this.b.ui.ub||this.b.ui.Fb;a&&(a.hasClass("oj-expanded")?this.collapse(a):this.hover(this.bm(a)));return!1},right:function(){var a=this.b.ui.ub||this.b.ui.Fb;a&&a.length&&(a.hasClass("oj-collapsed")?this.expand(a):this.hover(this.Up(a)));return!1},"ctrl+right":function(){var a=this.b.ui.ub||this.b.ui.Fb;a&&a.length&&(a.hasClass("oj-collapsed")?this.expand(a):this.hover(this.Up(a)));return!1},"shift+right":function(){var a=this.b.ui.ub||this.b.ui.Fb;a&&a.length&&(a.hasClass("oj-collapsed")?this.expand(a):
this.hover(this.Up(a)));return!1},space:function(){this.b.ui.ub&&(this.b.ui.HN=!0,this.b.ui.ub.children("a:eq(0)").click(),this.b.ui.HN=!1);return!1},home:function(){this.hover(this.aa.find("li:first"));return!1},end:function(){var a=this.aa.find("li.oj-tree-last:visible");a&&a.length&&this.hover(a[a.length-1]);return!1},"*":function(){this.aa.find("a");this.IH(-1,!1);return!1},"ctrl+space":function(){if(this.b.ui.ub){var a=$.Event("click");a.ctrlKey=!0;this.b.ui.ub.children("a:eq(0)").trigger(a)}return!1},
"shift+space":function(){if(this.b.ui.ub){var a=$.Event("click");a.shiftKey=!0;this.b.ui.ub.children("a:eq(0)").trigger(a)}return!1},"shift+home":function(a){var b,c=this.b.ui.ub;if(c){var d=!0,e=this,f=this.aa.find("li:visible");this.b.V.ur=!0;b=this.options.selection.slice(0);c=c[0];$.each(f,function(a,b){b==c&&(d=!1);e.xj(b,!0);return d});this.b.V.ur=!1;this.Yv("selection",b,null,a)}return!1},"shift+pgdn":function(a){var b,c=this.b.ui.Fb||this.b.ui.ub;if(c){var d=!1,e=this,f=this.aa.find("li:visible");
this.b.V.ur=!0;b=this.options.selection.slice(0);c=c[0];$.each(f,function(a,b){d||(d=b==c);d&&!e.xh(b)&&e.xj(b,!0);return!0});this.b.V.ur=!1;this.Yv("selection",b,null,a)}return!1},f2:function(){this.ZR(this.b.ui.ub||this.b.ui.Fb);return!1},del:function(){this.remove(this.b.ui.ub||this.na(null));return!1}},xv:function(){if(this.b.menu.bf){var a=this.b.menu.wd,b=this;a.on("ojselect",$.proxy(this.vh,this));var c=!1;a.find("[data-oj-command]").each(function(){var a;0===$(this).children("a").length&&
(a=$(this).attr("data-oj-command").split("oj-tree-"),$(this).replaceWith(b.Ag(a[a.length-1])),$(this).hasClass("oj-menu-divider")&&$(this).removeClass("oj-menu-divider").addClass("oj-menu-item"),c=!0)});c&&a.ojMenu("refresh");this.b.menu.OE=a.find("#ojtreepaste");this.b.menu.Ph=a.find("#ojtreepasteafter");this.b.menu.eh=a.find("#ojtreepastebefore")}},Dp:function(){var a=this.b.menu;a.bf&&(a.bf=!1,a.wd.off("ojselect"),a.wd=null)},Ag:function(a){return $(this.Xd(a))},Xd:function(a){return"\x3cli id\x3d"+
f[a]+"\x3e"+this.Cv(a)+"\x3c/li\x3e"},Cv:function(a){return'\x3ca href\x3d"#"\x3e'+this.pI(h[a])+"\x3c/a\x3e"},U7:function(a){a=a.closest("li");this.xh(a)&&(a=null);a=this.na(a,!0);if(!a||!a.length)return!1;this.b.bd.Nq=!1;this.b.bd.vm=a;this.nb({obj:a},"cut")},S7:function(a){a=a.closest("li");this.xh(a)&&(a=null);a=this.na(a,!0);if(!a||!a.length)return!1;this.b.bd.vm=!1;this.b.bd.Nq=a;this.nb({obj:a},"copy")},V7:function(a,b){a=this.na(a);if(!a||!a.length)return!1;var c=this.b.bd.vm?this.b.bd.vm:
this.b.bd.Nq;if(!this.b.bd.vm&&!this.b.bd.Nq)return!1;var d="inside";"ojtreepasteafter"===b?d="after":"ojtreepastebefore"===b&&(d="before");this.b.bd.vm&&(this.XR(this.b.bd.vm,a,d,!1,!1,!0),this.b.bd.vm=!1);this.b.bd.Nq&&this.XR(this.b.bd.Nq,a,d,!0,!1,!0);this.nb({obj:c,Qj:d,qa:a},"paste")},XR:function(a,b,c,d,e,f){var h=this.b.bd.bc.move;if(!e)return"undefined"===typeof c&&(c=h.defaultPosition),"inside"!==c||h.defaultPosition.match(/^(before|after)$/)||(c=h.defaultPosition),this.Jw(a,b,c,d,!1,f);
if(!0===h.alwaysCopy||"multitree"===h.alwaysCopy&&a.To.Dg()!==a.zl.Dg())d=!0;this.Jw(a,b,c,d,!0,f)},YR:function(a){a=this.na(a,!0);this.zp();this.remove(a)},ZR:function(a){a=this.na(a);this.zp();this.$R(a,function(){})},$R:function(a,b){a=this.na(a);var c=this.zB,d=this.b.bd.bc.inputWidthLimit,e=a.children("ins").width(),f=a.find("\x3e a:visible \x3e ins").width()*a.find("\x3e a:visible \x3e ins").length,h=this.getText(a),k=this,l=$("\x3cdiv /\x3e",{css:{position:"absolute",top:"-200px",left:c?"0px":
"-1000px",visibility:"hidden"}}).appendTo("body"),m=a.css("position","relative").append($("\x3cinput /\x3e",{value:h,"class":"oj-tree-rename-input",css:{padding:"0",border:"1px solid silver",position:"absolute",left:c?"auto":e+f+4+"px",right:c?e+f+4+"px":"auto",top:"0px",height:this.b.V.wo-2+"px",lineHeight:this.b.V.wo-2+"px",width:"150px"},blur:$.proxy(function(){var c=a.children(".oj-tree-rename-input"),d=c.val();""===d&&(d=h);l.remove();c.remove();this.AK(a,h);this.nX(a,d);b.call(this,a,d,h);a.css("position",
"")},this),keyup:function(a){a=a.keyCode||a.which;if(!k.zH)return k.zH=!0,!1;27==a?(k.zH=!1,this.value=h,this.blur()):13==a?(k.zH=!1,this.blur()):m.width(Math.min(l.text("pW"+this.value).width(),d))},keypress:function(a){if(13==(a.keyCode||a.which))return!1}})).children(".oj-tree-rename-input");this.AK(a,"");l.css({fontFamily:m.css("fontFamily")||"",fontSize:m.css("fontSize")||"",fontWeight:m.css("fontWeight")||"",fontStyle:m.css("fontStyle")||"",fontStretch:m.css("fontStretch")||"",fontVariant:m.css("fontVariant")||
"",letterSpacing:m.css("letterSpacing")||"",wordSpacing:m.css("wordSpacing")||""});m.width(Math.min(l.text("pW"+m[0].value).width(),d))[0].select()},T7:function(a,b,c,d,e){var f=this;(a=this.na(a))||(a=-1);this.zp();return this.Mv(a,b,c,function(a){var b=this.kj(a),c=$(a).index();d&&d.call(this,a);b.length&&b.hasClass("oj-collapsed")&&this.expand(b,!1,!0);e?f.nb({obj:a,name:this.getText(a),parent:b,position:c}):this.$R(a,function(a,d){f.nb({obj:a,name:d,parent:b,position:c})})})},Iba:function(a){var b=
!1;a&&3<=a.length&&(a=a.trim(),b="\x3c"===a.charAt(0));return b},g6:function(){var a=this.options.emptyText;"string"!==typeof a&&(a=this.pI("labelNoData"));if(a&&0<a.length){var b=this.aa,c=$("\x3cli class\x3d'oj-tree-empty'\x3e\x3c/li\x3e");c[0].textContent=a;b.empty().append(c)}},xda:function(a){var b,c,d;d=null;var e;a&&(b=a.subId);if(!b)return null;d=b.split("[");if(3===d.length&&(d[0]=d[0].trim(),"oj-tree-node"===d[0]&&(d[1]=d[1].trim(),b=d[1].charAt(0),b=d[1].indexOf(b,1),0<=b&&(a=d[1].substring(1,
b).trim(),d[2]=d[2].trim(),b=d[2].charAt(0),b=d[2].indexOf(b,1),0<=b)))){d=d[2].substring(1,b).trim();try{c=this.na(a)}catch(f){c=null}if(d&&c&&-1!==c)switch(d){case "icon":this.b.Hb.icons&&(e=c.find(" \x3e a \x3e ins:eq(0)"));break;case "link":e=c.find(" \x3e a:eq(0)");break;case "disclosure":this.sJ(c)||(e=c.find(" \x3e ins:eq(0)"));break;case "title":e=c.find(" \x3e a \x3e span")}}return e?e.length?e[0]:null:null},Y9:function(a){var b=a?this.na(a):null,c,d=null;b&&-1!=b&&b.length&&b.hasClass("oj-tree-node")&&
a.tagName&&a.parentNode&&(b=a.tagName,c=a.parentNode,c=c.tagName,"SPAN"===b?d="title":"A"===b?d="link":"INS"===b&&(a=$(a),"LI"===c&&a.hasClass("oj-tree-disclosure-icon")?d="disclosure":"A"===c&&a.hasClass("oj-tree-node-icon")&&(d="icon")));return d},KU:function(){this.b.Hb.Kx=!1;this.ra.children("ul").addClass("oj-tree-no-dots")},hY:function(){this.b.Hb.Kx=!0;this.ra.children("ul").removeClass("oj-tree-no-dots")},Nba:function(){var a=this.options.initExpanded;return a&&"all"==a||$.isArray(a)&&a.length&&
"all"==a[0]},pI:function(a){var b=this.b.V.Kja,c;c=b[a];c||(c=this.r(a),c=this.CA(c),b[a]=c);return c},CA:function(a){var b=document.createElement("div");$(b).text(a);return b.textContent},Tka:function(){return this.b.V.wo},b9:function(){var a=0,b,c;window.getComputedStyle&&(c=this.b.ui.fZ,c||(c=$("\x3cdiv id\x3d'ojtree-comp-animduration'\x3e\x3cspan class\x3d'oj-tree-transition'\x3edummy\x3c/span\x3e\x3c/div\x3e"),this.b.ui.fZ=c,$("body").append(c)),b=c[0].childNodes[0],b=window.getComputedStyle(b),
b=b.transitionDuration?b.transitionDuration:b["-webkit-transition-duration"]?b["-webkit-transition-duration"]:0,c.detach(),"string"==typeof b&&1<b.length&&(c=b.charAt(b.length-1).toLowerCase(),"s"==c?(b=b.substring(0,b.length-1),b=parseFloat(b),isNaN(b)||(a=1E3*b)):2<b.length&&(c=b.substring(b.length-2).toLowerCase(),"ms"==c&&(b=parseFloat(b),isNaN(b)||(a=b)))));return a},xga:function(a,b){var c={};c[b]=a[b];return $.extend(!0,{},c)[b]},PY:function(a){this.nb({obj:{msg:a}},"trace",!0)}})})();
(function(){function a(a){for(;a;){a=a.nextSibling;var b=!0;if(a){var c=a.style;!c||c.visibility!==m&&c.display!==n||(b=!1)}if(a&&1===a.nodeType&&b)return a}return null}function b(a,b){for(var c=a;c;){var d=c.style;if(d&&(d.visibility===m||d.display===n))break;d=c.parentNode;if(d===b)return c;c=d}return null}function c(a,b){return b.pc<a.pc?1:a.pc<b.pc?-1:0}function d(a){a&&a.sort(c);return a}function e(a){var b=null;a=$(a);a.hasClass("oj-masonrylayout-tile-1x1")?b={colSpan:1,rowSpan:1}:a.hasClass("oj-masonrylayout-tile-2x1")?
b={colSpan:2,rowSpan:1}:a.hasClass("oj-masonrylayout-tile-3x1")?b={colSpan:3,rowSpan:1}:a.hasClass("oj-masonrylayout-tile-1x2")?b={colSpan:1,rowSpan:2}:a.hasClass("oj-masonrylayout-tile-1x3")?b={colSpan:1,rowSpan:3}:a.hasClass("oj-masonrylayout-tile-2x2")?b={colSpan:2,rowSpan:2}:a.hasClass("oj-masonrylayout-tile-2x3")?b={colSpan:2,rowSpan:3}:a.hasClass("oj-masonrylayout-tile-3x2")&&(b={colSpan:3,rowSpan:2});return b}function f(a){var b=null;a=$(a);a.hasClass("oj-masonrylayout-tile-1x1")?b="oj-masonrylayout-tile-1x1":
a.hasClass("oj-masonrylayout-tile-2x1")?b="oj-masonrylayout-tile-2x1":a.hasClass("oj-masonrylayout-tile-3x1")?b="oj-masonrylayout-tile-3x1":a.hasClass("oj-masonrylayout-tile-1x2")?b="oj-masonrylayout-tile-1x2":a.hasClass("oj-masonrylayout-tile-1x3")?b="oj-masonrylayout-tile-1x3":a.hasClass("oj-masonrylayout-tile-2x2")?b="oj-masonrylayout-tile-2x2":a.hasClass("oj-masonrylayout-tile-2x3")?b="oj-masonrylayout-tile-2x3":a.hasClass("oj-masonrylayout-tile-3x2")&&(b="oj-masonrylayout-tile-3x2");return b}
function h(a,b){$(a).removeClass(b)}function k(a,b){$(a).addClass(b)}w.sa("oj.ojMasonryLayout",$.oj.baseComponent,{defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{reorderHandle:null,beforeInsert:null,insert:null,beforeRemove:null,remove:null,beforeResize:null,resize:null,beforeReorder:null,reorder:null},_ComponentCreate:function(){this._super();this.element.addClass("oj-masonrylayout oj-component");this.options.disabled&&w.l.warn(v);this.nr=this.eventNamespace+"ReorderHandle";this.la=
{};this.la.bf=!1;this.la.wd=!1;this.la.WN=!1;this.la.eh=!1;this.la.Ph=!1;this.On();this.xv();this.Aa(!0)},refresh:function(){this._super();var a="rtl"===this.$b()!==this.Vf;a&&this.nS();this.Aa(a)},Nl:function(){this._super();this.Zc&&this.Aa(this.Zc[0])},Ml:function(){this._super();this.Zc&&this.Aa(this.Zc[0])},Se:function(a,b,c){this.nda(b);(a=this.la.wd.children().not(".oj-helper-hidden"))&&0<a.length&&this.Te(b,c,{launcher:$(b.target).closest(":tabbable")})},Aa:function(a){if(this.Ev()){this.Zc=
null;this.Vf="rtl"===this.$b();this.sn=w.q.ud();var b=this.element,c=this.options;if(a){var l=this;this.$n=function(a){l.Bfa(a)};this.Ks=function(a){l.Zaa(a)};this.Ts=function(){l.bca()};this.Dk=function(){l.aca()};this.Un=function(){l.$ba()};if(!this.qf){var m={};m.m2=s;var n={p2:"oj-masonrylayout-transition-resize-to",o2:"oj-masonrylayout-transition-resize-to-fast",t2:"oj-masonrylayout-tile-transition-move-to",s2:"oj-masonrylayout-tile-transition-move-to-fast",q2:"oj-masonrylayout-tile-transition-hide-from",
r2:"oj-masonrylayout-tile-transition-hide-to"};n.v2=u;n.w2="oj-masonrylayout-tile-transition-show-to";n.u2="oj-masonrylayout-tile-transition-resize-to";var q={};q.Fx=k;q.My=h;q.H_=f;q.J_=e;q.Z1=this.$n;q.f0=this.Ks;q.A0=this.Ts;q.z0=this.Dk;q.y0=this.Un;q.c2=d;q.me=w.Components.me;q.af=w.Components.af;this.Cea();this.qf=new yu(b[0],this.Vf,"enabled"===w.T.cM(),m,n,q)}this.pU=function(a){l.NI(a)};this.mU=function(a){l.JI(a)};this.oU=function(a){l.MI(a)};this.nU=function(a){l.KI(a)};this.kU=function(a){l.II(a)};
this.qU=function(a){l.OI(a)};c.reorderHandle&&this.dY()}else c=b.children(),this.OK(c),this.CK(c),this.I6();this.qf.Tj(a);a&&(this.Gg=function(){l.Ae()},w.q.Ch(b[0],this.Gg))}else b=!1,this.Zc&&(b=this.Zc[0]),this.Zc=[a||b]},_destroy:function(){this.Dp();var a=this.element;w.q.Hi(a[0],this.Gg);this.Gg=null;this.xea();for(var b=this.xk(),c=b.length,d=0;d<c;d++)delete b[d].pc;this.nS();a.removeClass("oj-masonrylayout oj-component");this.options.reorderHandle&&this.EY();this.bs=this.Un=this.Dk=this.Ts=
this.Ks=this.$n=this.qU=this.kU=this.nU=this.oU=this.mU=this.pU=null;this._super()},_setOption:function(a,b,c){var d=!1;switch(a){case "reorderHandle":this.EY();d=!0;break;case "disabled":w.l.warn(v);break;case "contextMenu":w.q.ud()||(this.Dp(),b&&this.On(b))}this._super(a,b,c);d&&b&&this.dY()},resizeTile:function(a,b){var c=this.qf;zu(c)&&Au(c);var d=$(a),e=d[0],h=f(e);if(b==h)throw Error("JET MasonryLayout: Unable to resize child "+a+" to style class "+b+" because "+b+" is already applied.");!1!==
this._trigger("beforeResize",null,{tile:d,previousSizeStyleClass:h,sizeStyleClass:b})&&(this.zv||(this.zv=[]),this.zv.push(e,h,b),c.resizeTile(a,b))},insertTile:function(a,b){var c=this.qf;zu(c)&&Au(c);isNaN(b)&&(b=-1);var d=$(a),e=d[0];if(!1!==this._trigger("beforeInsert",null,{tile:d,index:b})){e.KV=b;Bu(c)&&d.addClass(u);d=e.style;d.top="-1px";this.Vf?d.right="-1px":d.left="-1px";this.Pn(e,b);var d=b,f=Cu(c);c.ox&&c.ox(f);var h=null;0<=d&&d<f.length&&(h=f[d]);c.ac.insertBefore(e,h);Du(c);w.Components.me(e);
this.bs||(this.bs=[]);this.bs.push(a)}},removeTile:function(a){var b=this.qf;zu(b)&&Au(b);var c=$(a),d=c[0];if(w.Jc.WC(d)){var e=this.xk(!0),d=e.indexOf(d);0<d&&(this.tH=e[d-1])}!1!==this._trigger("beforeRemove",null,{tile:c})&&(a=b.ac.querySelector(a))&&(b.ak||(b.ak=[]),b.ak.push(a),b.PU=!0,Du(b))},Ae:function(){if(!this.ck&&!this.TU){var a=this.qf;a.vX||a.PU||a.FK||(a.Dk&&a.Dk(),Eu(a,!1),Fu(a))}},Bfa:function(a){var b=$(a),c=a.KV;delete a.KV;this.options.reorderHandle&&this.CK(b);this._trigger("insert",
null,{tile:b,index:c})},Zaa:function(a){var b=$(a);this.options.reorderHandle&&this.OK(b);w.Components.af(a);a.parentNode.removeChild(a);this.fC(a);this._trigger("remove",null,{tile:b})},bca:function(){if(this.bs){for(var a=this.qf,b=this.bs,c=0;c<b.length;c++){var d=a,e=d.ac.querySelector(b[c]);e&&(d.Wh||(d.Wh=[]),d.Wh.push(e),d.FK=!0,d.sj!==Gu&&d.sj!==Hu?Du(d):d.FK=!1)}this.bs=null}if(this.zv){a=this.zv;for(c=0;c<a.length;c+=3)b=a[c+1],d=a[c+2],b={tile:$(a[c]),previousSizeStyleClass:b,sizeStyleClass:d},
this._trigger("resize",null,b);this.zv=null}this.ck&&(this.Xz?this.H$():this.sG&&this.lU())},aca:function(){this.TU=!0;this.EB=null;var a=document.activeElement;a&&w.q.gl(this.element[0],a)&&(this.EB=a)},$ba:function(){this.TU=!1;var a=this.element[0];if(this.EB){var b=this.EB;this.EB=null;if(this.tH){if(b=this.tH,this.tH=null,b&&w.q.gl(a,b)){var a=this.xk(a,!0),c=a.indexOf(b);0<=c&&c<a.length-1?w.Jc.$L(a[c+1]):w.Jc.$L(b)}}else w.q.gl(a,b)?w.Jc.Nx(b):w.Jc.$L(a)}},nS:function(){var a=this.qf;a&&a.destroy();
this.qf=null},Ev:function(){var a=document.createElement("div"),b=a.style;b.width="10px";b.height="10px";b=this.element[0];b.appendChild(a);var c=!1;try{c=0<a.offsetWidth&&0<a.offsetHeight}catch(d){}b.removeChild(a);return c},xk:function(a){for(var b=this.element.children(s),c=b.length,d=[],e=0;e<c;e++){var f=b[e];if(!a||a&&f!==this.Ad){var h=f.style;h.visibility!==m&&h.display!==n&&d.push(f)}}return d},Cea:function(){var a=this.xk();if(a)for(var b=0;b<a.length;b++){var c=a[b];c.pc||(c.pc=b+1)}},
I6:function(){var a=this.xk();if(a)for(var b=0;b<a.length;b++){var c=a[b];c.pc||this.Pn(c,b)}},xea:function(){var a=this.xk(),b=this.xk();d(b);for(var c=0;c<a.length;c++){var e=a[c],f=b[c];e!=f&&(w.Components.af(f),e.parentNode.insertBefore(f,e),w.Components.me(f),e=a.indexOf(f),e>c&&(a.splice(e,1),a.splice(c,0,f)))}},Pn:function(a,b){var c=this.xk();0>b&&(b=c.length);if(c)for(var d=0;d<c.length;d++){var e=c[d];e.pc&&e.pc>=b+1&&e.pc++}a.pc=b+1},fC:function(a){if(a.pc){var b=this.xk();if(b)for(var c=
0;c<b.length;c++){var d=b[c];d.pc&&d.pc>a.pc&&d.pc--}delete a.pc}},On:function(a){var b=null,c=null;a||this.options.contextMenu||(b=this.element.attr("contextmenu"))&&(this.options.contextMenu="#"+b);if(a||this.options.contextMenu){b=a||this.options.contextMenu;c=$.type(b);if("function"==c){try{b=b()}catch(d){b=null}$.type(b)}if(b){if(b=$(b)){b.css("display",n);c=this.la;if(!c)return;c.wd=b;c.bf=!0}this.la.bf&&a&&this.xv()}}},xv:function(){if(this.la&&this.la.bf&&this.options.reorderHandle){var a=
this.la.wd,b=this;a.on("ojselect",$.proxy(this.vh,this));var c=!1;a.find("[data-oj-command]").each(function(){if(0===$(this).children("a").length){var a=$(this).attr("data-oj-command").slice(17);$(this).replaceWith(b.Ag(a));$(this).addClass("oj-menu-item");c=!0}});c&&a.ojMenu("refresh");this.la.WN=a.find("#"+y);this.la.eh=a.find("#"+z);this.la.Ph=a.find("#"+B)}},Dp:function(){var a=this.la;a&&a.bf&&(a.bf=!1,a.wd.off("ojselect"),a.wd=null)},nda:function(c){var d=this.element,e=c.originalEvent.target,
f=this.options.reorderHandle;c=!1;f&&(f=$(e).closest(f))&&0<f.length&&(c=!0);d=b(e,d[0]);this.la.tile=d;if(this.la.bf){var e=this.la.ZC,f=!1,h=this.la.WN;if(h){var k=h.hasClass("oj-helper-hidden");c||k?c&&k&&(h.removeClass("oj-helper-hidden"),f=!0):(h.addClass("oj-helper-hidden"),f=!0);var l=h.hasClass(q),k=!1;e&&d===e&&(k=!0);k&&!l?(h.addClass(q),f=!0):!k&&l&&(h.removeClass(q),f=!0)}if(h=this.la.eh)k=h.hasClass("oj-helper-hidden"),c||k?c&&k&&(h.removeClass("oj-helper-hidden"),f=!0):(h.addClass("oj-helper-hidden"),
f=!0),l=h.hasClass(q),k=!1,e&&d!==e&&d!==a(e)||(k=!0),k&&!l?(h.addClass(q),f=!0):!k&&l&&(h.removeClass(q),f=!0);if(h=this.la.Ph)k=h.hasClass("oj-helper-hidden"),c||k?c&&k&&(h.removeClass("oj-helper-hidden"),f=!0):(h.addClass("oj-helper-hidden"),f=!0),c=h.hasClass(q),k=!1,e&&e!==d&&e!==a(d)||(k=!0),k&&!c?(h.addClass(q),f=!0):!k&&c&&(h.removeClass(q),f=!0);f&&this.la.wd.ojMenu("refresh")}},Ag:function(a){var b=C[a];a=F[a];var c=$('\x3ca href\x3d"#"\x3e\x3c/a\x3e');c.text(this.r(a));c.wrap("\x3cli id\x3d"+
b+"\x3e\x3c/li\x3e");return c.parent()},oca:function(a){a&&(this.la.ZC=a)},aW:function(a,b){if(a&&this.la.ZC){var c=this.la.ZC;this.la.ZC=!1;this.k8(c,a,b)}},k8:function(b,c,d){var e=b.pc-1,f=$(b);if(!1!==this._trigger("beforeReorder",null,{tile:f,fromIndex:e})){this.fC(b);var h=c.pc-1;d||h++;var k=this.element[0];d||(c=a(c));this.Pn(b,h);k.insertBefore(b,c);this.qf.Tj(!0);this._trigger("reorder",null,{tile:f,fromIndex:e,toIndex:h})}},vh:function(a,b){var c=b?b.item.attr("id"):void 0;c===y?this.oca(this.la.tile):
c===z?this.aW(this.la.tile,!0):c===B&&this.aW(this.la.tile,!1)},YT:function(a){var b=this.xk(!0);d(b);for(var c=b.length,e=0;e<c;e++)if(b[e]===a)return e;return-1},dY:function(){var a=this.element,b=a.children();this.CK(b);a.on("dragstart"+this.nr,this.pU).on("dragenter"+this.nr,this.mU).on("dragover"+this.nr,this.oU).on("dragleave"+this.nr,this.nU).on("dragend"+this.nr,this.kU).on("drop"+this.nr,this.qU)},CK:function(a){var b=this.options;a.filter(b.reorderHandle).attr(p,"true").addClass(r);a.find(b.reorderHandle).attr(p,
"true").addClass(r)},EY:function(){var a=this.element,b=a.children();this.OK(b);a.off(this.nr)},OK:function(a){var b=this.options;a.filter(b.reorderHandle).removeAttr(p).removeClass(r);a.find(b.reorderHandle).removeAttr(p).removeClass(r)},NI:function(a){var c=this.options;if(c.reorderHandle){var d=a.originalEvent.target,d=$(d).closest(c.reorderHandle);if(!d||1>d.length)return}c.reorderHandle&&!this.ck&&(d=a.target,c=b(d,this.element[0]))&&(d=this.YT(c),c.wJ=d,d={tile:$(c),fromIndex:d},!1!==this._trigger("beforeReorder",
null,d)&&(a=a.originalEvent,this.CH(c,a.pageX,a.pageY,a.dataTransfer)))},JI:function(a){if(this.ck){a=a.originalEvent;var b=a.relatedTarget,c=this.element[0],d=!1;b?d=c!=b&&!w.q.gl(c,b):this.AS&&(d=(b=document.elementFromPoint(a.clientX,a.clientY))&&(b==c||w.q.gl(c,b)));d&&((this.AS=!1,this.Bn)?this.Ad&&($(this.Ad).css("display",""),this.qf.Tj(!1,!0)):a.dataTransfer.dropEffect="none")}},MI:function(a){if(!this.ck)return!1;var b=a.originalEvent;b.dataTransfer.dropEffect="move";this.r8(b.pageX,b.clientX,
b.clientY);a.preventDefault();return!1},KI:function(a){if(this.ck){var b=a.originalEvent,c=b.relatedTarget;a=this.element[0];var d=!1;d=c?a!=c&&!w.q.gl(a,c):(b=document.elementFromPoint(b.clientX,b.clientY))&&b!=a&&!w.q.gl(a,b);d&&(this.AS=!0,this.Ad&&($(this.Ad).css("display",n),this.qf.Tj(!1,!0)))}},nR:function(){if(this.zA){clearTimeout(this.zA);this.zA=null;var a=this.Bn;a&&$(a).removeClass("oj-drag")}},II:function(){this.nR();if(this.ck&&!this.uG){var a=this.Bn;if(a&&this.Ad){var b=this.Ad;w.q.gl(this.element[0],
a)&&($(b).css("display",""),this.fC(b),b.parentNode.removeChild(b),$(a).css("display",""),this.Pn(a,a.pc-1),this.qf.Tj(!1,!0));delete a.wJ}this.Ad=this.Bn=null;this.Zz=this.Xz=!1;this.BH=null;this.ck=this.sG=!1}},OI:function(a){if(!this.ck)return!1;var b=this.qf;zu(b)&&Au(b);this.nR();b=a.originalEvent;this.B8(this.Bn,b.pageX,b.pageY);a.stopPropagation();return!1},CH:function(a,b,c,d){this.ck=!0;this.tG=this.Zz=this.uG=!1;this.Bn=a;var e=this.element[0],h=f(a),k=this.Ad=document.createElement("div");
k.pc=a.pc;k.className=h+" oj-drop";var h=k.style,l=a.style;h.top=l.top;this.Vf?h.right=l.right:h.left=l.left;h=$(a).offset();e.insertBefore(k,a);this.BH=b={left:b-h.left,top:c-h.top};$(a).addClass("oj-drag");d.effectAllowed="move";d.setData("text/html",a.outerHTML);d.setDragImage(a,b.left,b.top);var m=this;this.zA=setTimeout(function(){m.tG=!0;l.display=n;$(a).removeClass("oj-drag");m.zA=null;w.Components.Wo(a)},0)},r8:function(c,d,e){this.Zz=!0;if(this.tG&&!this.Xz){var f=this.element[0];d=document.elementFromPoint(d,
e);d=b(d,f);e=!1;if(d){var h=$(d),k=this.options.reorderHandle;k&&(e=(e=h.find(k))&&0<e.length)}d&&d!==this.Ad&&d!==this.Bn&&e&&(h=$(f).offset(),e=a(this.Ad),c=c-h.left>=d.offsetLeft+.5*d.offsetWidth,this.fC(this.Ad),c&&!this.Vf||!c&&this.Vf?(c=a(d))?(this.Pn(this.Ad,c.pc-1),f.insertBefore(this.Ad,c)):(this.Pn(this.Ad,d.pc),f.appendChild(this.Ad)):(this.Pn(this.Ad,d.pc-1),f.insertBefore(this.Ad,d)),e!==a(this.Ad)&&(this.Xz=this.qf.Tj(!1,!0)))}},H$:function(){this.Xz=!1},B8:function(a,b,c){this.uG=
!0;var d=this.element[0],e=this.Ad;this.Ad=null;w.Components.af(a);d.replaceChild(a,e);w.Components.me(a);a.pc=e.pc;e=a.style;e.display="";w.Components.Zm(a);var f=$(d).offset(),h=this.BH;e.top=c-h.top-f.top+l;b=b-h.left-f.left;this.Vf?(e.right=d.offsetWidth-(b+$(a).outerWidth(!0))+l,e.left=""):e.left=b+l;this.BH=null;this.Zz?this.sG=this.qf.Tj(!1,!0):this.lU()},lU:function(){this.tG=this.Zz=this.uG=this.ck=this.sG=!1;var a=this.Bn;this.Bn=null;var b=a.wJ;delete a.wJ;var c=this.YT(a),a={tile:$(a),
fromIndex:b,toIndex:c};this._trigger("reorder",null,a)},getNodeBySubId:function(a){return this._super(a)},getSubIdByNode:function(a){return this._super(a)}});var l="px",m="hidden",n="none",p="draggable",q="oj-disabled",r="oj-draggable",s=".oj-masonrylayout-tile-1x1, .oj-masonrylayout-tile-1x2, .oj-masonrylayout-tile-1x3, .oj-masonrylayout-tile-2x1, .oj-masonrylayout-tile-2x2, .oj-masonrylayout-tile-2x3, .oj-masonrylayout-tile-3x1, .oj-masonrylayout-tile-3x2",u="oj-masonrylayout-tile-transition-show-from",
v="JET MasonryLayout: 'disabled' option not supported",y="ojmasonrylayoutcut",z="ojmasonrylayoutpastebefore",B="ojmasonrylayoutpasteafter",C={cut:y,"paste-before":z,"paste-after":B},F={cut:"labelCut","paste-before":"labelPasteBefore","paste-after":"labelPasteAfter"}})();
function yu(a,b,c,d,e,f){null==Iu&&(Iu=Ju());this.ac=a;this.De=b;this.k6=c;d&&d.m2&&(this.Tfa=d.m2);e&&(e.p2&&(this.YK=e.p2),e.o2&&(this.XK=e.o2),e.t2&&(this.bL=e.t2),e.s2&&(this.aL=e.s2),e.q2&&(this.$K=e.q2),e.r2&&(this.AC=e.r2),e.v2&&(this.dL=e.v2),e.w2&&(this.eL=e.w2),e.u2&&(this.cL=e.u2));f&&(f.Fx&&(this.gf=f.Fx),f.My&&(this.ee=f.My),f.H_&&(this.UT=f.H_),f.J_&&(this.vI=f.J_),f.Z1&&(this.$n=f.Z1),f.f0&&(this.Ks=f.f0),f.A0&&(this.Ts=f.A0),f.z0&&(this.Dk=f.z0),f.y0&&(this.Un=f.y0),f.c2&&(this.ox=
f.c2),f.me&&(this.tY=f.me),f.af&&(this.uY=f.af));b=document.createElement("div");c=b.style;c.display="inline-block";c.overflow="hidden";c.visibility="hidden";d=document.createElement("div");c=d.style;c.display="inline-block";b.appendChild(d);a.insertBefore(b,a.firstChild);this.nY=b;this.Dq=d;var h=this;this.zk=function(a){h.Zp(a)};this.OU=function(){Ku(h)};this.Wp=function(a){Lu(h,a)};this.Yp=function(a){Mu(h,a)}}var Iu;
yu.prototype.Tj=function(a,b){var c=!1;a?(c=this.Jg()?!0:!1,Nu(this)):(this.Dk&&this.Dk(),Eu(this,b),c=Fu(this));return c};yu.prototype.destroy=function(){for(var a=this.ac,b=Cu(this),c=0;c<b.length;c++){var d=b[c].style;this.De?d.right="":d.left="";d.top=""}a.removeChild(this.nY);this.uY=this.tY=this.ox=this.Un=this.Dk=this.Ts=this.Ks=this.$n=this.vI=this.UT=this.ee=this.gf=this.ac=this.Pl=this.ak=this.Wh=this.bk=this.Zi=this.Yp=this.Wp=this.OU=this.zk=this.Dq=this.nY=null};
yu.prototype.resizeTile=function(a,b){var c=this.ac.querySelector(a);if(c){this.bk||(this.bk=[]);var d=this.bk;d.push(c);d.push(b);this.vX=!0;Du(this)}};function Bu(a){if(a.GY)return!1;if(!a.C6){if(a.k6)a.IQ=!1;else{var b;a:{b=Iu[0];var c=Iu[1],d=["gecko",16,"trident",6,"webkit",533.1],e=d.length;if(0==e%2)for(var f=0;f<=e-2;f+=2)if(b==d[f]){if(c>=d[1+f]){b=!0;break a}break}b=!1}a.IQ=b}a.C6=!0}return a.IQ}function zu(a){return null!=a.sj||null!=a.Zi&&0<a.Zi.length}
function Au(a){a.GY=!0;Ou(a,a.bL);Ou(a,a.aL);Ou(a,a.$K);Ou(a,a.AC);Ou(a,a.dL);Ou(a,a.eL);Ou(a,a.cL);a.ee(a.Dq,a.YK);a.ee(a.Dq,a.XK);Pu(a.ac,"transitionend",a.zk);Pu(a.ac,"webkitTransitionEnd",a.zk);for(var b=Cu(a),c=0;c<b.length;c++){var d=b[c];d.Tz&&delete d.Tz;Pu(d,"transitionend",a.Wp);Pu(d,"webkitTransitionEnd",a.Wp);Pu(d,"transitionend",a.Yp);Pu(d,"webkitTransitionEnd",a.Yp)}a.Ls?(clearTimeout(a.Ls),a.Ls=null,Lu(a,null)):a.ot?(clearTimeout(a.ot),a.ot=null,Qu(a)):a.sj===Hu||null!=a.Zi&&0<a.Zi.length?
a.Zp(null):a.sj===Ru&&Mu(a,null);a.GY=!1}function Su(a){var b=a.ownerDocument.defaultView,c=null;return c=b?b.getComputedStyle(a,null):a.currentStyle}function Tu(a){return 0<a.length&&"auto"!=a?(a=parseInt(a,10),isNaN(a)&&(a=0),a):0}function Uu(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)}function Pu(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}
function Vu(a,b){if(a)for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1}
function Ju(){var a=null,b=-1,c=navigator.userAgent.toLowerCase();-1!=c.indexOf("msie")||-1!=c.indexOf("trident")?(a="trident",b=Wu(c,/trident\/(\d+[.]\d+)/),-1==b&&(b=Wu(c,/msie (\d+\.\d+);/),-1==b&&(b=Wu(c,/msie (\d+\.\d+)b;/)),b-=4),null!=document.documentMode&&(b=Math.min(b,document.documentMode-4))):-1!=c.indexOf("applewebkit")?(a="webkit",b=Wu(c,/applewebkit\/(\d+([.]\d+)*)/)):-1!=c.indexOf("gecko/")&&(a="gecko",b=Wu(c,/rv:(\d+[.]\d+)/));return[a,b]}
function Wu(a,b){var c=a.match(b);return c&&(c=c[1])?parseFloat(c):-1}function Xu(a,b){return a.DE>b.DE?1:a.DE<b.DE?-1:a.CE>b.CE?1:a.CE<b.CE?-1:0}function Du(a){a.oB||(a.sj?a.cK||(a.cK=!0):a.oB=setTimeout(a.OU,0))}function Cu(a){a=a.ac.querySelectorAll(a.Tfa);for(var b=[],c=0;c<a.length;c++){var d=a[c],e=d.style;0<d.offsetWidth&&0<d.offsetHeight&&"hidden"!=e.visibility&&b.push(d)}return b}
function Fu(a){var b=a.Zi,c=a.Jg();if(a.bk){var d=a.bk;c||(c=[]);for(var e=0;e<d.length;e+=2){var f=d[e];0>Vu(c,f)&&c.push(f)}}d=!1;if(!c||1>c.length){if(!b||1>b.length)a.Zi=null,a.Zp(null),d=!0}else a.Zi=c;b=null!=c&&0<c.length;Bu(a)||d||a.Zp(null);return b}
yu.prototype.Jg=function(){var a,b,c=this.ac,d=Cu(this);this.ox&&this.ox(d);a=this.RG=null;this.wn=0;this.fa=1;this.bt=null;var e=[],f=[],h=[],k=this.De,l;l=Su(c);l={paddingLeft:Tu(l.paddingLeft),paddingRight:Tu(l.paddingRight),paddingTop:Tu(l.paddingTop),paddingBottom:Tu(l.paddingBottom),borderLeftWidth:Tu(l.borderLeftWidth),borderRightWidth:Tu(l.borderRightWidth),borderTopWidth:Tu(l.borderTopWidth),borderBottomWidth:Tu(l.borderBottomWidth)};var m=0,n=[];this.LQ=n;for(var p=0;p<d.length;p++){var q=
d[p],r=this.vI(q);(a=q.Tz)&&delete q.Tz;if(!this.RG){var s=r;a&&(s=document.createElement("div"),s.className=a,s=this.vI(s));b=q;var u=Su(b);a=b.offsetWidth+(Tu(u.marginLeft)+Tu(u.marginRight));b=b.offsetHeight+(Tu(u.marginTop)+Tu(u.marginBottom));this.RG={dh:a/s.colSpan,si:b/s.rowSpan}}a=this.RG;if(!this.bt){m=this.wn=Math.max(Math.floor((c.offsetWidth-l.paddingLeft-l.paddingRight-l.borderLeftWidth-l.borderRightWidth)/a.dh),1);s=this.fa;b=this.bt=[];for(u=0;u<s;u++){var v=[];b.push(v);for(var y=
0;y<m;y++)v[y]=!1}m=this.wn}r.colSpan>m&&(m=r.colSpan);r.colSpan>this.wn&&(r.colSpan=this.wn);u=!1;for(s=0;s<this.fa;s++){for(b=0;b<this.wn;b++){a:{for(var v=b,y=s,z=r.colSpan,B=r.rowSpan,C=y;C<y+B;C++){C>=this.fa&&Yu(this);for(var F=v;F<v+z;F++)if(F>=this.wn||this.bt[C][F]){v=!1;break a}}v=!0}if(v){u=q.style;v={top:u.top};k?v.right=u.right:v.left=u.left;f.push(v);this.WJ(q,b,s,r,a,l);k&&h.push(b);u=!0;n.push({CE:b,DE:s,tile:q});break}}if(u)break;s===this.fa-1&&Yu(this)}}a&&(c=this.Dq.style,c.width=
m*a.dh+"px",c.height=this.fa*a.si+"px");for(p=0;p<d.length;p++)q=d[p],u=q.style,v=f[p],""!=v.top&&(k&&parseInt(u.right,10)!==parseInt(v.right,10)||!k&&parseInt(u.left,10)!==parseInt(v.left,10)||parseInt(u.top,10)!==parseInt(v.top,10))&&e.push(q);1>e.length&&(e=null);return e};function Nu(a){var b=a.LQ;a.LQ=null;for(var b=b.sort(Xu),c=Cu(a),d=0;d<c.length;d++){var e=c[d],f=b[d].tile;e!=f&&(a.uY(f),e.parentNode.insertBefore(f,e),a.tY(f),e=Vu(c,f),e>d&&(c.splice(e,1),c.splice(d,0,f)))}}
function Yu(a){a.fa++;var b=[];a.bt.push(b);for(var c=0;c<a.wn;c++)b[c]=!1}yu.prototype.WJ=function(a,b,c,d,e,f){var h=d.colSpan;d=d.rowSpan;for(var k=this.bt,l=c;l<c+d;l++)for(var m=b;m<b+h;m++)k[l][m]=!0;a=a.style;a.top=f.paddingTop+c*e.si+"px";this.De?a.right=f.paddingRight+b*e.dh+"px":a.left=f.paddingLeft+b*e.dh+"px"};function Ou(a,b){for(var c=Cu(a),d=0;d<c.length;d++)a.ee(c[d],b)}
function Eu(a,b){if(!a.NV){a.pX=b;if(Bu(a)){for(var c=b?a.aL:a.bL,d=Cu(a),e=0;e<d.length;e++)a.gf(d[e],c);a.gf(a.Dq,b?a.XK:a.YK);Uu(a.ac,"transitionend",a.zk);Uu(a.ac,"webkitTransitionEnd",a.zk)}a.NV=!0}}
yu.prototype.Zp=function(a){var b=!0;if(this.Zi){var c=this.Zi;if(a){var d=a.target;for(a=0;a<c.length;a++)if(d===c[a]){c.splice(a,1);break}}else Bu(this)||(c=this.Zi=[]);0<c.length&&(b=!1)}if(b){if(this.bk&&(b=this.bk,this.bk=null,Bu(this)))for(a=0;a<b.length;a+=2)this.ee(b[a],this.cL);this.pX?(Bu(this)&&(Ou(this,this.aL),this.ee(this.Dq,this.XK)),this.pX=!1):Bu(this)&&(Ou(this,this.bL),this.ee(this.Dq,this.YK));Bu(this)&&(Pu(this.ac,"transitionend",this.zk),Pu(this.ac,"webkitTransitionEnd",this.zk));
this.FK=this.PU=this.vX=this.NV=!1;Nu(this);this.Ts&&this.Ts();if(this.sj===Hu)if(Bu(this)){var e=this;this.ot=setTimeout(function(){Qu(e)},0)}else Qu(this);else this.sj||this.Un&&this.Un()}};
function Ku(a){a.oB&&(clearTimeout(a.oB),a.oB=null);a.Dk&&a.Dk();a.sj=Gu;if(a.ak&&Bu(a)){for(var b=a.ak,c=0;c<b.length;c++){var d=b[c];Uu(d,"transitionend",a.Wp);Uu(d,"webkitTransitionEnd",a.Wp);a.gf(d,a.$K)}a.Ls=setTimeout(function(){for(var c=0;c<b.length;c++){var d=b[c];a.ee(d,a.$K);a.gf(d,a.AC)}},0)}else Lu(a,null)}
function Lu(a,b){a.Ls&&(clearTimeout(a.Ls),a.Ls=null);if(b){b.preventDefault();b.stopPropagation();var c=b.target;a.ee(c,a.AC);Pu(c,"transitionend",a.Wp);Pu(c,"webkitTransitionEnd",a.Wp);var d=a.ak;if(d){for(var e=0;e<d.length;e++){var f=d[e];if(f===c){d.splice(e,1);a.Pl||(a.Pl=[]);var h=a.Pl;h.push(c);break}}1>d.length&&(a.ak=null)}}else if(!Bu(a)&&(d=a.ak)){for(e=0;e<d.length;e++)f=d[e],a.Pl||(a.Pl=[]),h=a.Pl,h.push(f);a.ak=null}if(!a.ak){if(a.Pl){h=a.Pl;for(e=0;e<h.length;e++)c=h[e],Bu(a)&&a.ee(c,
a.AC),d=c.style,a.De?d.right="":d.left="",d.top="",a.Ks&&a.Ks(c);a.Pl=null}a.sj=Hu;Eu(a,!1);if(a.bk)for(h=a.bk,e=0;e<h.length;e+=2)c=h[e],d=h[e+1],f=a.UT(c),a.ee(c,f),a.gf(c,d),Bu(a)&&(a.gf(c,a.cL),c.Tz=f);Fu(a)}}function Qu(a){a.ot&&(clearTimeout(a.ot),a.ot=null);a.sj=Ru;if(a.Wh&&Bu(a))for(var b=a.Wh,c=0;c<b.length;c++){var d=b[c];Uu(d,"transitionend",a.Yp);Uu(d,"webkitTransitionEnd",a.Yp);a.gf(d,a.eL);a.ee(d,a.dL)}else{if(a.Wh)for(b=a.Wh,c=0;c<b.length;c++)d=b[c],a.ee(d,a.dL);Mu(a,null)}}
function Mu(a,b){if(b){b.preventDefault();b.stopPropagation();var c=b.target;a.ee(c,a.eL);Pu(c,"transitionend",a.Yp);Pu(c,"webkitTransitionEnd",a.Yp);var d=a.Wh;if(d){for(var e=0;e<d.length;e++){var f=d[e];if(f===c){d.splice(e,1);a.$n&&a.$n(c);break}}1>d.length&&(a.Wh=null)}}else if(!Bu(a)&&(d=a.Wh)){for(e=0;e<d.length;e++)f=d[e],a.$n&&a.$n(f);a.Wh=null}a.Wh||(a.sj=null,a.Un&&a.Un(),a.cK&&(a.cK=!1,Du(a)))}var Gu=1,Hu=2,Ru=3;
w.Components.xa("ojMasonryLayout","baseComponent",{properties:{disabled:{type:"boolean"},reorderHandle:{type:"string"}},methods:{insertTile:{},refresh:{},removeTile:{},resizeTile:{}},extension:{_widgetName:"ojMasonryLayout"}});w.Components.register("oj-masonry-layout",w.Components.getMetadata("ojMasonryLayout"));
w.sa("oj.ojToolbar",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{chroming:"half"},Vd:function(a,b){this._super(a,b);"disabled"in b&&w.l.warn("Caller attempted to set the 'disabled' option on Toolbar, but Toolbar does not support the 'disabled' option.  See API doc.")},_ComponentCreate:function(){this._super();this.element.attr(w.Components.Zj,this.widgetName).addClass("oj-toolbar oj-component").attr("role","toolbar");this.Aa(!0)},Se:function(a,b,c){a=this.element.find(":oj-button[tabindex\x3d0]");
this.Te(b,c,{launcher:a,position:{of:"keyboard"===c?a.ojButton("widget"):b}})},_setOption:function(a,b){"disabled"===a?w.l.warn("Caller attempted to set the 'disabled' option on Toolbar, but Toolbar does not support the 'disabled' option.  See API doc.  Ignoring the call."):(this._superApply(arguments),"chroming"===a&&(this.NE.ojButtonset("refresh"),this.XN.ojButton("refresh")))},refresh:function(){this._super();this.Aa(!1)},Aa:function(a){var b=this;this.Jh="rtl"===this.$b();this.Kd=this.element.find(":oj-button").unbind("keydown"+
this.eventNamespace).bind("keydown"+this.eventNamespace,function(a){b.Xp(a,$(this))}).unbind("click"+this.eventNamespace).bind("click"+this.eventNamespace,function(){$(this).ojButton("option","disabled")||b.Bq($(this))}).unbind("focus"+this.eventNamespace).bind("focus"+this.eventNamespace,function(){b.Bq($(this))});this.NE=this.element.find(":oj-buttonset").ojButtonset("refresh");this.XN=this.Kd.not(this.NE.find(":oj-button")).ojButton("refresh");this.Dl=this.Kd.filter(function(){return!$(this).ojButton("option",
"disabled")});this.mJ(a)},mJ:function(a){var b=$(this.lq);this.lq=void 0;this.Kd.attr("tabindex","-1");a=a||!b.is(this.Dl)?this.Dl.first():b;this.Bq(a)},FJ:function(a){var b=this.Dl;return a.map(function(a,d){if("radio"!=d.type||d.checked||""==d.name)return d;var e=d.name;e?(e=e.replace(/'/g,"\\'"),e=b.filter(":radio[name\x3d'"+e+"']:oj-button")):e=b.filter(d).filter(":oj-button");e=e.filter(":checked");return e.length?e[0]:d})},Bq:function(a){a=this.FJ(a);var b=a[0],c=this.lq;b!==c&&($(c).attr("tabindex",
"-1"),a.attr("tabindex","0"),this.lq=b)},Xp:function(a,b){switch(a.which){case $.ui.keyCode.LEFT:case $.ui.keyCode.RIGHT:a.preventDefault();var c=this.Dl,d=c.length;if(2>d)break;var e=c.index(b);c.eq((e+(a.which==$.ui.keyCode.RIGHT^this.Jh?1:-1)+d)%d).focus();break;case $.ui.keyCode.UP:case $.ui.keyCode.DOWN:"radio"==b.attr("type")&&a.preventDefault()}},_destroy:function(){this.element.removeClass("oj-toolbar oj-component").removeAttr(w.Components.Zj).removeAttr("role");this.Kd.attr("tabindex","0");
this.NE.ojButtonset("refresh");this.XN.ojButton("refresh")}});w.Components.Rj({ojToolbar:{chroming:w.Components.ad(function(){return(w.Ob.Tc("oj-toolbar-option-defaults")||{}).chroming})}});w.Components.xa("ojToolbar","baseComponent",{properties:{chroming:{type:"string"},disabled:{}},methods:{destroy:{},refresh:{},widget:{}},extension:{_widgetName:"ojToolbar"}});w.Components.register("oj-toolbar",w.Components.getMetadata("ojToolbar"));
function Zu(a,b,c,d,e){w.i.Gx(c);this.Tb=a;this.le=b;this.YD=c;this.pb=d;this.$=e}t("FlattenedTreeHeaderSet",Zu,w);Zu.prototype.getData=function(a,b){var c;w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return null!=this.$&&null!=this.pb?(c=this.pb.getData(a-this.Tb+this.pb.getStart()),null!=c?c.get?c.get(this.$):c[this.$]:null):this.YD[a]};A("FlattenedTreeHeaderSet.prototype.getData",{getData:Zu.prototype.getData});
Zu.prototype.getMetadata=function(a,b){w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return null!=this.$&&null!=this.pb?this.pb.getMetadata(a-this.Tb+this.pb.getStart()):{key:this.getData(a)}};A("FlattenedTreeHeaderSet.prototype.getMetadata",{getMetadata:Zu.prototype.getMetadata});Zu.prototype.getCount=function(){return null!=this.$&&null!=this.pb?Math.min(this.pb.getCount(),this.le-this.Tb):Math.max(0,this.le-this.Tb)};
A("FlattenedTreeHeaderSet.prototype.getCount",{getCount:Zu.prototype.getCount});Zu.prototype.getLevelCount=function(){return 0<this.getCount()?1:0};A("FlattenedTreeHeaderSet.prototype.getLevelCount",{getLevelCount:Zu.prototype.getLevelCount});Zu.prototype.getExtent=function(a,b){w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return{extent:1,more:{before:!1,after:!1}}};A("FlattenedTreeHeaderSet.prototype.getExtent",{getExtent:Zu.prototype.getExtent});
Zu.prototype.getDepth=function(a,b){w.i.assert(a<=this.le&&a>=this.Tb,"index out of bounds");w.i.assert(null==b||0==b,"level out of bounds");return 1};A("FlattenedTreeHeaderSet.prototype.getDepth",{getDepth:Zu.prototype.getDepth});function $u(a,b,c,d,e,f){w.i.Gx(f);this.ha=a;this.Ja=b;this.ul=c;this.Zq=d;this.pb=e;this.Sd=f}t("FlattenedTreeCellSet",$u,w);
$u.prototype.getData=function(a){var b,c,d,e;b=av(this,a);if(null==b)return null;a=b[0];b=b[1];w.i.assert(a<this.pb.getStart()+this.pb.getCount()&&b<this.Sd.length);c=this.Sd[b];d=this.pb.getData(a);return null!=d?(a={},b=d.get?function(){return d.get(c)}:function(){return d[c]},e=d.set?function(a){return d.set(c,a)}:function(a){d[c]=a},Object.defineProperty(a,"data",{get:b,set:e}),a):null};A("FlattenedTreeCellSet.prototype.getData",{getData:$u.prototype.getData});
$u.prototype.getMetadata=function(a){var b;b=av(this,a);if(null==b)return null;a=b[0];b=b[1];w.i.assert(a<this.pb.getStart()+this.pb.getCount()&&b<this.Sd.length);b=this.Sd[b];a=this.pb.getMetadata(a);a.keys={row:a.key,column:b};return a};A("FlattenedTreeCellSet.prototype.getMetadata",{getMetadata:$u.prototype.getMetadata});
function av(a,b){var c,d;w.i.xf(b);if(null==a.pb||0==a.pb.length)return null;c=b.row-a.ha+a.pb.getStart();d=b.column;w.i.rm(c,null);w.i.rm(d,null);w.i.assert(0<=c&&0<=d);return[c,d]}$u.prototype.getStart=function(a){return"row"===a?this.ha:"column"===a?this.ul:0};A("FlattenedTreeCellSet.prototype.getStart",{getStart:$u.prototype.getStart});$u.prototype.getCount=function(a){return"row"===a?Math.min(this.Ja-this.ha,this.pb.getCount()):"column"===a?this.Zq-this.ul:0};
A("FlattenedTreeCellSet.prototype.getCount",{getCount:$u.prototype.getCount});function zj(a,b){zj.o.constructor.call(this,a,b)}t("FlattenedTreeDataGridDataSource",zj,w);H(zj,Mr,"oj.FlattenedTreeDataGridDataSource");zj.prototype.Init=function(){zj.o.Init.call(this);this.Sd=zj.o.Tx.call(this,"columns");this.$=zj.o.Tx.call(this,"rowHeader")};A("FlattenedTreeDataGridDataSource.prototype.Init",{Init:zj.prototype.Init});zj.prototype.getCountPrecision=function(a){return"row"===a?"estimate":"actual"};
A("FlattenedTreeDataGridDataSource.prototype.getCountPrecision",{getCountPrecision:zj.prototype.getCountPrecision});zj.prototype.getCount=function(a){return"row"===a?-1:"column"===a?this.Sd.length:0};A("FlattenedTreeDataGridDataSource.prototype.getCount",{getCount:zj.prototype.getCount});
zj.prototype.fetchHeaders=function(a,b,c){var d,e;d=a.axis;if("column"===d)d=a.start+a.count,d>this.getCount("column")&&(d=this.getCount("column")-a.start),e=new Zu(a.start,d,this.Sd);else if("row"===d&&null!=this.$){this.ol={range:a,callbacks:b,callbackObjects:c};return}null!=b&&null!=b.success&&(null==c&&(c={}),b.success.call(c.success,e,a,null))};A("FlattenedTreeDataGridDataSource.prototype.fetchHeaders",{fetchHeaders:zj.prototype.fetchHeaders});
zj.prototype.fetchCells=function(a,b,c){var d,e,f,h;for(d=0;d<a.length;d++)if(e=a[d],"row"==e.axis){f=e.start;h=e.count;break}zj.o.$k.call(this,{start:f,count:h},{success:function(d){this.SI(d,a,b,c,0)}.bind(this),error:function(a){var d={start:f,count:h},e=c,n;this.ol&&(n=this.ol.range,n.start==d.start&&n.count==d.count&&(d=this.ol.callbacks,n=this.ol.callbackObjects,d.error&&(null==n&&(n={}),d.error.call(n.error,a))),this.ol=null);b.error&&(null==e&&(e={}),b.success.call(e.error,a))}.bind(this)})};
A("FlattenedTreeDataGridDataSource.prototype.fetchCells",{fetchCells:zj.prototype.fetchCells});zj.prototype.keys=function(a){var b,c;b=a.row;c=a.column;return new Promise(function(a){b>zj.o.Gha.call(this).end||c>this.Sd.length?a(null):a({row:zj.o.getKey.call(this,b),column:this.Sd[c]})}.bind(this))};A("FlattenedTreeDataGridDataSource.prototype.keys",{keys:zj.prototype.keys});
zj.prototype.indexes=function(a){var b,c,d,e,f;d=a.row;e=a.column;return new Promise(function(a){b=zj.o.Fh.call(this,d);for(f=0;f<this.Sd.length;f++)if(this.Sd[f]===e){c=f;break}0<=b||0<=c?a({row:b,column:c}):a(null)}.bind(this))};A("FlattenedTreeDataGridDataSource.prototype.indexes",{indexes:zj.prototype.indexes});zj.prototype.sort=function(a,b,c){return zj.o.getWrappedDataSource.call(this).sort(a,{success:function(){this.$I(b,c)}.bind(this),error:b.error})};
A("FlattenedTreeDataGridDataSource.prototype.sort",{sort:zj.prototype.sort});zj.prototype.$I=function(a,b){this.refresh();a.success&&(null==b&&(b={}),a.success.call(b.success))};zj.prototype.move=function(a,b,c,d){zj.o.getWrappedDataSource.call(this).move(a,b,c,d)};A("FlattenedTreeDataGridDataSource.prototype.move",{move:zj.prototype.move});zj.prototype.getCapability=function(a){return"default"===zj.o.getWrappedDataSource.call(this).getCapability(a)?"column":"none"};
A("FlattenedTreeDataGridDataSource.prototype.getCapability",{getCapability:zj.prototype.getCapability});g=zj.prototype;g.Zx=function(a,b){zj.o.Zx.call(this,a,b)};
g.SI=function(a,b,c,d){var e,f,h,k,l,m;for(e=0;e<b.length;e++)f=b[e],"row"==f.axis?(h=f.start,k=f.count):"column"==f.axis&&(l=f.start,m=f.count,l+m>this.getCount("column")&&(m=this.getCount("column")-l));this.ol&&(e=this.ol.range,e.start==h&&e.count==k&&(this.WI(a,e,this.ol.callbacks,this.ol.callbackObjects),this.ol=null));a=new $u(h,h+k,l,l+m,a,this.Sd);c.success&&(null==d&&(d={}),c.success.call(d.success,a,b))};
g.WI=function(a,b,c,d){a=new Zu(b.start,b.start+b.count,this.Sd,a,this.$);c.success&&(null==d&&(d={}),c.success.call(d.success,a,b,null))};
g.ED=function(a,b,c){var d,e,f,h;d=null;this.$&&(d=new Zu(a,a+c.getCount(),this.Sd,c,this.$));b=new $u(a,a+c.getCount(),0,this.Sd.length,c,this.Sd);f=[];h=[];for(e=0;e<c.getCount();e++)f.push({row:this.Rc[a+e].key}),h.push({row:a+e,column:-1});a={source:this,operation:"insert"};a.result=b;d&&(a.header=d);a.keys=f;a.indexes=h;zj.o.handleEvent.call(this,"change",a)};
g.yE=function(a){var b,c,d;b=[];d=[];for(c=0;c<a.length;c++)b.push({row:a[c].key}),d.push({row:a[c].index,column:-1});a={source:this,operation:"delete"};a.keys=b;a.indexes=d;zj.o.handleEvent.call(this,"change",a)};g.tM=function(a,b){b.success.call(null,new Fr(null,a.start))};
(function(){w.sa("oj.ojRadioset",$.oj.editableValue,{version:"1.0.0",defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{disabled:!1,value:void 0},refresh:function(){this._super();this.Aa()},widget:function(){return this.Uja},Vd:function(a,c){var d;this._super(a,c);w.Uc.fl([{U:"disabled",yc:!0},{U:"placeholder"},{U:"required",We:!0,yc:!0},{U:"title"}],c,this);this.Of=this.QH();void 0===c.value&&(d=this.Of.filter(":checked"),d=0===d.length?void 0:d.val(),void 0!==d&&this.option("value",d,
{_context:{kc:!0,Ia:!0}}),void 0===this.options.value&&(this.options.value=null))},_ComponentCreate:function(){var a=this.element;this._super();if(a.is("fieldset"))throw Error("ojRadioset cannot be bound to a fieldset. Use a div instead.");this.Of._ojRadioCheckbox().attr("data-oj-internal",!0);this.Uja=a.addClass("oj-radioset oj-component").attr("role","radiogroup").wrapInner("\x3cdiv class\x3d'oj-radioset-wrapper'\x3e\x3c/div\x3e");this._on(this.Wl)},cf:function(){this._super();this.Aa()},$F:function(){this.Of=
this.QH();this.Of.filter(".oj-radio").each(function(){var a=void 0!==$(this).attr("disabled")?!!$(this).prop("disabled"):!1;$(this)._ojRadioCheckbox("option","disabled",a)});this.Of.not(".oj-radio")._ojRadioCheckbox()},Focus:function(){this.Ud().first().focus();return!0},cG:function(){},QH:function(){var a=this.element,c=a.find("input[type\x3dradio]:first");0===c.length&&w.l.warn("Could not find any input type\x3dradio within this element");c=c.attr("name");return void 0===c?(a=a.find("input[type\x3dradio]"),
a.not("[name]")):a.find("input[type\x3dradio][name\x3d"+c+"]")},Se:function(a,c,d){a=this.element.find("input[type\x3dradio]");var e=a.filter(":checked");a=e.length?e:a.filter(":enabled").first();this.Te(c,d,{launcher:a})},_GetMessagingLauncherElement:function(){return this.widget()},Aa:function(){this.Zn(this.options.disabled)},Wl:{change:function(a){this.sz(a)}},sz:function(b){var c=this.Tf();this.rb(c,b,a)},Tf:function(){return this.Pr()},Uh:function(a){var c=this.Of.length,d,e,f;for(e=0;e<c;e++){f=
$(this.Of[e]);d=f[0].value;var h=f._ojRadioCheckbox("option","checked");a===d?h||f._ojRadioCheckbox("option","checked",!0):h&&f._ojRadioCheckbox("option","checked",!1)}},Pr:function(){var a=this.Of.filter(":checked");return 0===a.length?null:a.val()},_GetDefaultStyleClass:function(){return"oj-radioset"},Ud:function(){if(null!=this.Of)return this.Of;this.QH()},XF:function(){},bv:function(){return!0},Zn:function(a){a=!!a;this.Of.each(function(){$(this).data("oj-_ojRadioCheckbox").rv(a)});this.Of._ojRadioCheckbox("refreshDisabled")},
_setOption:function(a,c){this._superApply(arguments);"disabled"===a&&this.Zn(c)},getNodeBySubId:function(a){var c=this._super(a);c||(a=a.subId,"oj-radioset-inputs"===a&&(c=this.Of.get()));return c||null},_destroy:function(){var a=this._super(),c=this.element[0].firstChild;this.Of&&this.Of._ojRadioCheckbox("destroy");$(c).contents().unwrap();return a}});var a={Pq:!1}})();
w.Components.xa("ojRadioset","editableValue",{properties:{disabled:{type:"boolean"},value:{type:"string",writeback:!0}},methods:{destroy:{},refresh:{},widget:{}},extension:{_widgetName:"ojRadioset"}});w.Components.register("oj-radioset",w.Components.getMetadata("ojRadioset"));
w.sa("oj.ojTimeAxis",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",ue:function(a,b,c){return dvt.TimeAxis.newInstance(a,b,c)},Md:function(){var a=this._super();a.push("oj-timeaxis");return a},ug:function(){var a=this._super();a["oj-timeaxis-label"]={path:"labelStyle",property:"CSS_TEXT_PROPERTIES"};return a},vg:function(){return["optionChange"]},Uf:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.TIMEAXIS"]=a.componentName;return b},Vi:function(){null==this.options._resources&&
(this.options._resources={});var a=this.options._resources,b=w.ea.cg(w.Pf.CONVERTER_TYPE_DATETIME),c=b.createConverter({hour:"numeric",minute:"2-digit",second:"2-digit"}),d=b.createConverter({hour:"numeric",minute:"2-digit"}),e=b.createConverter({hour:"numeric"}),f=b.createConverter({month:"numeric",day:"2-digit"}),h=b.createConverter({month:"long"}),k=b.createConverter({year:"numeric"}),l=b.createConverter({month:"short"}),m=b.createConverter({year:"2-digit"}),h={seconds:c,minutes:d,hours:e,days:f,
weeks:f,months:h,quarters:h,years:k},c={seconds:c,minutes:d,hours:e,days:f,weeks:f,months:l,quarters:l,years:m};a.converterFactory=b;a.converter=h;a.converterVert=c;a.axisClass="oj-timeaxis-container";a.axisLabelClass="oj-timeaxis-label";a.axisSeparatorClass="oj-timeaxis-separator";a.borderTopVisible=!1;a.borderRightVisible=!1;a.borderBottomVisible=!1;a.borderLeftVisible=!1;a.firstDayOfWeek=w.za.Rx()}});
w.Components.xa("ojTimeAxis","dvtBaseComponent",{properties:{converter:{type:"object"},end:{type:"number"},scale:{type:"string"},start:{type:"number"}},methods:{},extension:{_widgetName:"ojTimeAxis"}});w.Components.register("oj-time-axis",w.Components.getMetadata("ojTimeAxis"));function bv(a,b){this.$q=a;this.Nm=b}t("PagingHeaderSet",bv,w);bv.prototype.getData=function(a,b){return this.$q.getData(a+this.Nm,b)};A("PagingHeaderSet.prototype.getData",{getData:bv.prototype.getData});
bv.prototype.getMetadata=function(a,b){return this.$q.getMetadata(a+this.Nm,b)};A("PagingHeaderSet.prototype.getMetadata",{getMetadata:bv.prototype.getMetadata});bv.prototype.getCount=function(){return this.$q.getCount()};A("PagingHeaderSet.prototype.getCount",{getCount:bv.prototype.getCount});bv.prototype.getLevelCount=function(){return this.$q.getLevelCount()};A("PagingHeaderSet.prototype.getLevelCount",{getLevelCount:bv.prototype.getLevelCount});
bv.prototype.getExtent=function(a,b){return this.$q.getExtent(a+this.Nm,b)};A("PagingHeaderSet.prototype.getExtent",{getExtent:bv.prototype.getExtent});bv.prototype.getDepth=function(a,b){return this.$q.getDepth(a+this.Nm,b)};A("PagingHeaderSet.prototype.getDepth",{getDepth:bv.prototype.getDepth});bv.prototype.s_=function(){return this.$q};A("PagingHeaderSet.prototype.getHeaderSet",{s_:bv.prototype.s_});bv.prototype.Vx=function(){return this.Nm};A("PagingHeaderSet.prototype.getStartIndex",{Vx:bv.prototype.Vx});
function cv(a){if(!(a instanceof Uf))throw new dd("Not a datagridatasource","Not a datagridatasource",fd.ERROR);this.tc=a;this.W=0;this.Init()}t("PagingDataGridDataSource",cv,w);H(cv,Uf,"oj.PagingDataGridDataSource");cv.prototype.Init=function(){cv.o.Init.call(this);this.dx()};A("PagingDataGridDataSource.prototype.Init",{Init:cv.prototype.Init});cv.prototype.dx=function(){this.tc.on("change",this.t$.bind(this))};cv.prototype.getPage=function(){return this.Fc};
A("PagingDataGridDataSource.prototype.getPage",{getPage:cv.prototype.getPage});cv.prototype.setPage=function(a,b){b=b||{};a=parseInt(a,10);try{cv.o.handleEvent.call(this,Vf.BEFOREPAGE,{page:a,previousPage:this.Fc})}catch(c){return Promise.reject(null)}this.Pa=null!=b.pageSize?b.pageSize:this.Pa;b.startIndex=a*this.Pa;var d=this.Fc;this.Fc=a;this.W=b.startIndex;var e=this;return new Promise(function(a,c){e.we(b).then(function(){a(null)},function(){e.Fc=d;e.W=e.Fc*e.Pa;c(null)})})};
A("PagingDataGridDataSource.prototype.setPage",{setPage:cv.prototype.setPage});cv.prototype.we=function(a){this.em=!0;this.W=a.startIndex;var b=this;return new Promise(function(a){b.handleEvent("change",{operation:"sync",pageSize:b.Pa});a(void 0)})};cv.prototype.fetch=function(a){this.Pa=a.pageSize+a.startIndex;a.startIndex=0;return this.we(a)};A("PagingDataGridDataSource.prototype.fetch",{fetch:cv.prototype.fetch});cv.prototype.getStartItemIndex=function(){return this.W};
A("PagingDataGridDataSource.prototype.getStartItemIndex",{getStartItemIndex:cv.prototype.getStartItemIndex});cv.prototype.getEndItemIndex=function(){return this.sh};A("PagingDataGridDataSource.prototype.getEndItemIndex",{getEndItemIndex:cv.prototype.getEndItemIndex});cv.prototype.getPageCount=function(){var a=this.totalSize();return-1==a?-1:Math.ceil(a/this.Pa)};A("PagingDataGridDataSource.prototype.getPageCount",{getPageCount:cv.prototype.getPageCount});
cv.prototype.t$=function(a){switch(a.operation){case "refresh":this.W=0;this.handleEvent("change",{operation:"sync",pageSize:this.Pa});this.handleEvent(Wf.REFRESH,null);break;case "reset":this.handleEvent(Wf.RESET,null);break;case "insert":this.handleEvent(Wf.ADD,{index:a.indexes.row});break;case "delete":this.handleEvent(Wf.REMOVE,null);break;case "update":a.indexes.row=0<=a.indexes.row-this.W?a.indexes.row-this.W:-1;this.handleEvent("change",a);break;default:this.handleEvent("change",a),this.handleEvent(Wf.SYNC,
null)}};cv.prototype.getCount=function(a){var b=this.tc.getCount(a);return"row"===a&&0<=b?this.W+this.Pa<b?this.Pa:b-this.W:b};A("PagingDataGridDataSource.prototype.getCount",{getCount:cv.prototype.getCount});cv.prototype.getCountPrecision=function(a){return this.tc.getCountPrecision(a)};A("PagingDataGridDataSource.prototype.getCountPrecision",{getCountPrecision:cv.prototype.getCountPrecision});
cv.prototype.fetchHeaders=function(a,b,c){null==this.em?null!=b&&b.success&&b.success.call(c.success,null,a,null):"row"===a.axis?(a.start+=this.W,a.start+a.count>this.W+this.Pa&&(a.count=this.Pa-a.start),this.sq={headerRange:a,callbacks:b,callbackObjects:c},this.tc.fetchHeaders(a,{success:this.WI.bind(this),error:this.Gaa.bind(this)},c)):this.tc.fetchHeaders(a,b,c)};A("PagingDataGridDataSource.prototype.fetchHeaders",{fetchHeaders:cv.prototype.fetchHeaders});
cv.prototype.WI=function(a,b,c){var d,e;this.sq.headerRange==b&&(b.start-=this.W,b.count+=1,null!=a&&(d=new bv(a,this.W)),null!=c&&(e=new bv(c,this.W)),a=this.sq.callbacks.success,c=this.sq.callbackObjects.success,this.sq=null,a.call(c,d,b,e))};cv.prototype.Gaa=function(a){var b,c;b=this.sq.callbacks.error;c=this.sq.callbackObjects.error;this.sq=null;b.call(c,a)};
cv.prototype.fetchCells=function(a,b,c){var d;if(null==this.em)d={getData:function(){return null},getMetaData:function(){return null},getStart:function(){return 0},getCount:function(){return 0},getLevelCount:function(){return 0},getExtent:function(){return 0},getDepth:function(){return 1}},null!=b&&b.success&&b.success.call(c.success,d,a);else{for(d=0;d<a.length;d+=1)"row"===a[d].axis&&(a[d].start+=this.W,a[d].start+a[d].count>this.W+this.Pa&&(a[d].count=this.Pa-a[d].start));this.rq={cellRanges:a,
callbacks:b,callbackObjects:c};this.tc.fetchCells(a,{success:this.s$.bind(this),error:this.r$.bind(this)},c)}};A("PagingDataGridDataSource.prototype.fetchCells",{fetchCells:cv.prototype.fetchCells});
cv.prototype.s$=function(a,b){var c,d,e;if(!this.rq.cellRanges!=b){for(c=0;c<b.length;c+=1)"row"===b[c].axis&&(b[c].start-=this.W,b[c].count+=1);c=new dv(a,this.W);d=this.rq.callbacks.success;e=this.rq.callbackObjects.success;this.rq=null;this.sh=this.W+a.getCount("row")-1;this.handleEvent("sync",{data:Array(a.getCount("row")),startIndex:this.W});d.call(e,c,b)}};cv.prototype.r$=function(a){var b,c;b=this.rq.callbacks.error;c=this.rq.callbackObjects.error;this.rq=null;b.call(c,a)};
cv.prototype.keys=function(a){return this.tc.keys({column:a.column,row:a.row+this.W})};A("PagingDataGridDataSource.prototype.keys",{keys:cv.prototype.keys});cv.prototype.indexes=function(a){a=this.tc.indexes(a);-1!=a.row&&(a.row-=this.W);return a};A("PagingDataGridDataSource.prototype.indexes",{indexes:cv.prototype.indexes});cv.prototype.getCapability=function(a){return this.tc.getCapability(a)};A("PagingDataGridDataSource.prototype.getCapability",{getCapability:cv.prototype.getCapability});
cv.prototype.size=function(){var a;if(null==this.em)return-1;a=this.tc.getCount("row");return this.tc.getCount("row")>this.Pa?this.Pa:a};A("PagingDataGridDataSource.prototype.size",{size:cv.prototype.size});cv.prototype.sort=function(a,b,c){this.tc.sort(a,b,c)};A("PagingDataGridDataSource.prototype.sort",{sort:cv.prototype.sort});cv.prototype.totalSize=function(){return null==this.em?-1:this.tc.getCount("row")};A("PagingDataGridDataSource.prototype.totalSize",{totalSize:cv.prototype.totalSize});
cv.prototype.totalSizeConfidence=function(){return"actual"};A("PagingDataGridDataSource.prototype.totalSizeConfidence",{totalSizeConfidence:cv.prototype.totalSizeConfidence});cv.prototype.moveOK=function(a,b,c){return this.tc.moveOK(a,b,c)};A("PagingDataGridDataSource.prototype.moveOK",{moveOK:cv.prototype.moveOK});cv.prototype.move=function(a,b,c,d,e){this.tc.move(a,b,c,d,e)};A("PagingDataGridDataSource.prototype.move",{move:cv.prototype.move});function dv(a,b){this.KD=a;this.Nm=b}
t("PagingCellSet",dv,w);dv.prototype.getData=function(a){return this.KD.getData({column:a.column,row:a.row+this.Nm})};A("PagingCellSet.prototype.getData",{getData:dv.prototype.getData});dv.prototype.getMetadata=function(a){return this.KD.getMetadata({column:a.column,row:a.row+this.Nm})};A("PagingCellSet.prototype.getMetadata",{getMetadata:dv.prototype.getMetadata});dv.prototype.getCount=function(a){return this.KD.getCount(a)};A("PagingCellSet.prototype.getCount",{getCount:dv.prototype.getCount});
dv.prototype.f_=function(){return this.KD};A("PagingCellSet.prototype.getCellSet",{f_:dv.prototype.f_});dv.prototype.Vx=function(){return this.Nm};A("PagingCellSet.prototype.getStartIndex",{Vx:dv.prototype.Vx});function ev(a){this.data=a;this.current=0;this.Init();this.yK(10)}t("ArrayPagingDataSource",ev,w);H(ev,Qf,"oj.ArrayPagingDataSource");ev.prototype.Init=function(){ev.o.Init.call(this)};A("ArrayPagingDataSource.prototype.Init",{Init:ev.prototype.Init});g=ev.prototype;
g.oI=function(){return this.mj()?this.wm:this.totalSize()-this.current};g.vq=function(a){a=a||{};this.yf=Array(this.oI());for(var b=0;b<this.yf.length;b++)this.yf[b]=this.data[this.current+b];this.ax();this.sh=this.W+this.yf.length-1;a.silent||this.handleEvent("sync",{data:this.yf,startIndex:this.current})};g.ax=function(){if(void 0!==this.Oj){this.Oj.removeAll();for(var a=0;a<this.yf.length;a++)this.Oj.push(this.yf[a])}};g.handleEvent=function(a,b){return ev.o.handleEvent.call(this,a,b)};g.Em=function(){return this.yf};
A("ArrayPagingDataSource.prototype.getWindow",{Em:ev.prototype.Em});ev.prototype.Wx=function(){void 0===this.Oj&&(this.Oj=ko.observableArray(),this.ax());return this.Oj};A("ArrayPagingDataSource.prototype.getWindowObservable",{Wx:ev.prototype.Wx});ev.prototype.getPage=function(){return this.Fc};A("ArrayPagingDataSource.prototype.getPage",{getPage:ev.prototype.getPage});
ev.prototype.setPage=function(a,b){b=b||{};a=parseInt(a,10);try{ev.o.handleEvent.call(this,Vf.BEFOREPAGE,{page:a,previousPage:this.Fc})}catch(c){return Promise.reject(null)}this.pageSize=null!=b.pageSize?b.pageSize:this.pageSize;b.startIndex=a*this.pageSize;var d=this.Fc;this.Fc=a;this.W=b.startIndex;var e=this;return new Promise(function(a,c){e.we(b).then(function(){ev.o.handleEvent.call(e,Vf.PAGE,{page:e.Fc,previousPage:d});a(null)},function(){e.Fc=d;e.W=e.Fc*e.pageSize;c(null)})})};
A("ArrayPagingDataSource.prototype.setPage",{setPage:ev.prototype.setPage});ev.prototype.getStartItemIndex=function(){return this.W};A("ArrayPagingDataSource.prototype.getStartItemIndex",{getStartItemIndex:ev.prototype.getStartItemIndex});ev.prototype.getEndItemIndex=function(){return this.sh};A("ArrayPagingDataSource.prototype.getEndItemIndex",{getEndItemIndex:ev.prototype.getEndItemIndex});ev.prototype.getPageCount=function(){var a=this.totalSize();return-1==a?-1:Math.ceil(a/this.pageSize)};
A("ArrayPagingDataSource.prototype.getPageCount",{getPageCount:ev.prototype.getPageCount});ev.prototype.fetch=function(a){a=a||{};if(void 0!==a.pageSize&&void 0!==a.startIndex){if(!this.mj())return Promise.resolve();this.wm=a.startIndex+a.pageSize}this.vq(null);return Promise.resolve()};A("ArrayPagingDataSource.prototype.fetch",{fetch:ev.prototype.fetch});
ev.prototype.we=function(a){var b=a||{};void 0!==b.startIndex&&(this.current=b.startIndex);void 0!==b.pageSize&&(this.wm=this.pageSize=b.pageSize);this.vq(a);return Promise.resolve({data:this.yf,startIndex:this.current})};ev.prototype.mj=function(){return this.current+this.wm<this.totalSize()};ev.prototype.yK=function(a){this.wm=this.pageSize=a;this.vq(null)};ev.prototype.totalSize=function(){return this.data.length};ev.prototype.totalSizeConfidence=function(){return"actual"};
A("ArrayPagingDataSource.prototype.totalSizeConfidence",{totalSizeConfidence:ev.prototype.totalSizeConfidence});ev.prototype.getCapability=function(){return null};A("ArrayPagingDataSource.prototype.getCapability",{getCapability:ev.prototype.getCapability});function fv(){this.Init()}H(fv,ua,"oj.FilmStripPagingModel");fv.prototype.Init=function(){fv.o.Init.call(this);this.Fc=-1;this.sd=0;this.Pa=-1};A("FilmStripPagingModel.prototype.Init",{Init:fv.prototype.Init});fv.prototype.getPage=function(){return this.Fc};
A("FilmStripPagingModel.prototype.getPage",{getPage:fv.prototype.getPage});
fv.prototype.setPage=function(a,b){a=parseInt(a,10);try{var c=this.getPageCount(),d=this.Fc,e=this.Pa,f=e;b&&b.pageSize&&(f=b.pageSize);if(0===this.sd&&-1===f)return Promise.resolve();var h=Math.ceil(this.sd/f);if(0>a||a>h-1)throw Error("JET FilmStrip: Invalid 'page' set: "+a);var k=!1;if(a!=d||f!=e){if(!1===this.handleEvent("beforePage",{page:a,previousPage:d}))return Promise.reject();k=!0}this.Fc=a;this.Pa=f;var l=this.getPageCount(),m=this;return new Promise(function(b){c!=l&&m.handleEvent("pageCount",
{pageCount:l,previousPageCount:c});k&&m.handleEvent("page",{page:a,previousPage:d});b(null)})}catch(n){return Promise.reject(n)}};A("FilmStripPagingModel.prototype.setPage",{setPage:fv.prototype.setPage});fv.prototype.getStartItemIndex=function(){return-1===this.Fc&&-1===this.Pa?-1:this.Fc*this.Pa};A("FilmStripPagingModel.prototype.getStartItemIndex",{getStartItemIndex:fv.prototype.getStartItemIndex});
fv.prototype.getEndItemIndex=function(){return Math.min(this.getStartItemIndex()+this.Pa,this.sd)-1};A("FilmStripPagingModel.prototype.getEndItemIndex",{getEndItemIndex:fv.prototype.getEndItemIndex});fv.prototype.getPageCount=function(){return Math.ceil(this.sd/this.Pa)};A("FilmStripPagingModel.prototype.getPageCount",{getPageCount:fv.prototype.getPageCount});fv.prototype.totalSize=function(){return this.sd};A("FilmStripPagingModel.prototype.totalSize",{totalSize:fv.prototype.totalSize});
fv.prototype.totalSizeConfidence=function(){return"actual"};A("FilmStripPagingModel.prototype.totalSizeConfidence",{totalSizeConfidence:fv.prototype.totalSizeConfidence});
(function(){function a(a){var b=$("\x3cdiv\x3e\x3c/div\x3e");b.text(a);return b[0].innerHTML}function b(a){a.css("-webkit-transform",n).css("-ms-transform",n).css("transform",n)}function c(a,b){a.css("-webkit-transform",b).css("-ms-transform",b).css("transform",b)}w.sa("oj.ojFilmStrip",$.oj.baseComponent,{defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{maxItemsPerPage:0,orientation:"horizontal",currentItem:0,arrowPlacement:"adjacent",arrowVisibility:"auto"},_ComponentCreate:function(){this._super();
var a=this.element;a.addClass("oj-filmstrip oj-component").attr("tabindex",0).attr("role","region");a.uniqueId();a=this.options;a.disabled&&w.l.warn(Qg);if(a.orientation!==z&&a.orientation!==Df)throw Error(q+a.orientation);if(a.arrowPlacement!==d&&a.arrowPlacement!==rb)throw Error(r+a.arrowPlacement);if(a.arrowVisibility!==Pg&&a.arrowVisibility!==v&&a.arrowVisibility!==B&&a.arrowVisibility!==f)throw Error(s+a.arrowVisibility);this.Uy=this.eventNamespace+"Touch";this.oE=this.eventNamespace+"Mouse";
this.u0=this.eventNamespace+"Key";this.kN=this.eventNamespace+"NavArrowHoverable";this.Aa(!0)},refresh:function(){this._super();this.Aa(!1)},getItemsPerPage:function(){return this.jq},getPagingModel:function(){return this.Od},Nl:function(){this._super();this.Zc&&this.Aa(this.Zc[0])},Ml:function(){this._super();this.Zc&&this.Aa(this.Zc[0])},Aa:function(a){var b=this;a&&!this.Od&&(this.Od=new fv);a&&!this.ok&&(this.ok=function(a,c){return $(c).closest(".oj-filmstrip")[0]===b.element[0]});if(this.Ev()){this.Zc=
null;this.Vf="rtl"===this.$b();this.sn=w.q.ud();var c=this.element;a?(this.jq=0,this.VI=function(a){b.UI(a)},this.yn=0,this.Bw=-1,this.zk=function(){b.Zp()},this.Gg=function(){b.Ae()},this.sn&&(this.FU=function(a){b.dJ(a)},this.EU=function(a){b.cJ(a)},this.bJ=function(a){b.aJ(a)},this.V5()),this.uU=function(a){b.waa(a)},this.vU=function(a){b.xaa(a)},this.xU=function(a){b.zaa(a)},this.S5(),this.tU=function(a){b.Xp(a)},this.Q5()):this.mS();for(var d=c.children(),e=0;e<d.length;e++)w.Components.af(d[e]);
e=this.Od;if(a)e.on("page",this.VI);e.sd=d.length;this.yga();if(0<d.length){this.EQ();for(e=0;e<d.length;e++)w.Components.me(d[e]);w.q.Ch(c[0],this.Gg)}}else c=!1,this.Zc&&(c=this.Zc[0]),this.Zc=[a||c]},_destroy:function(){this.sn&&(this.hea(),this.bJ=this.EU=this.FU=null);this.aea();this.xU=this.vU=this.uU=null;this.Zda();this.tU=null;this.mS();this.Od.off("page",this.VI);this.ok=this.zk=this.Gg=this.Od=this.VI=null;var a=this.element;a.removeClass("oj-filmstrip oj-component "+P).removeAttr("tabindex role");
a.removeUniqueId();this._super()},mS:function(){w.q.Hi(this.element[0],this.Gg);this.Bw=-1;this.Ww&&(clearTimeout(this.Ww),this.Ww=null);for(var a=this.TA(),b=0;b<a.length;b++)w.Components.af(a[b]);this.mR();this.dI().unwrap();this.jga();for(b=0;b<a.length;b++)w.Components.me(a[b])},_setOption:function(a,b,c){var e=this.options,h=!1,k=-1,l=this.Od,m=l.getPage();switch(a){case "disabled":w.l.warn(Qg);break;case "orientation":if(b!==z&&b!==Df)throw Error(q+b);h=e.orientation!=b;break;case "maxItemsPerPage":h=
e.maxItemsPerPage!=b;break;case "arrowPlacement":if(b!==d&&b!==rb)throw Error(r+b);h=e.arrowPlacement!=b;break;case "arrowVisibility":if(b!==Pg&&b!==v&&b!==B&&b!==f)throw Error(s+b);h=e.arrowVisibility!=b;break;case C:if(e.currentItem!=b&&(k=this.PH(b),0>k||k>=l.getPageCount()))throw Error(p+b);}this._super(a,b,c);switch(a){case C:-1<k&&k!=m&&l.setPage(k)}h&&this.Aa(!1)},Ae:function(){if(!this.OQ)this.OQ=!0,this.EQ(!0),this.OQ=!1;else if(!this.Ww){var a=this;this.Ww=setTimeout(function(){a.Ww=null;
a.Ae()},0)}},Wb:function(){return this.options.orientation!==Df},fw:function(){return this.Wb()?this.Vf?"right":"left":"top"},Pp:function(){return this.Wb()?"width":"height"},Ev:function(){var a=document.createElement("div"),b=a.style;b.position="absolute";b.width="10px";b.height="10px";b=this.element[0];b.appendChild(a);var c=!1;try{c=0<a.offsetWidth&&0<a.offsetHeight}catch(d){}b.removeChild(a);return c},yga:function(){var a=this.element,b=this.Wb(),c=a.children();c.addClass(U).wrap("\x3cdiv class\x3d'"+
Q+" "+K+"'\x3e\x3c/div\x3e");var e=this.fw();this.tj=e=a.children().wrapAll("\x3cdiv class\x3d'"+Q+" "+ra+"' style\x3d'"+e+": 0px;'\x3e\x3c/div\x3e").parent();var f=this.options;f.arrowVisibility!==v&&f.arrowPlacement===d&&(this.hH=e.wrap("\x3cdiv class\x3d'"+Q+" oj-filmstrip-content-container'\x3e\x3c/div\x3e").parent());a.addClass(Q);b||a.addClass(Hc);f.arrowVisibility!==v&&0<c.length&&(this.hc=this.H7(),this.Lg=this.u7(),this.LJ()&&this.ofa())},jga:function(){var a=this.element,b=this.TA();this.Pfa();
this.hc&&(this.xp(this.hc),this.hc=null);this.Lg&&(this.xp(this.Lg),this.Lg=null);var c=a.children(Ga+D);c&&c.remove();b.removeClass(U).unwrap().unwrap();this.tj=null;this.hH&&(b.unwrap(),this.hH=null);a.removeClass(Q+" "+Hc)},ofa:function(){this.element.on("mouseenter"+this.kN,function(a){$(a.currentTarget).hasClass("oj-disabled")||$(a.currentTarget).addClass(P)}).on("mouseleave"+this.kN,function(a){$(a.currentTarget).removeClass(P)})},Pfa:function(){this.element.off(this.kN)},LJ:function(){var a=
this.options,b=a.arrowVisibility;return b===B||b===f&&a.arrowPlacement===rb},Uaa:function(){return 0<this.Od.getPage()},Taa:function(){var a=this.Od;return a.getPage()<a.getPageCount()-1},sda:function(){if(this.Uaa()){var a=this.Od;a.setPage(a.getPage()-1)}},Oca:function(){if(this.Taa()){var a=this.Od;a.setPage(a.getPage()+1)}},vS:function(a,b){this.options.arrowPlacement===d?b.css("visibility",a?"":v):b.parent().css("display",a?"":F)},rga:function(){if(this.options.arrowVisibility!==v){var a=this.Od,
b=a.getPage(),a=a.getPageCount();this.vS(0!==b,this.hc);this.vS(b!==a-1,this.Lg)}},H7:function(){var b=this.element,c=this.Wb()?kc:zb,d=this.NR(c);this.options.arrowPlacement===rb?b.append(d):b.prepend(d);var b=a(this.r("labelAccArrowPreviousPage")),e=a(this.r("tipArrowPreviousPage")),c=this.MR(d,c,b,e),f=this;c.on("click",function(){f.sda()});return c},u7:function(){var b=this.element,c=this.Wb()?G:I,d=this.NR(c);b.append(d);var b=a(this.r("labelAccArrowNextPage")),e=a(this.r("tipArrowNextPage")),
c=this.MR(d,c,b,e),f=this;c.on("click",function(){f.Oca()});return c},NR:function(a){var b=$(document.createElement("div"));b.addClass(D+" "+a);this.options.arrowPlacement===rb&&(b.addClass("oj-filmstrip-arrow-container-overlay"),this.LJ()&&b.addClass(J));return b},MR:function(a,b,c,e){var f="\x3cdiv class\x3d'"+E+" oj-default oj-enabled "+b+"' role\x3d'button' tabindex\x3d'-1'";a.append(f+("\x3e\x3cspan class\x3d'oj-filmstrip-arrow-icon "+b+" oj-component-icon'\x3e\x3c/span\x3e\x3c/div\x3e"));b=
this.element.attr("id");a=a.children(Ga+E).eq(0);a.uniqueId();f=a.attr("id");c&&a.attr("aria-label",c);e&&a.attr("title",e);a.attr("aria-labelledby",f+" "+b);this.ld(a);this.jh(a);this.options.arrowPlacement===d&&this.LJ()&&a.addClass(J);return a},dI:function(){return this.tj.find(Ga+K).filter(this.ok)},TA:function(){return this.tj.find(Ga+U).filter(this.ok)},In:function(){return this.tj.children(Ga+ha)},mR:function(){var a=this.tj;this.In().css(u,n).css(He,n);this.dI().css(u,n).css(He,n);a.css(this.Pp(),
n)},EQ:function(a){this.mR();var b=this.options,c=this.Wb(),f=b.maxItemsPerPage,k=1>f,l=this.element,m=this.dI();if(0>this.Bw){var q=this.zT(b.currentItem),q=$(m[q]),p=q.children(Ga+U);p.css(h,n);w.Components.Zm(p[0]);this.Bw=c?q.width():q.height()}q=c?l.width():l.height();b.arrowVisibility!==v&&b.arrowPlacement===d&&(l=l.children(Ga+D).eq(0),c=c?l.width():l.height(),q-=2*c);this.yn=q;k||(c=Math.max(Math.floor(q/this.Bw),1),c<f&&(f=c));f=k?Math.max(Math.floor(q/this.Bw),1):f;k=q/f;m.css(u,k+sb).css(He,
k+sb);k=Math.ceil(m.length/f);p=this.In();c=!1;l=this.Od;if(l.getPageCount()!=k||this.jq!=f||!p||1>p.length){c=!0;if(a)for(var r=0;r<m.length;r++)w.Components.af(m[r]);p&&0<p.length&&m.unwrap();for(r=0;r<m.length;r+=f)m.slice(r,r+f).wrapAll("\x3cdiv class\x3d'"+Q+" "+ha+"' style\x3d'"+h+": "+F+";' "+e+"\x3d'true'\x3e\x3c/div\x3e");if(a)for(r=0;r<m.length;r++)w.Components.me(m[r])}p=this.In();p.css(u,q+sb).css(He,q+sb);a=this.hH;this.tj.css(this.Pp(),q);a&&a.css(this.Pp(),q);a=0;if(b.currentItem||
0===b.currentItem)a=this.PH(b.currentItem,f);l.getPageCount()!=k||this.jq!=f||l.getPage()!=a?l.setPage(a,{pageSize:f}):c&&(b=l.getPage(),this.UI({previousPage:b,page:b}))},UI:function(a){var b=a.page,c=a.previousPage;a=this.tj;var d=this.In(),e=this.Od.Pa,f=0>c||c==b||this.jq!=e;this.jq=e;e=null;f||(e=$(d[c]));var h=this.fw(),k=$(d[b]),l=k.is(y);l&&this.gL(k);var m=this.ds;-1<c&&!f&&(m=!0,a.css(this.Pp(),2*this.yn),b<c&&l&&a.css(h,-this.yn+sb),b>c?(e.addClass(fa),k.addClass(Aa)):(e.addClass(Qa),k.addClass(Nb)));
if(m){var n=this,q=this.ds;q&&0>c&&d.filter(Ef).addClass(ia);setTimeout(function(){n.NS(b,c,f,q)},25)}else this.NS(b,c,f)},NS:function(a,d,e,f){var h=this.tj;e||(this.PQ=!0,h.on("transitionend"+this.eventNamespace+" webkitTransitionEnd"+this.eventNamespace,this.zk));e?this.Zp():(e=this.In(),f&&b(e),-1<d?(f=a>d,d=$(e[d]),a=$(e[a]),d.addClass(ia),a.addClass(ia),f?(d.removeClass(fa),a.removeClass(Aa),d.addClass(Fa),a.addClass(Xb)):(d.removeClass(Qa),a.removeClass(Nb),d.addClass($a),a.addClass(na))):
f&&(a=e.filter(Ef),c(a,"translate3d(0, 0, 0)")))},Zp:function(){this.PQ=!1;var a=this.tj,c=this.fw();a.off(this.eventNamespace).css(this.Pp(),this.yn).css(c,"0px");c=null;if(w.Jc.WC(a[0])||this.Lg&&w.Jc.WC(this.Lg[0])||this.hc&&w.Jc.WC(this.hc[0]))c=document.activeElement;for(var a=this.Od.getPage(),d=this.In(),e=0;e<d.length;e++)e!=a&&this.LU($(d[e]));d.removeClass(ia+" "+Fa+" "+Xb+" "+$a+" "+na);b(d);this.rga();c&&$(c).is(y)&&(c=this.element,(d=w.Jc.q_(d[a]))?w.Jc.Nx(d):w.Jc.Nx(c[0]));this.PH(this.options.currentItem)!=
a&&(a=this.qT(a),-1!==a&&this.option(C,a,{_context:{kc:!0}}))},zT:function(a){var b=-1,c=this.TA();if("number"===typeof a)0<=a&&a<c.length&&(b=a);else if("string"===typeof a&&w.q.ID(a))for(var d=0;d<c.length;d++){var e=c[d].id;if(e&&0<e.length&&e===a){b=d;break}}return b},PH:function(a,b){var c=this.zT(a),d=-1;-1<c&&(void 0===b&&(b=this.jq),d=Math.floor(c/b));return d},qT:function(a,b,c){var d=this.Od;void 0===b&&(b=d.getPageCount());return 0<=a&&a<b&&(b=this.TA(),void 0===c&&(c=this.jq),a*=c,a<b.length)?
(c=b[a].id)&&0<c.length?c:a:-1},LU:function(a){w.Components.Wo(a[0]);a.css(h,F).attr(e,"true");a.find(Ga+U).filter(this.ok).css(h,F)},gL:function(a){a.css(h,n).removeAttr(e);a.find(Ga+U).filter(this.ok).css(h,n);w.Components.Zm(a[0])},Q5:function(){this.element.on("keydown"+this.u0,this.tU)},Zda:function(){this.element.off(this.u0)},S5:function(){this.element.on("mousedown"+this.oE,this.uU).on("mousemove"+this.oE,this.vU).on("mouseup"+this.oE,this.xU)},aea:function(){this.element.off(this.oE)},V5:function(){this.element.on("touchstart"+
this.Uy,this.FU).on("touchmove"+this.Uy,this.EU).on("touchend"+this.Uy,this.bJ).on("touchcancel"+this.Uy,this.bJ)},hea:function(){this.element.off(this.Uy)},Xp:function(a){var b=this.Od,c=b.getPage(),d=-1;switch(a.keyCode){case $.ui.keyCode.RIGHT:d=this.Vf?c-1:c+1;break;case $.ui.keyCode.LEFT:d=this.Vf?c+1:c-1;break;case $.ui.keyCode.DOWN:d=c+1;break;case $.ui.keyCode.UP:d=c-1;break;case $.ui.keyCode.HOME:d=0;break;case $.ui.keyCode.END:d=b.getPageCount()-1;break;default:return}-1<d&&d<b.getPageCount()&&
b.setPage(d);a.preventDefault()},waa:function(a){this.DS(a.originalEvent)},xaa:function(a){this.CS(a,a.originalEvent)},zaa:function(){this.BS()},dJ:function(a){a=a.originalEvent.touches;1===a.length&&this.DS(a[0])},cJ:function(a){this.CS(a,a.originalEvent.touches[0]);(this.Xh||this.Aq)&&a.preventDefault()},aJ:function(){this.BS()},DS:function(a){if(1<this.Od.getPageCount()&&!this.PQ){this.Xh=!0;this.ds=!1;var b=this.Wb();this.xC=b?a.pageX:a.pageY;this.MY=b?a.pageY:a.pageX}},kba:function(a){var b=
this.Wb();this.xC=b?a.pageX:a.pageY;this.MY=b?a.pageY:a.pageX;a=this.fw();var b=this.tj,c=this.Od,d=this.In(),e=1;0<c.getPage()&&(this.gL($(d[c.getPage()-1])),b.css(a,-this.yn+sb),e++);c.getPage()<c.getPageCount()-1&&(this.gL($(d[c.getPage()+1])),e++);1<e&&b.css(this.Pp(),e*this.yn);this.WK=parseInt(b.css(a),10)},CS:function(a,b){if(this.Xh){var d=this.Wb(),e=(d?b.pageX:b.pageY)-this.xC;Math.abs((d?b.pageY:b.pageX)-this.MY)>Math.abs(e)&&(this.Aq=this.Xh=!1);if(this.ds){var f=d&&this.Vf?0<e:0>e,h=
this.Od,n=h.getPage();if(f&&n<h.getPageCount()-1||!f&&0<n){var q=this.element[0],p=Math.min(l*(d?q.offsetWidth:q.offsetHeight),m),r=this.fw(),s=this.tj,q=this.In();Math.abs(e)>=p?(d=f?n+1:n-1,this.qT(d),n=f?n-1:n+1,-1<n&&n<h.getPageCount()&&this.LU($(q[n])),f&&-1<n&&(q=parseInt(s.css(r),10),s.css(r,q+this.yn+sb)),s.css(this.Pp(),2*this.yn),this.Xh=!1,h.setPage(d)):(h=d&&this.Vf?-e:e,h=d?"translate3d("+h+"px, 0, 0)":"translate3d(0, "+h+"px, 0)",c(q.filter(Ef),h));this.Aq=!0}this.Aq&&(a.preventDefault(),
a.stopPropagation())}else Math.abs(e)>k&&(this.kba(b),this.ds=!0)}},BS:function(){if(this.Xh&&this.ds){var a=this.Od.getPage();this.UI({previousPage:a,page:a})}this.Aq=this.ds=this.Xh=!1},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:null;a=a.subId;return"oj-filmstrip-start-arrow"===a?this.widget().find(Ga+E+Ga+kc).filter(this.ok)[0]:"oj-filmstrip-end-arrow"===a?this.widget().find(Ga+E+Ga+G).filter(this.ok)[0]:"oj-filmstrip-top-arrow"===a?this.widget().find(Ga+E+Ga+zb).filter(this.ok)[0]:
"oj-filmstrip-bottom-arrow"===a?this.widget().find(Ga+E+Ga+I).filter(this.ok)[0]:null},getSubIdByNode:function(a){for(var b=this.getNodeBySubId({subId:"oj-filmstrip-start-arrow"}),c=this.getNodeBySubId({subId:"oj-filmstrip-end-arrow"}),d=this.getNodeBySubId({subId:"oj-filmstrip-top-arrow"}),e=this.getNodeBySubId({subId:"oj-filmstrip-bottom-arrow"}),f=this.element[0];a&&a!=f;){if(a===b)return{subId:"oj-filmstrip-start-arrow"};if(a===c)return{subId:"oj-filmstrip-end-arrow"};if(a===d)return{subId:"oj-filmstrip-top-arrow"};
if(a===e)return{subId:"oj-filmstrip-bottom-arrow"};a=a.parentElement}return null}});var d="adjacent",e="aria-hidden",f="auto",h="display",k=3,l=.33,m=100,n="",p="JET FilmStrip: Value of 'currentItem' option not found: ",q="JET FilmStrip: Unsupported value set as 'orientation' option: ",r="Unsupported value set as 'arrowPlacement' option: ",s="Unsupported value set as 'arrowVisibility' option: ",u="flex-basis",v="hidden",y=":hidden",z="horizontal",B="hover",C="currentItem",F="none",I="oj-bottom",G=
"oj-end",E="oj-filmstrip-arrow",D="oj-filmstrip-arrow-container",J="oj-filmstrip-arrow-transition",Q="oj-filmstrip-container",P="oj-filmstrip-hover",U="oj-filmstrip-item",K="oj-filmstrip-item-container",ha="oj-filmstrip-page",ra="oj-filmstrip-pages-container",ia="oj-filmstrip-transition",Aa="oj-filmstrip-transition-next-newpage-from",fa="oj-filmstrip-transition-next-oldpage-from",Nb="oj-filmstrip-transition-prev-newpage-from",Qa="oj-filmstrip-transition-prev-oldpage-from",Xb="oj-filmstrip-transition-next-newpage-to",
Fa="oj-filmstrip-transition-next-oldpage-to",na="oj-filmstrip-transition-prev-newpage-to",$a="oj-filmstrip-transition-prev-oldpage-to",Hc="oj-filmstrip-vertical",kc="oj-start",zb="oj-top",rb="overlay",Ga=".",sb="px",Df="vertical",Pg="visible",Ef=":visible",He="-webkit-flex-basis",Qg="JET FilmStrip: 'disabled' option not supported"})();
w.Components.xa("ojFilmStrip","baseComponent",{properties:{arrowPlacement:{type:"string"},arrowVisibility:{type:"string"},currentItem:{type:"string|number"},disabled:{type:"boolean"},maxItemsPerPage:{type:"number"},orientation:{type:"string"}},methods:{getItemsPerPage:{},getPagingModel:{},refresh:{}},extension:{_widgetName:"ojFilmStrip"}});w.Components.register("oj-film-strip",w.Components.getMetadata("ojFilmStrip"));w.Ga=function(){};t("KnockoutUtils",w.Ga,w);w.Ga.zM="oj._internalObj";w.Ga.bh="oj._underUpdate";
w.Ga.Jt="oj.collectionUpdating";w.Ga.IN="oj.collectionSubscription";w.Ga.ON="oj.collectionUpdatingFunc";
w.Ga.map=function(a,b,c){function d(b){return function(c){e[w.Ga.bh]||a.set(b,c)}}var e,f,h,k;if(a instanceof N){f=Array(a.Bd());e=c?ko.observableArray(f):f;w.Ga.rY(e,a);if(c)for(f=0;f<a.Rb.length;f++)h=a.Rb[f],e()[h]=w.Ga.map(qc(a,h,null,!0,!1),b);else for(f=0;f<a.Rb.length;f++)h=a.Rb[f],e[h]=w.Ga.map(qc(a,h,null,!0,!1),b);f=function(b){var c;try{if(!e[w.Ga.bh]){e[w.Ga.Jt]=!0;for(c=0;c<b.length;c++){var d=b[c].index,f=w.Ga.Kb(b[c].value),h=b[c].status;"added"===h?d>=a.length-1?a.add(f):a.add(f,{at:d}):
"deleted"===h&&a.yq(f,d)}a.comparator&&(e[w.Ga.bh]=!0,e.sort(function(b,c){return w.Ga.eR(b,c,a.comparator,a,this)}),e[w.Ga.bh]=!1)}}catch(k){throw k;}finally{e[w.Ga.Jt]=!1}};c&&e.subscribe&&(e[w.Ga.ON]=f,e[w.Ga.IN]=e.subscribe(f,null,"arrayChange"));c=function(a,b,c){var d;try{!e[w.Ga.Jt]&&b instanceof N&&(e[w.Ga.bh]=!0,d=c.index,e.splice(d,1))}catch(f){throw f;}finally{e[w.Ga.bh]=!1}};f=function(a,c,d){var f,h;try{if(!e[w.Ga.Jt]&&c instanceof N){e[w.Ga.bh]=!0;var k=Jc(c,a);f=void 0!==k?k.index:
-1;if(void 0!==f&&-1<f)if(h=w.Ga.map(a,b),d.fillIn){for(var s=Array.isArray(e)?e.length:e().length;s<f;s++)e.splice(s,0,w.Ga.map(qc(c,s,null,!0,!1),b));e.splice(f,1,h)}else e.splice(f,0,h)}}catch(u){throw u;}finally{e[w.Ga.bh]=!1}};h=function(a){try{!e[w.Ga.Jt]&&a instanceof N&&(e[w.Ga.bh]=!0,ko.isObservable(e)?(e[w.Ga.IN]&&e[w.Ga.IN].dispose(),e.removeAll(),e[w.Ga.ON]&&e.subscribe(e[w.Ga.ON],null,"arrayChange")):e=[])}catch(b){throw b;}finally{e[w.Ga.bh]=!1}};k=function(b){try{!e[w.Ga.Jt]&&b instanceof
N&&(e[w.Ga.bh]=!0,e.sort(function(c,d){return w.Ga.eR(c,d,a.comparator,b,this)}))}catch(c){throw c;}finally{e[w.Ga.bh]=!1}};a.Hl(L.ADD,f,void 0,void 0,!0);a.Hl(L.REMOVE,c,void 0,void 0,!0);a.Hl(L.RESET,h,void 0,void 0,!0);a.Hl(L.SORT,k,void 0,void 0,!0)}else{if(void 0===a)return;e={};c=a.attributes;f=null;for(f in c)c.hasOwnProperty(f)&&(h=ko.observable(a.get(f)),e[f]=h,k=d(f),k.kla=f,h.subscribe&&h.subscribe(k));c=function(a){var b,c;try{for(c in e[w.Ga.bh]=!0,b=a.EL(),b)if(b.hasOwnProperty(c))e[c](a.get(c))}catch(d){throw d;
}finally{e[w.Ga.bh]=!1}};a.Hl(L.CHANGE,c,void 0,void 0,!0);w.Ga.rY(e,a);b&&b(e)}return e};t("KnockoutUtils.map",w.Ga.map,w);w.Ga.Kb=function(a){return a instanceof M?a:a.hasOwnProperty(w.Ga.zM)?a[w.Ga.zM]:a};w.Ga.eR=function(a,b,c,d,e){return wc(w.Ga.Kb(a),w.Ga.Kb(b),c,d,e)};w.Ga.rY=function(a,b){Object.defineProperty(a,w.Ga.zM,{value:b,enumerable:!1})};function gv(){this.id=null;this.depth=0;this.parent=null;this.children=[];this.KM=this.attr=this.title=null}
function hv(a){return function(b,c){return null!=b.attr&&null!=c.attr&&null!=b.attr[a]&&null!=c.attr[a]?b.attr[a]<c.attr[a]?-1:b.attr[a]===c.attr[a]?0:1:b[a]<c[a]?-1:b[a]===c[a]?0:1}}function iv(a){return function(b,c){return null!=b.attr&&null!=c.attr&&null!=b.attr[a]&&null!=c.attr[a]?b.attr[a]<c.attr[a]?1:b.attr[a]===c.attr[a]?0:-1:b[a]<c[a]?1:b[a]===c[a]?0:-1}}
function jv(a,b){var c=b.key;"ascending"===b.direction?a.children.sort(hv(c)):"descending"===b.direction&&a.children.sort(iv(c));for(var c=0,d=a.children.length;c<d;c++)jv(a.children[c],b)}function xu(a){var b;b=new gv;null==a.id&&(b.id="root");this.data=kv(this,{count:0},b,a);xu.o.constructor.call(this,b)}t("JsonTreeDataSource",xu,w);H(xu,Rf,"oj.JsonTreeDataSource");xu.prototype.Init=function(){xu.o.Init.call(this)};A("JsonTreeDataSource.prototype.Init",{Init:xu.prototype.Init});
function kv(a,b,c,d,e){var f,h,k,l,m,n,p;null==e&&(e=0);for(l in d)if("children"==l||0==e&&d instanceof Array)for(f=0==e&&d instanceof Array?d:d[l],e++,p=0;p<f.length;p++){k=f[p];h=new gv;null==k.id&&(b.count++,null==k.attr?h.id="rid_"+b.count:null==k.attr.id&&(k.attr.id="rid_"+b.count));for(m in k)for(n in h)m==n&&"children"!=m&&(h[n]=k[m]),"depth"==n&&(h[n]=e);c.children.push(h);for(n in k)"children"==n&&kv(a,b,c.children[p],k,e)}return c}
xu.prototype.getChildCount=function(a){null==a&&(a=this.data.id);a=lv(this,this.data,a);return a.children?a.children.length:0};A("JsonTreeDataSource.prototype.getChildCount",{getChildCount:xu.prototype.getChildCount});
xu.prototype.fetchChildren=function(a,b,c){var d,e,f,h,k;f=[];null==a&&(a=this.data.id);h=lv(this,this.data,a);b||(b=[],b.start=0,b.count=h.children.length);b.count||(b.count=h.children.length);b.start||(b.start=0);d=b.start;e=Math.min(h.children.length,d+b.count);for(b=d;b<e;b+=1)k=new gv,null!=h.children[b].attr&&(k.attr=h.children[b].attr),null!=h.children[b].id&&(k.id=h.children[b].id),null!=h.children[b].depth&&(k.depth=h.children[b].depth),null!=h.children[b].title&&(k.title=h.children[b].title),
null!=h.children[b].parent&&(k.parent=h.children[b].parent),k.KM=0<h.children[b].children.length?!1:!0,f.push(k);a=new mv(d,e,f,a);null!=c&&null!=c.success&&c.success.call(null,a)};A("JsonTreeDataSource.prototype.fetchChildren",{fetchChildren:xu.prototype.fetchChildren});
xu.prototype.fetchDescendants=function(a,b){var c,d,e,f;e=[];null==a&&(a=this.data.id);f=lv(this,this.data,a);c=[];c.start=0;c.count=f.children.length;d=c.start;for(c=Math.min(f.children.length,d+c.count);d<c;d+=1)f.children[d].KM=0<f.children[d].children.length?!1:!0,e.push(f.children[d]);e=new mv(0,e.length,e,a);null!=b&&null!=b.success&&b.success.call(null,e)};A("JsonTreeDataSource.prototype.fetchDescendants",{fetchDescendants:xu.prototype.fetchDescendants});xu.prototype.moveOK=function(){return"valid"};
A("JsonTreeDataSource.prototype.moveOK",{moveOK:xu.prototype.moveOK});
xu.prototype.move=function(a,b,c,d){var e;e=b;if(null==e||e==this.data.id){if("inside"!=c){w.l.log("Error: root can not be the reference node if position equals to "+c);return}e||(e=this.data.id)}a=lv(this,null,a);if(lv(this,a,e))w.l.log("Error: the node to move contains the reference node as its sub-tree.");else{b=lv(this,null,e);e=nv(this,e);var f,h;null!=a.id?f=a.id:null!=a.attr&&(f=a.attr.id);(f=nv(this,f))||(f=this.data);h=f.children.indexOf(a);-1<h&&f.children.splice(h,1);"inside"==c?(this.qm(a,
a.depth-(b.depth+1)),b.children.push(a)):"before"==c?(this.qm(a,a.depth-b.depth),c=e.children.indexOf(b),-1<c&&(0!=c?e.children.splice(c,0,a):e.children.unshift(a))):"after"==c?(this.qm(a,a.depth-b.depth),c=e.children.indexOf(b),-1<c&&e.children.splice(c+1,0,a)):"first"==c?(this.qm(a,a.depth-b.depth),e.children.unshift(a)):"last"==c&&(this.qm(a,a.depth-b.depth),e.children.push(a));null!=d&&null!=d.success&&d.success.call(null,this.data)}};A("JsonTreeDataSource.prototype.move",{move:xu.prototype.move});
xu.prototype.sort=function(a,b){var c;c=lv(this,this.data,this.data.id);jv(c,a);null!=b&&null!=b.success&&b.success.call(null,c)};A("JsonTreeDataSource.prototype.sort",{sort:xu.prototype.sort});xu.prototype.getSortCriteria=function(){return{key:null,direction:"none"}};A("JsonTreeDataSource.prototype.getSortCriteria",{getSortCriteria:xu.prototype.getSortCriteria});
function nv(a,b,c){var d,e=null;if(b==a.data.id)return null;null==c&&(c=a.data);if(c.children&&0<c.children.length){for(d=0;d<c.children.length;d++)if(c.children[d].id&&c.children[d].id==b||c.children[d].attr&&c.children[d].attr.id==b)return c;for(d=0;d<c.children.length&&!(e=nv(a,b,c.children[d]));d++);}return e}
function lv(a,b,c){var d,e=null;null==b&&(b=a.data);if(b.id&&b.id==c||b.attr&&b.attr.id==c)return b;if(null!=b.children)for(d=0;d<b.children.length&&!e;d++)e=b.children[d].id&&b.children[d].id==c||b.children[d].attr&&b.children[d].attr.id==c?b.children[d]:lv(a,b.children[d],c);return e}xu.prototype.qm=function(a,b){var c;a.depth-=b;if(a.children&&0!=a.children.length)for(c=0;c<a.children.length;c++)this.qm(a.children[c],b)};
xu.prototype.getCapability=function(a){return"fetchDescendants"===a?"enable":"sort"===a?"default":"batchFetch"===a?"disable":"move"===a?"full":null};A("JsonTreeDataSource.prototype.getCapability",{getCapability:xu.prototype.getCapability});function mv(a,b,c,d){w.i.rm(a,null);w.i.rm(b,null);this.Iia=d;this.Jo=a;this.VD=b;this.Kf=c}t("JsonNodeSet",mv,w);mv.prototype.getParent=function(){return this.Iia};A("JsonNodeSet.prototype.getParent",{getParent:mv.prototype.getParent});mv.prototype.getStart=function(){return this.Jo};
A("JsonNodeSet.prototype.getStart",{getStart:mv.prototype.getStart});mv.prototype.getCount=function(){return Math.max(0,this.VD-this.Jo)};A("JsonNodeSet.prototype.getCount",{getCount:mv.prototype.getCount});mv.prototype.getData=function(a){w.i.assert(a<=this.VD&&a>=this.Jo);a-=this.Jo;return this.Kf[a]?this.Kf[a].attr:null};A("JsonNodeSet.prototype.getData",{getData:mv.prototype.getData});
mv.prototype.getMetadata=function(a){var b=[];w.i.assert(a<=this.VD&&a>=this.Jo);a-=this.Jo;b.key=this.Kf[a].id?this.Kf[a].id:this.Kf[a].attr.id;b.leaf=this.Kf[a].KM;b.depth=this.Kf[a].depth;null==b.leaf&&(b.leaf=this.Kf[a].children&&0<this.Kf[a].children.length?!1:!0);return b};A("JsonNodeSet.prototype.getMetadata",{getMetadata:mv.prototype.getMetadata});mv.prototype.qm=function(a,b){var c;b++;a.depth=b;if(a.children&&0!=a.children.length)for(c=0;c<a.children.length;c++)this.qm(a.children[c],b)};
mv.prototype.Cf=function(a){var b,c,d;w.i.assert(a<=this.VD&&a>=this.Jo);a-=this.Jo;c=this.Kf[a].depth;b=this.Kf[a].children;if(0==b.length)return null;a=this.Kf[a].id?this.Kf[a].id:this.Kf[a].attr.id;for(d=0;d<b.length;d++)this.qm(b[d],c);return new mv(0,b.length,b,a)};A("JsonNodeSet.prototype.getChildNodeSet",{Cf:mv.prototype.Cf});
(function(){var a="oj-left oj-center oj-right oj-top oj-middle oj-bottom".split(" "),b={"right-top":"oj-right oj-top","right-middle":"oj-right oj-middle","right-bottom":"oj-right oj-bottom","left-top":"oj-left oj-top","left-middle":"oj-left oj-middle","left-bottom":"oj-left oj-bottom","center-top":"oj-center oj-top","center-middle":"oj-left oj-middle","center-bottom":"oj-center oj-bottom"};w.sa("oj.ojPopup",$.oj.baseComponent,{widgetEventPrefix:"oj",options:{autoDismiss:"focusLoss",chrome:"default",
initialFocus:"auto",position:{my:"start top",at:"start bottom",of:"",collision:"flip"},tail:"none",modality:"modeless",role:"tooltip",beforeOpen:null,open:null,beforeClose:null,close:null,focus:null},_ComponentCreate:function(){this._super();var a;this.Kc?a=$(this.Kc):(a=$("\x3cdiv\x3e"),this.element.after(a));this.fe=a.hide().addClass("oj-popup").attr("aria-hidden","true");a.addClass("oj-component");var b=$("\x3cdiv\x3e").addClass("oj-popup-content");b.attr("role","presentation");b.appendTo(a);this.element.appendTo(b);
this.element.show();this.WR();this.KX();this.Bx=$.proxy(this.Cx,this)},_destroy:function(){this.isOpen()&&this.Ep();this.qS();delete this.Bx;delete this.vj;w.q.unwrap(this.element,this.fe);this.element.hide();var a=this.vn;isNaN(a)||(delete this.vn,window.clearTimeout(a));this.rS();this._super()},widget:function(){return this.fe},open:function(a,b){if(this.isOpen()&&(this.close(),this.isOpen()))return;this.Zea(a);var e=this.fe;a=this.qc;w.Ca.ti(e.attr("id"))&&e.attr("id",this.$A("wrapper"));if(!1!==
this._trigger("beforeOpen")){this.UX(b);var f=this.options;this.uK(f.autoDismiss);this.J5();e.attr("role",f.role);b=f.position;var h="rtl"===this.$b();b=w.lc.Nh(b,h);var h="oj-popup-layer",k=f.tail;"none"!==k&&(h+=" "+["oj-popup-tail",k].join("-"));k={};k[xl]=e;k[yl]=a;k[Al]=b;k[zl]=this.Cs();k[Bl]=h;k.modality=f.modality;sl().open(k);this._trigger("open");this.pJ();this.uba();this._on(e,{keydown:this.Ss,keyup:this.Ss});a&&0<a.length&&this._on(a,{keydown:this.Ss,keyup:this.Ss})}},close:function(){if(this.isOpen()&&
(!1!==this._trigger("beforeClose")||this.uw)){this.tea();var a=this.qc,b=this.fe;this._off(b,"keydown keyup");a&&0<a.length&&this._off(a,"keydown keyup");this.rS();a={};a[xl]=b;sl().close(a);this.Wda();this.uK();delete this.qc;b=this.options.position;b._ofo&&(delete b._ofo,delete b.of);this._trigger("close")}},isOpen:function(){return this.fe.is(":visible")},refresh:function(){this._super();this.isOpen()&&this.qX();var a=this.fe;sl().IE(a,tl)},_setOption:function(a,b){var e=this.options;switch(a){case "tail":b!==
e.tail&&this.gfa(b);break;case "chrome":b!==e.chrome&&this.KX(b);break;case "position":this.UX(b);this.refresh();return;case "autoDismiss":this.isOpen()&&b!==e.autoDismiss&&this.uK(b);break;case "modality":this.isOpen()&&(e={},e[xl]=this.fe,e.modality=b,sl().It(e))}this._superApply(arguments)},Wka:function(){return"oj-popup"},gfa:function(a){this.qS();this.WR(a);this.qX()},WR:function(a){a=a?a:this.options.tail;if("none"!==a){a=["oj-popup-tail",a].join("-");var b=$("\x3cdiv\x3e").hide();b.addClass("oj-popup-tail").addClass(a);
b.attr("role","presentation");this.BY=b.attr("id",this.$A("tail")).attr("id");var e=this.fe;b.appendTo(e);e.addClass(a);this.isOpen()&&(b={},b[xl]=e,b[Bl]="oj-popup-layer "+a,sl().It(b))}},WT:function(){var a=this.BY;return a?$(document.getElementById(a)):null},qS:function(){var a=this.WT();a&&a.remove();delete this.BY;a=this.fe;a.removeClass(["oj-popup-tail",this.options.tail].join("-"));if(this.isOpen()){var b={};b[xl]=a;b[Bl]="oj-popup-layer";sl().It(b)}},KX:function(a){a=a?a:this.options.chrome;
var b=this.fe;"default"===a&&b.hasClass("oj-popup-no-chrome")?b.removeClass("oj-popup-no-chrome"):"none"!==a||b.hasClass("oj-popup-no-chrome")||b.addClass("oj-popup-no-chrome")},Zea:function(a){a?"string"===$.type(a)?a=$(a):1===a.nodeType&&(a=$(a)):a=$(document.activeElement);if(a instanceof $&&1<a.length)for(var b=this.fe,e=0;e<a.length;e++){var f=a[0];if(!w.q.vo(b[0],f)){a=$(f);break}}else if(!(a instanceof $)||a instanceof $&&0===a.length)a=$(document.activeElement);this.qc=a},UX:function(a){var b=
this.options;a&&(b.position=$.extend(b[a],a));a=b.position;b=this.Bx;$.isFunction(a.using)&&a.using!==b&&(a.origUsing=a.using);a.using=b;b=this.qc;a.of||(a.of=b,a._ofo=!0)},Cx:function(c,d){var e=d.element.element;if(c.top!==e.css("top")||c.left!==e.css("left")){var f=this.WT();if(f){f.hide();for(var h=0;h<a.length;h++)f.removeClass(a[h]),e.removeClass(a[h]);f.removeAttr("style");if(d.target&&0===d.target.height&&0===d.target.width&&(h="rtl"===this.$b(),h=w.lc.Nh(this.options.position,h).my,!w.Ca.ti(h))){var h=
h.split(" "),k="center"===h[0]?h[0]:d.horizontal,l="middle";1<h.length&&(l="center"===h[1]?"middle":h[1]);d.horizontal=k;d.vertical=l}h=b[[d.horizontal,d.vertical].join("-")];f.addClass(h);e.addClass(h);f.show();"left"===d.horizontal?(h=f.outerWidth(),h-=h+w.q.Bm(f.css("left")),c.left+=h-2):"right"===d.horizontal&&(h=f.outerWidth(),h-=h+w.q.Bm(f.css("right")),c.left-=h-2);"top"===d.vertical?(h=f.outerHeight(),h-=h+w.q.Bm(f.css(d.vertical)),c.top+=h-2):"bottom"===d.vertical&&(h=f.outerHeight(),h-=
h+w.q.Bm(f.css(d.vertical)),c.top-=h-2);e.css(c);"center"===d.horizontal&&"middle"!==d.vertical?(e=e.width(),e=Math.round((e/2-f.outerWidth()/2)/e*100),f.css({left:e+"%"})):"middle"===d.vertical&&(e=e.height(),e=Math.round((e/2-f.outerHeight()/2)/e*100),f.css({top:e+"%"}))}else e.css(c);f=this.options;(e=f.position.origUsing)&&e(c,d);"focusLoss"===f.autoDismiss&&w.lc.AM(d)&&(this.jJ=!0,this.vn=this._delay($.proxy(this.Ep,this),1))}},qX:function(){var a=this.fe,b=this.options.position,e="rtl"===this.$b();
a.position(w.lc.Nh(b,e))},pJ:function(a){var b=this.c8();a&&"none"===b&&(b="popup");if("firstFocusable"===b){a=this.element.find(":focusable");for(var e,f=0;f<a.length;f++)if(w.Jc.au(a[f])){e=a[f];break}e?(e.focus(),this._trigger("focus")):b="popup"}"popup"===b&&(b=this.fe,b.attr("tabindex","-1"),b.focus(),this._trigger("focus"))},c8:function(){var a=this.options,b=a.initialFocus;"auto"===b&&(b="modal"===a.modality?w.q.ud()?"popup":"firstFocusable":"none");return b},uB:function(a,b){a||(a=document.activeElement);
if(!a)return!1;var e=this.fe;b&&(e=e.parent());return w.q.vo(e[0],a)},tV:function(a){a||(a=document.activeElement);return w.q.vo(this.qc[0],a)},tea:function(){this.jJ?delete this.jJ:this.uB(null,!0)&&this.qc.focus()},Ss:function(a){if(!a.isDefaultPrevented()){var b=a.type,e=a.target;if("keyup"===b&&a.keyCode===$.ui.keyCode.ESCAPE&&(this.uB(e)||this.tV(e)))a.preventDefault(),this.close();else if("keydown"===b&&117===a.keyCode)this.uB(e)?(e=this.options,"modeless"===e.modality?(a.preventDefault(),a=
this.qc,a.focus()):this.close()):this.tV(e)&&(a.preventDefault(),this.pJ(!0));else if("keydown"===b&&a.keyCode===$.ui.keyCode.TAB&&this.uB(e)){var f=this.element.find(":tabbable");if(0<f.length){var b=f[0],f=f[f.length-1],h=this.fe;b!==e&&h[0]!==e||!a.shiftKey?f!==e||a.shiftKey||(a.preventDefault(),f===b?(h.attr("tabindex","-1"),h.focus()):$(b).focus()):(a.preventDefault(),b===f&&b===e?(h.attr("tabindex","-1"),h.focus()):$(f).focus())}else a.preventDefault(),e=this.options,"modeless"===e.modality?
(a=this.qc,a.focus()):this.close()}}},uK:function(a){var b=this.WS,e=this.Cs();b&&(delete e[wl],delete this.WS);"focusLoss"===a&&(b=this.WS=$.proxy(this.f8,this),e[wl]=b);this.isOpen()&&(a={},a[xl]=this.fe,a[zl]=e,sl().It(a))},f8:function(a){var b=this.qc,e=this.fe.parent(),f=a.target,h=this.GA;if(h&&(h=h.getLink())&&w.q.vo(h[0],f))return;if(!w.q.vo(b[0],f)&&!w.q.vo(e[0],f)){if(w.Jc.au(f)){if("mousedown"===a.type||"touchstart"===a.type)return;this.jJ=!0}this.close()}},J5:function(){var a=this.qc,
b=this.fe.attr("id"),e=a.attr("aria-describedby"),e=e?e.split(/\s+/):[];e.push(b);e=$.trim(e.join(" "));a.attr("aria-describedby",e)},Wda:function(){var a=this.qc,b=this.fe.attr("id"),e=a.attr("aria-describedby"),e=e?e.split(/\s+/):[],b=$.inArray(b,e);-1!==b&&e.splice(b,1);(e=$.trim(e.join(" ")))?a.attr("aria-describedby",e):a.removeAttr("aria-describedby")},uba:function(){var a="IOS"===w.Ic.zm().os;this.CJ||(this.CJ=new ws);var b;b=a?this.r("none"===this.options.initialFocus?"ariaLiveRegionInitialFocusNoneTouch":
"ariaLiveRegionInitialFocusFirstFocusableTouch"):this.r("none"===this.options.initialFocus?"ariaLiveRegionInitialFocusNone":"ariaLiveRegionInitialFocusFirstFocusable");if(!w.Ca.hl(b)){var e;e=$(document.getElementById("__oj_popup_arialiveregion"));0===e.length&&(e=$("\x3cdiv\x3e"),e.attr({id:"__oj_popup_arialiveregion",role:"log","aria-live":"polite","aria-relevant":"additions"}),e.addClass("oj-helper-hidden-accessible"),e.appendTo(document.body));e.children().remove();$("\x3cdiv\x3e").text(b).appendTo(e)}if(a){if(!this.GA){e=
this.$A("focusSkipLink");var f=this.qc,a=$.proxy(this.pJ,this,!0);b=this.r("ariaFocusSkipLink");this.GA=new ys(f,b,a,e)}this.eH||(e=this.$A("closeSkipLink"),f=this.element,a=$.proxy(this.Ep,this),b=this.r("ariaCloseSkipLink"),this.eH=new ys(f,b,a,e))}},rS:function(){var a=this.CJ;a&&(a.destroy(),delete this.CJ);if(a=this.GA)a.destroy(),delete this.GA;if(a=this.eH)a.destroy(),delete this.eH},$A:function(a){var b=this.element.attr("id");w.Ca.ti(b)&&(b=this.uuid);return[b,a].join("_")},Fq:function(){this.element.remove()},
Cs:function(){if(!this.vj){var a=this.vj={};a[ul]=$.proxy(this.Ep,this);a[vl]=$.proxy(this.Fq,this);a[tl]=$.proxy(this.refresh,this)}return this.vj},Ep:function(){this.uw=!0;this.close();delete this.uw}});w.Components.Rj({ojPopup:{modality:w.Components.ad(function(){return(w.Ob.Tc("oj-popup-option-defaults")||{}).modality})}})})();
w.Components.xa("ojPopup","baseComponent",{properties:{autoDismiss:{type:"string"},chrome:{type:"string"},initialFocus:{type:"string"},modality:{type:"string"},widget:{},position:{type:"Object"},role:{type:"string"},tail:{type:"string"}},methods:{close:{},isOpen:{},open:{},refresh:{}},extension:{_hasWrapper:!0,_innerElement:"div",_widgetName:"ojPopup"}});w.Components.register("oj-popup",w.Components.getMetadata("ojPopup"));
function ov(a,b,c,d,e,f,h){this.ac=a;this.Zca=b;this.hs=c;this.$z=d;e&&(e.dja&&(this.qda=e.dja),e.Ria&&(this.Mca=e.Ria),e.F1&&(this.rda=e.F1),e.o1&&(this.Nca=e.o1),e.E1&&(this.pda=e.E1),e.n1&&(this.Lca=e.n1));f&&(f.Q1&&(this.DX=f.Q1),f.uha&&(this.TH=f.uha),f.Tga&&(this.Bp=f.Tga),f.Ch&&(this.Sz=f.Ch),f.Hi&&(this.dC=f.Hi),f.Fx&&(this.gf=f.Fx),f.My&&(this.ee=f.My),f.b0&&(this.lB=f.b0),f.RZ&&(this.MH=f.RZ));h&&(h.w1&&(this.xW=h.w1),h.EZ&&(this.ER=h.EZ),h.t0&&(this.iq=h.t0),h.e0&&(this.Js=h.e0));this.Yz=
!0;this.xs=0;a=navigator.userAgent.toLowerCase();if(-1!==a.indexOf("gecko/"))this.n6=!0;else if(-1!==a.indexOf("opera"))this.o6=!0;else if(-1!==a.indexOf("applewebkit")||-1!==a.indexOf("safari"))this.p6=!0}
ov.prototype.Tj=function(a){var b=this;if(a){pv(this);qv(this,this.qda,this.rda,this.pda);rv(this,this.Mca,this.Nca,this.Lca);var c=this.Lg;this.cA=c.offsetWidth;this.bA=c.offsetHeight;sv(this);tv(this);this.Iw=function(a){var c=b.dk;if(uv(b)&&!b.dk){var f;f=0;f=null!=a.wheelDelta?a.wheelDelta:null!=a.deltaY?-a.deltaY:-a.detail;0>f&&vv(b)?(c=!0,b.dk||wv(b,xv(b),!1)):0<f&&yv(b)&&(c=!0,b.dk||wv(b,zv(b),!1))}c&&(a.preventDefault(),a.stopPropagation())};Av(this.ac,"mousewheel",this.Iw);Av(this.ac,"wheel",
this.Iw);this.VK=function(a){b.dJ(a)};Av(this.Be,"touchstart",this.VK);this.TK=function(a){b.cJ(a)};Av(this.Be,"touchmove",this.TK);this.wx=function(a){b.aJ(a)};Av(this.Be,"touchend",this.wx);Av(this.Be,"touchcancel",this.wx);this.TJ=0}else Bv(this);this.qt=this.sd=null;Cv(this,a);this.Ae(!0);a&&this.Sz&&(this.Gg=function(){b.Ae(!1)},this.Sz.call(this.Bp,this.ac,this.Gg),this.Sz.call(this.Bp,this.Yh,this.Gg))};
ov.prototype.destroy=function(){var a=this.ac;Dv(a,"mousewheel",this.Iw);Dv(a,"wheel",this.Iw);Dv(this.Be,"touchstart",this.VK);Dv(this.Be,"touchmove",this.TK);Dv(this.Be,"touchend",this.wx);Dv(this.Be,"touchcancel",this.wx);this.wx=this.TK=this.VK=this.Iw=null;this.dC&&this.Gg&&(this.dC.call(this.Bp,a,this.Gg),this.dC.call(this.Bp,this.Yh,this.Gg));this.Gg=null;var b=this.Yh;if(b)for(b=b.childNodes;0<b.length;){var c=b[0];a.appendChild(c);1===c.nodeType&&this.iq&&this.ee(c,this.iq)}a.removeChild(this.Be);
a.removeChild(this.Lg);a.removeChild(this.hc);this.hs=this.Bp=this.MH=this.lB=this.ee=this.gf=this.dC=this.Sz=this.TH=this.DX=this.ac=this.qt=this.sd=this.Yh=this.Be=this.hc=this.Lg=null};g=ov.prototype;g.Xx=function(){this.Ae(!1)};function Ev(a,b,c){for(b=b.childNodes;0<b.length;){var d=b[0];c.appendChild(d);1===d.nodeType&&a.iq&&a.gf(d,a.iq)}}function Fv(a){var b=a.ownerDocument.defaultView,c=null;return c=b?b.getComputedStyle(a,null):a.currentStyle}
function Gv(a){return 0<a.length&&"auto"!=a?(a=parseInt(a,10),isNaN(a)&&(a=0),a):0}function Av(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)}function Dv(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}g.Wb=function(){return"horizontal"===this.Zca};function Bv(a){a.TJ=Hv(a);Iv(a,0);sv(a);tv(a)}
g.Ae=function(a){a||Bv(this);this.qt=this.sd=null;this.sd&&this.qt||(this.sd=Jv(this));a||Cv(this,!1);a=this.Lg.style;var b=this.hc.style,c=this.Yh,d=this.sd;this.Wb()?(c=.5*(d.si-c.offsetHeight),a.top=c+"px",b.top=c+"px"):(c=.5*(d.dh-c.offsetWidth),this.$z&&(c=-c),a.left=c+"px",b.left=c+"px")};
function Cv(a,b){var c=a.Yh,d=a.Wb(),e;d?(e=Fv(a.ac),e=Gv(e.width)):(e=Fv(a.ac),e=Gv(e.height));a.Gw=0;a.Ew=d?c.offsetWidth-e+a.cA:c.offsetHeight-e+a.bA;0>a.Ew&&(a.Ew=0);sv(a);tv(a);wv(a,b?a.Gw:a.TJ,!0);a.TJ=0}function pv(a){var b=a.ac,c=document.createElement("div");a.Be=c;a.xW&&a.gf(c,a.xW);var d=document.createElement("div");a.Yh=d;a.ER&&a.gf(d,a.ER);Ev(a,b,d);b.appendChild(c);c.appendChild(d);Av(c,"scroll",function(){a.Yz&&!a.dk&&Kv(a,Hv(a),!0)})}
function qv(a,b,c,d){var e=document.createElement("div");a.hc=e;b&&e.setAttribute("id",b);e.setAttribute("class",c);e.setAttribute("aria-hidden","true");Av(e,"click",function(){a.dk||wv(a,zv(a),!1)});d&&e.appendChild(d);a.ac.insertBefore(e,a.Be)}function rv(a,b,c,d){var e=document.createElement("div");a.Lg=e;b&&e.setAttribute("id",b);e.setAttribute("class",c);e.setAttribute("aria-hidden","true");Av(e,"click",function(){a.dk||wv(a,xv(a),!1)});d&&e.appendChild(d);a.ac.appendChild(e)}
function Lv(a){var b=a.hs;b||(b=a.Yh);return b}
function Jv(a){var b=Lv(a),c;c=[];for(var d=a.hs?a.hs:a.Yh,e=d.children,f=e.length,h=0;h<f;h++){var k=e[h];1===k.nodeType&&c.push(k)}a.MH&&(h=a.MH,c=h(c));if(d===a.Yh&&a.iq)for(h=0;h<c.length;h++)d=c[h],a.lB(d,a.iq)||a.gf(d,a.iq);d={dh:0,si:0};h=[];if(b.hasChildNodes()&&c&&0<c.length)for(var b=a.Wb(),e=0,e=a.Yh.offsetWidth,f=0,k=null,l=0;l<c.length;l++){var m=c[l];if(1===m.nodeType){var n=m.offsetWidth,p=m.offsetHeight,q={dh:n,si:p,id:m.id};if(b){var r=m.offsetLeft;a.hs||0!==r||(m=m.parentNode,r=
m.offsetLeft);q.start=a.$z?e-(r+n):r;0===l&&(f=q.start);q.start-=f;d.dh=q.start+n;d.si=Math.max(d.si,p);q.end=d.dh-1}else r=m.offsetTop,a.hs||0!==r||(m=m.parentNode,r=m.offsetTop),q.start=r,d.dh=Math.max(d.dh,n),d.si=q.start+p,q.end=d.si-1;k&&k.end>=q.start&&(n=k.end-(q.start-1),k.end-=n,b?k.dh-=n:k.si-=n);h.push(q);k=q}}a.qt=h;return d}function Mv(a){if(!a.qt){var b=Jv(a);a.sd||(a.sd=b)}return a.qt}function tv(a){a.gf(a.Lg,a.Js)}function sv(a){a.gf(a.hc,a.Js)}
function vv(a){return!a.lB(a.Lg,a.Js)}function yv(a){return!a.lB(a.hc,a.Js)}function Nv(a,b){var c=a.Wb()?a.cA:a.bA,d=Hv(a),e=uv(a);b<=a.Gw?(yv(a)&&(d-=c),sv(a)):e&&(yv(a)||(d+=c),a.ee(a.hc,a.Js));b>=a.Ew?(vv(a),tv(a)):e&&(vv(a),a.ee(a.Lg,a.Js));Iv(a,d)}function Iv(a,b){var c=a.Be;a.Wb()?c.scrollLeft=Ov(a,b):c.scrollTop=b}function Pv(a){var b=a.Be;return a.Wb()?b.offsetWidth:b.offsetHeight}function wv(a,b,c){a.dk||(a.Yz=!1,Kv(a,b,c))}
function Kv(a,b,c){if(Lv(a).hasChildNodes()){a.dk=!0;b=Qv(a,b);Nv(a,b);var d=a.DX;c||!d||b===Hv(a)?Rv(a,a.Yz?Hv(a):b):d.call(a.Bp,a.Be,Ov(a,b),Math.abs(Hv(a)-b)/Sv,function(){Rv(a,b)})}}function Hv(a){var b=a.Be;return a.Wb()?Ov(a,b.scrollLeft):b.scrollTop}function uv(a){var b=a.Yh,c=a.Be;return a.Wb()?b.offsetWidth>c.offsetWidth:b.offsetHeight>c.offsetHeight}function Qv(a,b){!uv(a)||b<a.Gw?b=a.Gw:b>a.Ew&&(b=a.Ew);return b}
g.dJ=function(a){a=a.touches;uv(this)&&!this.dk&&1===a.length&&(this.Xh=!0,a=a[0],this.xC=this.Wb()?a.pageX:a.pageY,this.WK=Hv(this),this.cga=xv(this),this.dga=zv(this),this.NY=vv(this),this.OY=yv(this))};
g.cJ=function(a){var b=this.Wb(),c=a.touches[0],c=(b?c.pageX:c.pageY)-this.xC,d=b&&this.$z?0<c:0>c,e=d&&this.NY||!d&&this.OY;if(this.Xh&&e){e=this.Be;if(Math.abs(c)<Tv*(b?e.offsetWidth:e.offsetHeight)){if(wv(this,this.WK-c,!0),this.NY&&!vv(this)||this.OY&&!yv(this))this.Xh=!1}else wv(this,d?this.cga:this.dga,!1),this.Xh=!1;this.Aq=!0}this.Aq&&(a.preventDefault(),a.stopPropagation())};g.aJ=function(){this.Xh&&wv(this,this.WK,!1);this.Aq=this.Xh=!1};
function Rv(a,b){Iv(a,b);a.Yz=!0;a.dk=!1;if(a.TH){a.xs=Uv(a);var c=Vv(a),d=Mv(a),e=d[a.xs];a.xs!==c&&Hv(a)>e.start&&a.xs<d.length-2&&(a.xs++,e=d[a.xs]);a.T8=e.id;a.TH.call(a.Bp,a.T8)}}function xv(a){var b;b=Wv(a,Hv(a)+Pv(a));var c=Mv(a);b=0>b?c.length-1:b;c=0;return c=b===Uv(a)?Hv(a)+Pv(a):Mv(a)[b].start}function zv(a){var b;b=Wv(a,Hv(a)-1);b=0>b?0:b;var c=0,c=b===Vv(a)?Hv(a)-Pv(a):Mv(a)[b].end-Pv(a)+1;vv(a)||(c+=a.Wb()?a.cA:a.bA);c<(a.Wb()?a.cA:a.bA)&&(c=a.Gw);return c}
function Uv(a){a=Wv(a,Hv(a));return 0>a?0:a}function Vv(a){var b=Wv(a,Hv(a)+Pv(a)-1);a=Mv(a);return 0>b?a.length-1:b}function Wv(a,b){for(var c=Mv(a),d=0;d<c.length;d++)if(b<=c[d].end)return d;return-1}function Ov(a,b){var c=b;if(a.$z&&a.Wb())if(a.n6)c=-b;else if(a.p6||a.o6)c=a.Yh.offsetWidth-a.Be.offsetWidth-b;return c}var Sv=1.1,Tv=.33;
(function(){w.sa("oj.ojConveyorBelt",$.oj.baseComponent,{defaultElement:"\x3cdiv\x3e",widgetEventPrefix:"oj",options:{orientation:"horizontal",contentParent:null},_ComponentCreate:function(){this._super();this.element.addClass("oj-conveyorbelt oj-component");this.options.disabled&&w.l.warn(a);this.Aa(!0)},refresh:function(){this._super();var a=Hv(this.tn);this.uH();this.Aa(!0);wv(this.tn,a,!0)},Nl:function(){this._super();this.Zc?this.Aa(this.Zc[0]):this.tn&&this.tn.Xx()},Ml:function(){this._super();
this.Zc&&this.Aa(this.Zc[0])},Aa:function(a){var c=this,d=this.element,e=this.options,f=e.orientation;"vertical"===f?d.addClass("oj-conveyorbelt-vertical"):d.removeClass("oj-conveyorbelt-vertical");if(this.Ev()){this.Zc=null;this.Vf="rtl"===this.$b();if(a&&!this.tn){var h=null,k=null,l=null,m=null,n=null;"vertical"!==f?(h="oj-enabled oj-conveyorbelt-overflow-indicator oj-start oj-default",k="oj-enabled oj-conveyorbelt-overflow-indicator oj-end oj-default",l=this.mA("oj-conveyorbelt-overflow-icon oj-start"),
m=this.mA("oj-conveyorbelt-overflow-icon oj-end"),n=this.b6):(h="oj-enabled oj-conveyorbelt-overflow-indicator oj-top oj-default",k="oj-enabled oj-conveyorbelt-overflow-indicator oj-bottom oj-default",l=this.mA("oj-conveyorbelt-overflow-icon oj-top"),m=this.mA("oj-conveyorbelt-overflow-icon oj-bottom"),n=this.c6);var p={};p.F1=h;p.o1=k;p.E1=l;p.n1=m;h={};h.Ch=w.q.Ch;h.Hi=w.q.Hi;h.Fx=this.U5;h.My=this.cea;h.b0=this.eJ;h.RZ=function(a){return c.R8(a)};"enabled"!==w.T.cM()&&(h.Q1=n);n=null;e.contentParent&&
(n=$(e.contentParent)[0]);this.tn=new ov(d[0],f,n,this.Vf,p,h,{w1:"oj-conveyorbelt-overflow-container",EZ:"oj-conveyorbelt-content-container",t0:"oj-conveyorbelt-item",e0:"oj-helper-hidden"})}this.tn.Tj(a);if(a)for(a=d.find(".oj-conveyorbelt-overflow-indicator"),d=0;d<a.length;d++)this.lfa($(a[d]))}else d=!1,this.Zc&&(d=this.Zc[0]),this.Zc=[a||d]},_destroy:function(){this.uH();this.element.removeClass("oj-conveyorbelt oj-component oj-conveyorbelt-vertical");this._super()},_setOption:function(b,c,
d){var e=!1,f=this.options;switch(b){case "containerParent":case "orientation":e=f.orientation!=c;break;case "disabled":w.l.warn(a)}e&&this.uH();this._super(b,c,d);e&&this.Aa(!0)},uH:function(){var a=this.tn;a&&(this.element.find(".oj-conveyorbelt-overflow-indicator").off(this.eventNamespace),a.destroy());this.tn=null},Ev:function(){var a=document.createElement("div"),c=a.style;c.width="10px";c.height="10px";c["-webkit-flex"]="0 0 auto";c.flex="0 0 auto";c=this.element[0];c.appendChild(a);var d=!1;
try{d=0<a.offsetWidth&&0<a.offsetHeight}catch(e){}c.removeChild(a);return d},lfa:function(a){this.ld({element:a,afterToggle:function(c){"mouseenter"===c?a.removeClass("oj-default"):"mouseleave"===c&&a.addClass("oj-default")}});this.jh({element:a,afterToggle:function(c){"mousedown"===c||"touchstart"===c?a.removeClass("oj-default"):"mouseup"!==c&&"touchend"!==c&&"touchcancel"!==c||a.addClass("oj-default")}})},mA:function(a){var c=document.createElement("span");c.setAttribute("class","oj-component-icon "+
a);return c},b6:function(a,c,d,e){var f={};f.scrollLeft=c;$(a).animate(f,d,"swing",e)},c6:function(a,c,d,e){var f={};f.scrollTop=c;$(a).animate(f,d,"swing",e)},U5:function(a,c){$(a).addClass(c)},cea:function(a,c){$(a).removeClass(c)},eJ:function(a,c){return $(a).hasClass(c)},R8:function(a){for(var c=[],d=0;d<a.length;d++){var e=a[d];this.eJ(e,"oj-helper-detect-expansion")||this.eJ(e,"oj-helper-detect-contraction")||c.push(e)}return c},getNodeBySubId:function(a){if(null==a)return this.element?this.element[0]:
null;a=a.subId;return"oj-conveyorbelt-start-overflow-indicator"===a?this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-start")[0]:"oj-conveyorbelt-end-overflow-indicator"===a?this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-end")[0]:"oj-conveyorbelt-top-overflow-indicator"===a?this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-top")[0]:"oj-conveyorbelt-bottom-overflow-indicator"===a?this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-bottom")[0]:null},getSubIdByNode:function(a){for(var c=
this.getNodeBySubId({subId:"oj-conveyorbelt-start-overflow-indicator"}),d=this.getNodeBySubId({subId:"oj-conveyorbelt-end-overflow-indicator"}),e=this.getNodeBySubId({subId:"oj-conveyorbelt-top-overflow-indicator"}),f=this.getNodeBySubId({subId:"oj-conveyorbelt-bottom-overflow-indicator"}),h=this.element[0];a&&a!=h;){if(a===c)return{subId:"oj-conveyorbelt-start-overflow-indicator"};if(a===d)return{subId:"oj-conveyorbelt-end-overflow-indicator"};if(a===e)return{subId:"oj-conveyorbelt-top-overflow-indicator"};
if(a===f)return{subId:"oj-conveyorbelt-bottom-overflow-indicator"};a=a.parentElement}return null}});var a="JET ConveyorBelt: 'disabled' option not supported"})();w.Components.xa("ojConveyorBelt","baseComponent",{properties:{contentParent:{type:"string"},disabled:{type:"boolean"},orientation:{type:"string"}},methods:{refresh:{}},extension:{_widgetName:"ojConveyorBelt"}});w.Components.register("oj-conveyor-belt",w.Components.getMetadata("ojConveyorBelt"));
function kq(a,b){b=b||{};if(!(a instanceof Mr))throw Error(Tf._ERR_DATA_INVALID_TYPE_SUMMARY+"\n"+Tf._ERR_DATA_INVALID_TYPE_DETAIL);this.b=a;this.md=[];this.W=0;this.sf=[];this.mj=!0;null==this.b.Tx("fetchSize")&&(this.b.ri=function(){return-1});var c=this;this.b.ED=function(a,b,f){var h,k,l,m,n=[],p=[],q=[];for(b=0;b<f.getCount();b++){k=f.getData(b);m=f.getMetadata(b).key;l=a+b;c.sf.splice(l,0,{});c.sf[l].nodeSet=f;c.sf[l].startIndex=a;for(h=l+1;h<c.sf.length;h++)c.sf[h].startIndex+=1;n.push(c.ni(k));
p.push(m);q.push(l);c.fa.data.splice(l,0,k);c.fa.keys.splice(l,0,m);c.fa.indexes.splice(l,0,l)}c.Yw();c.mj=!0;Sf.o.handleEvent.call(c,R.ADD,{data:n,keys:p,indexes:q})};this.b.yE=function(a){var b,f,h,k=[],l=[],m=[];for(b=a.length-1;0<=b;b--){h=a[b].index;k.push("");l.push("");m.push(h);c.sf.splice(h,1);for(f=h;f<c.sf.length;f++)c.sf[f].startIndex-=1;c.fa.data.splice(h,1);c.fa.keys.splice(h,1);c.fa.indexes.splice(h,1)}m=m.sort();c.Yw();c.mj=!0;Sf.o.handleEvent.call(c,R.REMOVE,{data:k,keys:l,indexes:m})};
this.Init();if(null!=b&&("enabled"==b.startFetch||null==b.startFetch)||null==b)this.qx=!0}t("FlattenedTreeTableDataSource",kq,w);H(kq,Sf,"oj.FlattenedTreeTableDataSource");kq.prototype.Init=function(){kq.o.Init.call(this)};A("FlattenedTreeTableDataSource.prototype.Init",{Init:kq.prototype.Init});kq.prototype.getCapability=function(){return"full"};A("FlattenedTreeTableDataSource.prototype.getCapability",{getCapability:kq.prototype.getCapability});kq.prototype.getWrappedDataSource=function(){return this.b};
A("FlattenedTreeTableDataSource.prototype.getWrappedDataSource",{getWrappedDataSource:kq.prototype.getWrappedDataSource});kq.prototype.fetch=function(a){a=a||{};return"init"!=a.fetchType||this.qx?this.we(a):Promise.resolve()};A("FlattenedTreeTableDataSource.prototype.fetch",{fetch:kq.prototype.fetch});kq.prototype.at=function(a){var b;b=0>a||a>=this.fa.length?null:{data:this.fa.data[a],index:a,key:this.fa.keys[a]};return new Promise(function(a){a(b)})};
A("FlattenedTreeTableDataSource.prototype.at",{at:kq.prototype.at});kq.prototype.collapse=function(a){this.b.collapse(a)};A("FlattenedTreeTableDataSource.prototype.collapse",{collapse:kq.prototype.collapse});kq.prototype.expand=function(a){this.b.expand(a)};A("FlattenedTreeTableDataSource.prototype.expand",{expand:kq.prototype.expand});kq.prototype.get=function(a){var b=this.b.Fh(Object(a));a={data:this.ni(this.fa.data[b]),key:a,index:b};return Promise.resolve(a)};
A("FlattenedTreeTableDataSource.prototype.get",{get:kq.prototype.get});kq.prototype.on=function(a,b){if("expand"==a||"collapse"==a)this.b.on(a,b);else kq.o.on.call(this,a,b)};A("FlattenedTreeTableDataSource.prototype.on",{on:kq.prototype.on});kq.prototype.off=function(a,b){"expand"==a||"collapse"==a?this.b.off(a,b):kq.o.off.call(this,a,b)};A("FlattenedTreeTableDataSource.prototype.off",{off:kq.prototype.off});
kq.prototype.sort=function(a){null==a?a=this.sortCriteria:this.sortCriteria=a;var b=this;a.axis="column";return new Promise(function(c,d){b.b.getWrappedDataSource().sort(a,{success:function(){setTimeout(function(){b.b.refresh();b.fa=null;var d={header:a.key,direction:a.direction};Sf.o.handleEvent.call(b,R.SORT,d);c(d)},0)}.bind(this),error:function(a){d(a)}.bind(this)})})};A("FlattenedTreeTableDataSource.prototype.sort",{sort:kq.prototype.sort});
kq.prototype.totalSize=function(){return this.mj?-1:this.fa.data.length};A("FlattenedTreeTableDataSource.prototype.totalSize",{totalSize:kq.prototype.totalSize});kq.prototype.totalSizeConfidence=function(){return this.mj?"unknown":"actual"};A("FlattenedTreeTableDataSource.prototype.totalSizeConfidence",{totalSizeConfidence:kq.prototype.totalSizeConfidence});g=kq.prototype;g.hI=function(a){var b=this.sf[a].nodeSet.getStart();return this.sf[a].nodeSet.getMetadata(b+a-this.sf[a].startIndex)};
g.we=function(a){a=a||{};this.px(a);this.W=null==a.startIndex?this.W:a.startIndex;var b=Number.MAX_VALUE;this.Pa=null==a.pageSize?this.Pa:a.pageSize;null!=this.Pa&&(b=this.Pa);var c=this.W;if(null!=this.fa)if(null!=this.Pa){var d=this.fa.data.length-1;if(this.W+this.Pa-1<=d){var d=Xv(this.fa,this.W,this.Pa),b=[],c=[],e,f;for(e=this.W;e<=d;e++)f=this.fa.keys[e],b[e-this.W]=this.ni(this.fa.data[e]),c[e-this.W]=f;d={data:b,keys:c,startIndex:this.W};this.cj(a,d,null);return Promise.resolve(d)}this.W<=
d&&(c=d+1)}else this.b.refresh(),this.fa=null;else c=0;var h={start:c,count:b},k=this;return new Promise(function(b,c){k.b.$k(h,{success:function(c){k.SI(c);a.refresh=!0;c=Xv(k.fa,k.W,k.Pa);var d=[],e=[],f,h;for(f=k.W;f<=c;f++)h=k.fa.keys[f],d[f-k.W]=k.ni(k.fa.data[f]),e[f-k.W]=h;k.mj=0<d.length?!0:!1;c={data:d,keys:e,startIndex:k.W};k.cj(a,c,null);b(c)}.bind(this),error:function(b){k.cj(a,null,b);c(b)}.bind(this)})})};
g.SI=function(a){var b=a.getStart(),c,d;for(c=0;c<a.getCount();c++)d=b+c,this.sf[d]={},this.sf[d].nodeSet=a,this.sf[d].startIndex=b;this.fa||(this.fa={},this.fa.data=[],this.fa.keys=[],this.fa.indexes=[]);c=this.fa;for(d=0;d<a.getCount();d++){var e=a.getData(a.getStart()+d);c.data[b+d]=e;c.keys[b+d]=a.getMetadata(a.getStart()+d).key;c.indexes[b+d]=b+d}};g.px=function(a){a.silent||Sf.o.handleEvent.call(this,R.REQUEST,{startIndex:a.startIndex})};
g.cj=function(a,b,c){null!=c?Sf.o.handleEvent.call(this,R.ERROR,c):a.silent||Sf.o.handleEvent.call(this,R.SYNC,b)};function Xv(a,b,c){var d=a.data.length-1;0<c&&(d=b+c-1,d=d>a.data.length-1?a.data.length-1:d);return d}g.Yw=function(){for(var a=0;a<this.fa.data.length;a++)this.fa.indexes[a]=a};g.ni=function(a){var b=$.extend(!0,{},a),c,d=Object.keys(a);for(c=0;c<d.length;c++)Yv(b,a,d[c]);return b};
function Yv(a,b,c){Object.defineProperty(a,c,{get:function(){return b[c]},set:function(a){b[c]=a},enumerable:!0})}
(function(){w.sa("oj.ojMenu",$.oj.baseComponent,{defaultElement:"\x3cul\x3e",delay:300,role:"menu",widgetEventPrefix:"oj",options:{menuSelector:"ul",openOptions:{display:"auto",initialFocus:"menu",launcher:null,position:{my:"start top",at:"start bottom",collision:"flipfit"}},submenuOpenOptions:{position:{my:"start top",at:"end top",collision:"flipfit"}},beforeOpen:null,close:null,open:null,select:null},_ComponentCreate:function(){this._super();var a=this;this._focusForTesting=this.dj;this._nextForTesting=
this.kW;this._selectForTesting=this.xj;this.Jq=this.element;this.jN=!1;if(e&&"ul"!==this.element[0].tagName.toLowerCase())throw Error("Cancel item supported for \x3cul\x3e menus only.");this.qfa();this.element.uniqueId().addClass("oj-menu oj-component").hide().attr({role:this.role,tabIndex:"0"});this._on(!0,{"mousedown .oj-menu-item":function(a){this.options.disabled&&a.preventDefault()},click:function(a){this.options.disabled&&a.preventDefault()},keydown:function(a){!this.options.disabled||a.keyCode!==
$.ui.keyCode.ESCAPE&&a.keyCode!==$.ui.keyCode.TAB||(a.keyCode===$.ui.keyCode.TAB&&a.preventDefault(),this.qc&&this.$v(a))}});this.options.disabled&&this.element.addClass("oj-disabled").attr("aria-disabled","true");var b=function(a){if(!this.aM){this.aM=!0;var b=$(a.currentTarget);try{this.US=!0,this.dj(a,b)}finally{this.US=!1}}}.bind(this);this._on({"mousedown .oj-menu-item \x3e a":function(a){a.preventDefault()},"click .oj-disabled \x3e a":function(a){a.preventDefault()},click:function(){this.jN=
!1},touchstart:function(){this.aM=!1},mouseover:function(){this.aM=!1},"click .oj-menu-item:has(a)":function(a){var b=$(a.target).closest(".oj-menu-item");!this.jN&&b.not(".oj-disabled").length&&(this.jN=!0,a.preventDefault(),this.Ba&&this.Ba.closest(b).length&&this.Ba.get(0)!=b.get(0)||(b.has(".oj-menu").length?this.Zd(a):(this.xj(a),this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.Ba&&1===this.Ba.parents(".oj-menu").length&&clearTimeout(this.gd)))))},"mouseenter .oj-menu-item":b,
"touchstart .oj-menu-item":b,mouseleave:function(a){this.hk(a,"eventSubtree")},"mouseleave .oj-menu":function(a){this.hk(a,"eventSubtree")},focus:function(a,b){if(!b){var c=this.Ba||this.element.children(".oj-menu-item").eq(0);this.dj(a,c)}},keydown:this.kq,keyup:function(a){if(a.keyCode==$.ui.keyCode.ENTER||a.keyCode==$.ui.keyCode.SPACE)this.Pz=!1}});this._focusable({applyHighlight:!c,recentPointer:function(){return a.US},setupHandlers:function(b,c){a.ys=b;a.Np=c}});this.Bx=$.proxy(this.Cx,this);
this.Aa()},Xr:function(a){if(arguments.length)b=a;else return b},aH:function(c){if(("focus"===c.type||"mousedown"===c.type||"touchstart"===c.type||93==c.which||121==c.which&&c.shiftKey||93==c.keyCode)&&("mousedown"!==c.type||!b)){var d=a.slice(0,a.length);$.each(d,function(a,b){!$(c.target).closest(b.element).length&&("keydown"===c.type||"mousedown"===c.type&&3===c.which||!$(c.target).closest(b.qc).length||b.Zba&&("mousedown"===c.type&&3!==c.which||"touchstart"===c.type))&&(b.hk(c,"eventSubtree"),
b.qc&&b.yp(c))})}},_setOption:function(a,b){this._superApply(arguments);switch(a){case "translations.labelCancel":case "translations":this.jR&&this.jR.text(this.options.translations.labelCancel)}},_destroy:function(){this.element.is(":visible")&&this.yp();clearTimeout(this.gd);delete this.gd;this.element.removeAttr("aria-activedescendant").removeClass("oj-component").find(".oj-menu").addBack().removeClass("oj-menu oj-menu-submenu oj-menu-icons oj-menu-text-only").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".oj-menu-item").removeClass("oj-menu-item").removeAttr("role").children("a").removeAttr("aria-disabled").removeUniqueId().removeClass("oj-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var a=$(this);a.data("oj-ojMenu-submenu-icon")&&a.remove()});this.element.find("a").removeAttr("aria-expanded");this.element.find(".oj-menu-divider").removeClass("oj-menu-divider").removeAttr("role");0<=a.indexOf(this)&&a.splice(a.indexOf(this),
1);delete this.vj;delete this.Bx;var b=this.vn;isNaN(b)||(delete this.vn,window.clearTimeout(b));this.fA&&this.fA.remove();this.element.ng("destroy");this._super()},kq:function(a){function b(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$\x26")}var c,d,e,f,h=!0;switch(a.keyCode){case $.ui.keyCode.HOME:this.HB("first","first",a);break;case $.ui.keyCode.END:this.HB("last","last",a);break;case $.ui.keyCode.UP:this.uda(a);break;case $.ui.keyCode.DOWN:this.kW(a);break;case $.ui.keyCode.LEFT:case $.ui.keyCode.RIGHT:a.keyCode===
$.ui.keyCode.RIGHT^this.Jh?this.Ba&&!this.Ba.is(".oj-disabled")&&this.Zd(a):this.hk(a,"active");break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this.J$(a);this.Pz=!0;var k=this;setTimeout(function(){k.Pz=!1},100);break;case $.ui.keyCode.TAB:a.preventDefault();this.qc&&this.$v(a);break;case $.ui.keyCode.ESCAPE:this.qc?(d=this.element.attr("aria-activedescendant"),e="#"+this.element.attr("id")+"\x3e*\x3ea",d&&!$("#"+d).is(e)?this.hk(a,"active"):this.$v(a)):this.hk(a,"active");break;default:h=
!1,c=this.vE||"",d=String.fromCharCode(a.keyCode),e=!1,clearTimeout(this.tha),d===c?e=!0:d=c+d,f=new RegExp("^"+b(d),"i"),c=this.Jq.children(".oj-menu-item").filter(function(){return f.test($(this).children("a").text())}),c=e&&-1!==c.index(this.Ba.next())?this.Ba.nextAll(".oj-menu-item"):c,c.length||(d=String.fromCharCode(a.keyCode),f=new RegExp("^"+b(d),"i"),c=this.Jq.children(".oj-menu-item").filter(function(){return f.test($(this).children("a").text())})),c.length?(this.dj(a,c),1<c.length?(this.vE=
d,this.tha=this._delay(function(){delete this.vE},1E3)):delete this.vE):delete this.vE}h&&a.preventDefault()},J$:function(a){this.Ba&&!this.Ba.is(".oj-disabled")&&(this.Ba.children("a[aria-haspopup\x3d'true']").length?this.Zd(a):this.xj(a))},refresh:function(){this._super();this.Aa();var a=this.element;if(a.is(":visible")){var b=a.data("oj-menu-position");b&&(b.of instanceof $.Event||b.of instanceof Window||$(b.of).is(":visible"))&&(a.position(b),a.find(".oj-menu").each(function(){var a=$(this);a.is(":visible")&&
(b=a.data("oj-menu-position"))&&a.position(b)}))}},Aa:function(){this.Jh="rtl"===this.$b();var a=this,b=this.element.find(this.options.menuSelector),c=b.add(this.element),d=c.children();this.Vaa=!!b.length;d.filter(".oj-menu-divider").has("a").removeClass("oj-menu-divider oj-menu-item").removeAttr("role");var e=d.filter(":not(.oj-menu-item):has(a)"),f=e.children("a");this.eV(e);this.UU(f);e=d.filter(function(a,b){var c=$(b);return c.is(":not(.oj-menu-item)")&&!/[^\-\u2014\u2013\s]/.test(c.text())});
this.aV(e);this.jba(d,e);d.filter(".oj-disabled").children("a").attr("aria-disabled","true");d.filter(":not(.oj-disabled)").children("a").removeAttr("aria-disabled");b.filter(":not(.oj-menu)").addClass("oj-menu oj-menu-submenu oj-menu-dropdown").hide().attr({role:this.role,"aria-hidden":"true"}).each(function(){var b=$(this),c=a.qI(b),d=$("\x3cspan\x3e");d.addClass("oj-menu-submenu-icon oj-component-icon").data("oj-ojMenu-submenu-icon",!0);c.attr("aria-haspopup","true").attr("aria-expanded","false").append(d);
c=c.attr("id");b.attr("aria-labelledby",c)});c.each(function(){var a=$(this),b=a.children().children().children(".oj-menu-item-icon:not(.oj-menu-cancel-icon)").length;a.toggleClass("oj-menu-icons",!!b).toggleClass("oj-menu-text-only",!b)});this.Ba&&!$.contains(this.element[0],this.Ba[0])&&this.wG()},eV:function(a){a.addClass("oj-menu-item").attr("role","presentation")},UU:function(a){a.uniqueId().attr({tabIndex:"-1",role:"menuitem"})},aV:function(a){a.addClass("oj-menu-divider").attr("role","separator")},
jba:function(a,b){a.removeClass("oj-menu-item-before-divider oj-menu-item-after-divider");b.prev().addClass("oj-menu-item-before-divider");b.next().addClass("oj-menu-item-after-divider")},qI:function(a){return a.prev("a")},ila:function(){return"menuitem"},IA:function(a,b){var c=a.prev(".oj-menu-divider").add(a.next(".oj-menu-divider"));b&&(c=c.add(a));return c},dj:function(a,b){a&&"focus"===a.type||clearTimeout(this.gd);b=b.first();this.WV(b,a);var c=b.parent(),d=c.closest(".oj-menu-item");c.find(".oj-focus-ancestor").removeClass("oj-focus-ancestor");
this.IA(d,!0).addClass("oj-focus-ancestor");a&&"keydown"===a.type?this.Ql():this.gd=this._delay(function(){delete this.gd;this.Ql()},this.delay);c=b.children(".oj-menu");c.length&&a&&/^mouse/.test(a.type)&&!this.Ba.hasClass("oj-disabled")&&this.Efa(c);this.Jq=b.parent()},WV:function(a,b){if(!a.is(this.Ba)){var c=this.Ba?this.Ba:$(),d=a.children("a");this.Ba=a;this.element.attr("aria-activedescendant",d.attr("id"));this.Np(c);this.ys(a);this.IA(c).removeClass("oj-focus");this.IA(a).addClass("oj-focus");
this._trigger("_activeItem",b,{previousItem:c,item:a,privateNotice:"The _activeItem event is private.  Do not use."})}},Tda:function(a){if(this.Ba){var b=this.Ba;this.Ba=null;this.element.removeAttr("aria-activedescendant");this.Np(b);this.IA(b).removeClass("oj-focus");this._trigger("_activeItem",a,{previousItem:b,item:$(),privateNotice:"The _activeItem event is private.  Do not use."})}},wG:function(a){clearTimeout(this.gd);this.Tda(a)},$v:function(a,b){this.qc.focus();this.yp(a,b)},yp:function(b,
c){var d=this.element.is(":visible"),e={};e[xl]=this.element;sl().close(e);this.element.removeData("oj-menu-position");this.qc=void 0;this.fY=!1;c&&(b=this.fL("select",b,c).event);d&&this._trigger("close",b,{});this.zn=null;0<=a.indexOf(this)&&a.splice(a.indexOf(this),1)},getCurrentOpenOptions:function(){return $.extend(!0,{},this.zn||this.options.openOptions)},open:function(b,c,d){c=$.extend({},this.options.openOptions,c);c.position=$.extend({},c.position);d=$.extend({},this.options.submenuOpenOptions,
d);var e=this.zn;this.zn=c;w.lc.Pca(b);this.Zba=this.Oz;var f=this.fL("beforeOpen",b,{openOptions:c});if(f.proceed)if(this.element.is(":visible")&&(this.zn=e,this.yp(f.event),this.zn=c),e=c.launcher,(e="string"===$.type(e)?$(e):e)&&e.length){f=this.Fba(c.display);this.Zfa(f);var m,n;if(f){if(this.element.addClass("oj-menu-dropdown").removeClass("oj-menu-sheet"),n=h,m=w.lc.Nh(c.position,this.Jh),m.of=w.lc.Tia(m.of,e,b),null==m.of){w.l.warn("position.of passed to Menu.open() is 'event', but the event is null.  Ignoring the call.");
this.zn=null;return}}else this.element.addClass("oj-menu-sheet").removeClass("oj-menu-dropdown"),n=k,m={my:"bottom",at:l,of:window,collision:"flipfit"};var p=this.element[0],C=a.slice(0,a.length);$.each(C,function(a,c){c.element[0]!==p&&(c.hk(b,"eventSubtree"),c.qc&&c.yp(b))});this.Hfa=w.lc.Nh(d.position,this.Jh);d=this.Bx;$.isFunction(m.using)&&m.using!==d&&(m.origUsing=m.using);m.using=d;d={};d[xl]=this.element;d[yl]=e;d[Al]=m;d[zl]=this.Cs();d[Bl]="oj-menu-layer";d.modality=n;sl().open(d);this.element.data("oj-menu-position",
m);c=c.initialFocus;((d="firstItem"===c)||"menu"===c)&&this.element.focus();d?this.dj(b,this.element.children().first()):this.wG(b);this.qc=e;this.fY=!f;a.push(this);this._trigger("open",b,{})}else w.l.warn("When calling Menu.open(), must specify openOptions.launcher via the component option, method param, or beforeOpen listener.  Ignoring the call."),this.zn=null;else this.zn=e},Efa:function(a){clearTimeout(this.gd);"true"===a.attr("aria-hidden")&&(this.gd&&clearTimeout(this.gd),this.gd=this._delay(function(){delete this.gd;
this.Ql();this.sW(a)},this.delay))},sW:function(b){var c=$.extend({of:this.Ba},this.Hfa);clearTimeout(this.gd);this.element.find(".oj-menu").not(b.parents(".oj-menu")).hide().attr("aria-hidden","true").removeData("oj-menu-position");b.show().removeAttr("aria-hidden").position(c).data("oj-menu-position",c);this.qI(b).attr("aria-expanded","true");!this.qc&&0>a.indexOf(this)&&a.push(this)},Nz:function(a,b,c){function d(){delete e.gd;var c=b?e.element:$(a&&a.target).closest(e.element.find(".oj-menu"));
c.length||(c=e.element);e.Ql(c);e.wG(a);e.Jq=c}clearTimeout(this.gd);var e=this;c?this.gd=this._delay(d,c):d()},Ql:function(b){b||(b=this.Ba?this.Ba.parent():this.element);var c=b.find(".oj-menu");c.hide().attr("aria-hidden","true").removeData("oj-menu-position");this.qI(c).attr("aria-expanded","false");b.find(".oj-focus-ancestor").removeClass("oj-focus-ancestor");this.qc||0<=a.indexOf(this)&&b===this.element&&a.splice(a.indexOf(this),1)},hk:function(a,b){if(null==b||"active"===b){var c=this.Jq&&
this.Jq.closest(".oj-menu-item",this.element);c&&c.length&&(this.Ql(),this.dj(a,c))}else"all"===b||"eventSubtree"===b?this.Nz(a,"all"===b,this.delay):w.l.warn("Invalid param "+b+" passed to Menu._collapse().  Ignoring the call.")},Zd:function(a){var b=this.Ba&&this.Ba.children(".oj-menu ").children(".oj-menu-item").first();b&&b.length&&(this.sW(b.parent()),this.gd&&clearTimeout(this.gd),this.gd=this._delay(function(){delete this.gd;this.dj(a,b)}))},kW:function(a){this.HB("next","first",a)},uda:function(a){this.HB("prev",
"last",a)},ela:function(){return this.Ba&&!this.Ba.prevAll(".oj-menu-item").length},fla:function(){return this.Ba&&!this.Ba.nextAll(".oj-menu-item").length},HB:function(a,b,c){var d;this.Ba&&(d="first"===a||"last"===a?this.Ba["first"===a?"prevAll":"nextAll"](".oj-menu-item").eq(-1):this.Ba[a+"All"](".oj-menu-item").eq(0));d&&d.length&&this.Ba||(d=this.Jq.children(".oj-menu-item")[b]());this.dj(c,d)},xj:function(a){if(!this.Ba&&a&&a.target){var b=$(a.target).closest(".oj-menu-item");b.closest(this.element).length&&
this.WV(b,a)}this.Ba?this.Ba.has(".oj-menu").length||this.Ba.is(".oj-disabled")?w.l.warn("Selecting a disabled menu item or parent menu item is not allowed."):(b=this.Ba.is(this.gA)?void 0:{item:this.Ba},this.Nz(a,!0),this.qc&&this.$v(a,b)):w.l.warn("Menu._select() called when no menu item is focused and no menu item can be inferred from event param.")},Fq:function(){this.element.remove()},Cs:function(){if(!this.vj){var a=this.vj={};a[ul]=$.proxy(this.tR,this);a[vl]=$.proxy(this.Fq,this);a[tl]=$.proxy(this.refresh,
this);a[wl]=$.proxy(this.aH,this)}return this.vj},tR:function(){this.Ql(this.element);this.yp(null)},Cx:function(a,b){var c=b.element.element;c.css(a);(c=c.data("oj-menu-position"))&&(c=c.origUsing)&&c(a,b);w.lc.AM(b)&&(this.vn=this._delay($.proxy(this.tR,this),1))},getNodeBySubId:function(a){switch(a&&a.subId){case p:return this.QG?this.gA[0]:null;default:return this._super(a)}},getSubIdByNode:function(a){return this.gA&&this.gA.is(a)?p:this._super(a)},Fba:function(a){if(this.Vaa)return!0;switch(a){case "dropDown":return!0;
case "sheet":return!1;case "auto":return n.matches;default:throw Error("Invalid value for Menu openOptions.display: "+a);}},Zfa:function(a){e&&(a?this.QG&&(this.cT().detach().eq(0).prev().removeClass("oj-menu-item-before-divider"),this.QG=!1):(this.cT().appendTo(this.element).eq(0).prev().addClass("oj-menu-item-before-divider"),this.QG=!0))},cT:function(){if(!this.fA){var a=$("\x3cli\x3e\x3c/li\x3e",this.document[0]),b=$("\x3ca href\x3d'#'\x3e\x3c/a\x3e",this.document[0]).text(this.options.translations.labelCancel);
$("\x3cspan class\x3d'oj-menu-item-icon oj-component-icon oj-menu-cancel-icon'\x3e\x3c/span\x3e",this.document[0]).prependTo(b);var c=$("\x3cli\x3e\x3c/li\x3e",this.document[0]).addClass("oj-menu-item-cancel oj-menu-item-after-divider").append(b);this.aV(a);this.UU(b);this.eV(c);this.jR=b;this.gA=c;this.fA=$([a[0],c[0]])}return this.fA},qfa:function(){f&&(this.element.ng(m),this._on({swipedown:function(a){this.fY&&"touch"===a.gesture.pointerType&&(this.Nz(a,!0),this.$v(a))}}))}});var a=[],b=!1,c=
-1<navigator.userAgent.indexOf("Macintosh")&&-1<navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"),d=w.Ob.Tc("oj-menu-config")||{},e="menuItem"===d.sheetCancelAffordance,f="dismiss"===d.sheetSwipeDownBehavior,h=d.dropDownModality||"modeless",k=d.sheetModality||"modal",l="bottom-"+(d.sheetMarginBottom||0),m=f&&{recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_DOWN}]]},n=function(){var a=d.dropDownThresholdWidth;null==a&&(a="768px");return window.matchMedia("(min-width: "+
a+")")}(),p="oj-menu-cancel-command"})();w.Components.xa("ojMenu","baseComponent",{properties:{disabled:{type:"boolean"},menuSelector:{type:"string"},openOptions:{type:"Object"},submenuOpenOptions:{type:"Object"}},methods:{destroy:{},getCurrentOpenOptions:{},getSubIdByNode:{},open:{},refresh:{},widget:{}},extension:{_hasWrapper:!0,_innerElement:"ul",_widgetName:"ojMenu"}});w.Components.register("oj-menu",w.Components.getMetadata("ojMenu"));w.Il=function(){};t("TimeUtils",w.Il,w);
w.Il.getPosition=function(a,b,c,d){a=(new Date(a)).getTime();b=(new Date(b)).getTime();c=(new Date(c)).getTime();a=(a-b)*d;b=c-b;return 0==a||0==b?0:a/b};t("TimeUtils.getPosition",w.Il.getPosition,w);w.Il.Iha=function(a,b,c,d,e){a=(new Date(a)).getTime();b=(new Date(b)).getTime();c=(new Date(c)).getTime();d=(new Date(d)).getTime();a=w.Il.getPosition(a,c,d,e);return w.Il.getPosition(b,c,d,e)-a};t("TimeUtils.getLength",w.Il.Iha,w);
w.Il.getDate=function(a,b,c,d){b=(new Date(b)).getTime();c=(new Date(c)).getTime();a*=c-b;return 0==a||0==d?b:a/d+b};t("TimeUtils.getDate",w.Il.getDate,w);
w.sa("oj.ojDiagram",$.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{optionChange:null,beforeExpand:null,expand:null,beforeCollapse:null,collapse:null},ff:function(a){this.options._logger=w.l;this.options._templateFunction&&(this.options.renderer=this.cB(this.options._templateFunction));this.options.renderer&&(this.options._contextHandler=this.XH());return this._super(a)},cB:function(a){var b=this;return function(c){var d=document.createElement("div");d.style.display="none";d.Sv=b.Yd;b.element.append(d);
a({parentElement:d,data:c.data});return(c=d.children[0])&&"http://www.w3.org/2000/svg"===c.namespaceURI?(d.removeChild(c),$(d).remove(),c):c?b.gv(c):null}},XH:function(){var a=this;return function(b,c,d,e,f,h){return{component:w.Components.Pb(a.element),parentElement:b,rootElement:c,content:d,data:e,state:f,previousState:h,id:e.id,type:"node",label:e.label}}},renderDefaultHover:function(a){a.previousState&&a.state.hovered==a.previousState.hovered||this.gv(this.element).processDefaultHoverEffect(a.id,
a.state.hovered)},renderDefaultSelection:function(a){a.previousState&&a.state.selected==a.previousState.selected||this.gv(this.element).processDefaultSelectionEffect(a.id,a.state.selected)},renderDefaultFocus:function(a){a.previousState&&a.state.focused==a.previousState.focused||this.gv(this.element).processDefaultFocusEffect(a.id,a.state.focused)},ue:function(a,b,c){return dvt.Diagram.newInstance(a,b,c)},kh:function(a){var b=a.subId;"oj-diagram-link"==b?b="link["+a.index+"]":"oj-diagram-node"==b?
b="node["+a.index+"]":"oj-diagram-tooltip"==b&&(b="tooltip");return b},df:function(a){var b={};0==a.indexOf("link")?(b.subId="oj-diagram-link",b.index=this.mh(a)):0==a.indexOf("node")?(b.subId="oj-diagram-node",b.index=this.mh(a)):"tooltip"==a&&(b.subId="oj-diagram-tooltip");return b},Md:function(){var a=this._super();a.push("oj-diagram");return a},ug:function(){var a=this._super();a["oj-diagram-node-label"]={path:"styleDefaults/nodeDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-diagram-node oj-selected"]=
{path:"styleDefaults/nodeDefaults/selectionColor",property:"border-color"};a["oj-diagram-node oj-hover"]=[{path:"styleDefaults/nodeDefaults/hoverOuterColor",property:"border-top-color"},{path:"styleDefaults/nodeDefaults/hoverInnerColor",property:"border-bottom-color"}];a["oj-diagram-link"]={path:"styleDefaults/linkDefaults/color",property:"color"};a["oj-diagram-link-label"]={path:"styleDefaults/linkDefaults/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-diagram-link oj-selected"]={path:"styleDefaults/linkDefaults/selectionColor",
property:"border-color"};a["oj-diagram-link oj-hover"]=[{path:"styleDefaults/linkDefaults/hoverOuterColor",property:"border-top-color"},{path:"styleDefaults/linkDefaults/hoverInnerColor",property:"border-bottom-color"}];return a},vg:function(){return["optionChange","beforeExpand","beforeCollapse","expand","collapse"]},Th:function(a){var b=a.type;"beforeExpand"===b?this.expand(a.id,!0):"beforeCollapse"===b?this.collapse(a.id,!0):"expand"===b||"collapse"===b?this._trigger(b,null,{nodeId:a.id}):this._super(a)},
_setOptions:function(a,b){a.expanded&&this.ca.clearDisclosedState();this._superApply(arguments)},Uf:function(){var a=this.options.translations,b=this._super();b["DvtDiagramBundle.PROMOTED_LINK"]=a.promotedLink;b["DvtDiagramBundle.PROMOTED_LINKS"]=a.promotedLinks;b["DvtDiagramBundle.PROMOTED_LINK_ARIA_DESC"]=a.promotedLinkAriaDesc;b["DvtUtilBundle.DIAGRAM"]=a.componentName;return b},Vi:function(){null==this.options._resources&&(this.options._resources={});var a=this.options._resources;"rtl"===w.q.Gj()?
(a.collapse_ena={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-collapse-button-ena_rtl.svg"),width:20,height:20},a.collapse_ovr={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-collapse-button-ovr_rtl.svg"),width:20,height:20},a.collapse_dwn={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-collapse-button-dwn_rtl.svg"),width:20,height:20},a.expand_ena={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-expand-button-ena_rtl.svg"),width:20,height:20},a.expand_ovr=
{src:w.T.Fa("resources/internal-deps/dvt/diagram/container-expand-button-ovr_rtl.svg"),width:20,height:20},a.expand_dwn={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-expand-button-dwn_rtl.svg"),width:20,height:20}):(a.collapse_ena={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-collapse-button-ena.svg"),width:20,height:20},a.collapse_ovr={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-collapse-button-ovr.svg"),width:20,height:20},a.collapse_dwn={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-collapse-button-dwn.svg"),
width:20,height:20},a.expand_ena={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-expand-button-ena.svg"),width:20,height:20},a.expand_ovr={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-expand-button-ovr.svg"),width:20,height:20},a.expand_dwn={src:w.T.Fa("resources/internal-deps/dvt/diagram/container-expand-button-dwn.svg"),width:20,height:20})},collapse:function(a,b){var c=this._trigger("beforeCollapse",null,{nodeId:a});b&&!1===c||this.ca.collapse(a)},expand:function(a,b){var c=
this._trigger("beforeExpand",null,{nodeId:a});b&&!1===c||this.ca.expand(a)},getNodeCount:function(){return this.ca.getAutomation().getNodeCount()},getNode:function(a){return this.ca.getAutomation().getNode(a)},getLinkCount:function(){return this.ca.getAutomation().getLinkCount()},getLink:function(a){return this.ca.getAutomation().getLink(a)},getPromotedLink:function(a,b){return this.ca.getAutomation().getPromotedLink(a,b)},getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-diagram-tooltip"!==
a.subId?a:null},lh:function(){return{root:["nodes","links"]}}});t("DiagramUtils",function(){},w);
t("DiagramUtils.getLayout",function(a){return function(b){if(a.nodes&&0<b.getNodeCount())for(var c=Zv(a.nodes),d=a.nodeDefaults&&a.nodeDefaults.labelLayout?a.nodeDefaults.labelLayout:null,e=0;e<b.getNodeCount();e++){var f=b.getNodeByIndex(e),h=c[f.getId()];$v(f.getChildNodes(),h?h.nodes:null,b,d);aw(f,h,b,d)}if(a.links&&0<b.getLinkCount())for(c=Zv(a.links),e=a.linkDefaults&&a.linkDefaults.path?a.linkDefaults.path:null,d=a.linkDefaults&&a.linkDefaults.labelLayout?a.linkDefaults.labelLayout:null,f=
0;f<b.getLinkCount();f++){var h=b.getLinkByIndex(f),k=c[h.getId()];k&&k.path?h.setPoints(k.path):e&&e instanceof Function&&h.setPoints(e(b,h));k&&k.coordinateSpace&&h.setCoordinateSpace(k.coordinateSpace);k.labelLayout?bw(h,k.labelLayout):d&&d instanceof Function&&bw(h,d(b,h))}a.viewport&&(d=a.viewport,d instanceof Function?b.setViewport(d(b)):b.setViewport(d))}},w);function Zv(a){var b={};if(a)for(var c=0;c<a.length;c++)b[a[c].id]=a[c];return b}
function $v(a,b,c,d){if(a&&b){b=Zv(b);for(var e=0;e<a.length;e++){var f=a[e],h=b[f.getId()];$v(f.getChildNodes(),h?h.nodes:null,c,d);aw(f,h,c,d)}}}function aw(a,b,c,d){a&&b&&(a.setPosition({x:b.x,y:b.y}),b.labelLayout?bw(a,b.labelLayout):d&&d instanceof Function?bw(a,d(c,a)):d&&bw(a,d,a.getPosition()))}
function bw(a,b,c){c=c?c:{x:0,y:0};a.setLabelPosition({x:b.x+c.x,y:b.y+c.y});var d=b.rotationPointX,e=b.rotationPointY;isNaN(d)||isNaN(e)||a.setLabelRotationPoint({x:d+c.x,y:e+c.y});a.setLabelRotationAngle(b.angle);a.setLabelHalign(b.halign);a.setLabelValign(b.valign)}
w.Components.xa("ojDiagram","dvtBaseComponent",{properties:{animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},expanded:{type:"Array\x3cstring\x3e|string"},focusRenderer:{},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},highlightMatch:{type:"string"},hoverBehavior:{type:"string"},hoverRenderer:{},layout:{},linkHighlightMode:{type:"string"},links:{type:"Array\x3cobject\x3e"},maxZoom:{type:"number"},minZoom:{type:"number"},nodeHighlightMode:{type:"string"},
nodes:{type:"Array\x3cobject\x3e"},panDirection:{type:"string"},panning:{type:"string"},renderer:{},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},selectionRenderer:{},styleDefaults:{type:"object"},tooltip:{type:"object"},touchResponse:{type:"string"},zooming:{type:"string"},zoomRenderer:{}},methods:{collapse:{},expand:{},getContextByNode:{},getLink:{},getLinkCount:{},getNode:{},getNodeCount:{},getPromotedLink:{},renderDefaultFocus:{},renderDefaultHover:{},renderDefaultSelection:{}},
extension:{_widgetName:"ojDiagram"}});w.Components.register("oj-diagram",w.Components.getMetadata("ojDiagram"));})();